css-shapes

Separate 2 div's with slope line

女生的网名这么多〃 提交于 2019-11-29 14:13:12
i want to seperate 2 floating div's with a slope line, they got different background colors. Example here: HTML markup: <div id="wrap"> <div id="one"></div> <div id="two"></div> </div> i allready tried to rotate them (as u can see in the jsFiddle): #wrap div { -moz-transform: rotate(20deg); -ms-transform: rotate(20deg); -o-transform: rotate(20deg); -webkit-transform: rotate(20deg); float:left; width:50%; height:200px; } http://jsfiddle.net/F6DgA/ Also i tried smth. with overflow:hidden : http://jsfiddle.net/F6DgA/1/ ( partly corrent, but not very clean solution ) Is there a more easy way (dont

Css arrow Progress bar

倾然丶 夕夏残阳落幕 提交于 2019-11-29 13:53:25
问题 I'm currently in the process of learning all about css, so I'm trying to generate different shapes with different functionalities. I am currently working on a project which requires a horizontal arrow to display the 'progress' of a transaction occurring. So i'm trying to generate an arrow 'progress bar' like: |\ | \ +----------------+ \ |XX| 10% > +----------------+ / \ | / \ |/ \the XX's depict a different color. I currently Am able to 'fill' up until the arrow head, but the way I've

Re-sizing a cube

岁酱吖の 提交于 2019-11-29 13:32:31
I have a set of codes from the cube created using CSS. However, how do I resize this into a bigger cube (for example, 200px)? I have tried but everytime I try doing it, it goes out of position.. .mainDiv { position: relative; width: 206px; height: 190px; margin: 0px auto; margin-top: 100px; } .square { width: 100px; height: 100px; background: #c52329; border: solid 2px #FFF; transform: skew(180deg, 210deg); position: absolute; top: 43px; } .square2 { width: 100px; height: 100px; background: #c52329; border: solid 2px #FFF; transform: skew(180deg, 150deg); position: absolute; left: 102px; top:

Make hexagon shape with border, rounded corners and transparent background [duplicate]

人走茶凉 提交于 2019-11-29 12:57:38
This question already has an answer here: How to make a curved edge hexagon by using CSS 5 answers I want to make a hexagonal shape with border, rounded corners and transparent background in CSS3 like in this image: I can't make this with rounded corners and border. My code is here: #hexagon-circle { position: relative; margin: 1em auto; width: 10em; height: 17.32em; border-radius: 1em/.5em; background: red; transition: opacity .5s; cursor: pointer; } #hexagon-circle:before { position: absolute; width: inherit; height: inherit; border-radius: inherit; background: inherit; content: ''; -webkit

Inside transparent arrow on the left

旧时模样 提交于 2019-11-29 12:27:12
I'm trying to add some css3 styles on an element, basing on an image model. Inside transparent arrow on the left with blue border: Link to image It is possible only with css3 ? with a single element you could do this i have to go to work hope this help <div>Lorem Ipsum</div> the style: div{ width:200px; height:60px; margin:100px; background-color:transparent; color:black; position:relative; text-indent:30px; line-height:60px; box-shadow:inset 20px 0 0 200px white; overflow:hidden; -webkit-box-shadow: inset -164px 0 0 20px white; -moz-box-shadow: inset -164px 0 0 20px white; box-shadow: inset

How can I create div with a pointed top with CSS

核能气质少年 提交于 2019-11-29 11:55:53
I've see a lot of threads remotely related that basically suggest CSS triangles in the ::after or ::before pseudos, but none have really panned out. I'm throwing this out to see if anyone has any ideas. I'm looking to create a div with a pointed or pitched top that still maintains a uniform border and box-shadow with the rest of the div. See link for an image of what I'm trying to create: If you dont want to use a image you could do something like this. But working with an image is lot easier in this case. body { background-color: #CCC; } .wrapper { } .outer { width: 0; height: 0; border-style

How can I correctly add a shadow and a gradient to my shape?

限于喜欢 提交于 2019-11-29 11:18:38
问题 I want to make the following design: I tried with :after and :before but it does not work. Here’s my current code: .design { background: #ea053a; display: inline-block; height: 155px; margin-left: 33px; margin-right: 40px; position: relative; width: 228px; } .design:before { border-top: 43px solid #ea053a; border-left: 50px solid transparent; border-right: 50px solid transparent; margin-right: 40px; content: ""; height: 0; left: 0; position: absolute; top: 55px; margin-top: 100px; width:

Triangle with one rounded corner

白昼怎懂夜的黑 提交于 2019-11-29 10:04:16
I want to make only one rounded corner for a triangle but I'm unable to make it. Here is my code : .arrow-left { width: 0; height: 0; border-top: 80px solid transparent; border-bottom: 80px solid transparent; border-right: 80px solid blue; } <div class="arrow-left"></div> I need the corner pointing left to be rounded as shown in this image : Christopher Reid I know this is a little hacky, but I don't think there is an easy way to do this with a single class. All I've done is rotated a box 45 degrees with border-radius:10px and then contained it in another div with width set to the desired

How to make a text stroke with transparent text

て烟熏妆下的殇ゞ 提交于 2019-11-29 09:55:53
问题 I found this solution: Outline effect to text Which is great, but is it posible to make the text transparent and only the outline to draw? This happens with box-shadow, for example, as even if the box doesn't have a background, you won't see the shadow "under" the box. But with text, if it is transparent, you se the whole shadow of the type. Is it posible to get only the outline with transparent text? EDIT: The problem with this is to have a nice fallback for browsers that don't support for

Shape resembling a compass pointer or inner part of a Safari logo

南楼画角 提交于 2019-11-29 09:31:13
问题 I am trying to make the below shape using only CSS. I know that achieving this shape using an image or SVG would be a lot easier but I am trying to achieve it with CSS for a proof of concept. The below is the code that I have tried so far. It creates a diamond shape by using transform: rotate(45deg) but the diagonals are of the same length whereas the shape that I need has one very long diagonal and another very short. .separator{ background: #555; top: 40px; padding-top: 0px; margin: 0px