css-shapes

Adding an arrow on both sides of a div using CSS? [closed]

断了今生、忘了曾经 提交于 2019-11-28 06:45:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want an arrow on the left and right side of a div. Like here, but on both sides: http://cssarrowplease.com/ Is that possible? 回答1: Add an extra div inside .arrow , on which you add a :before and :after pseudo class as well. (Note: the extra div is necessary because of the extra border. The border is created by

Inside transparent arrow on the left

戏子无情 提交于 2019-11-28 06:37:25
问题 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 ? 回答1: 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;

How to make arc shapes with CSS3?

大兔子大兔子 提交于 2019-11-28 06:29:19
I'm trying to achieve following look, with pure css: Where each white arc is a different element, say span. I know we can make round shapes with css, but how can it be turned into arc sort of shape? With the following HTML: <div id="arcs"> <div> <div> <div> <div></div> </div> </div> </div> </div> And the CSS: #arcs div { border: 2px solid #000; /* the 'strokes' of the arc */ display: inline-block; min-width: 4em; /* the width of the innermost element */ min-height: 4em; /* the height of the innermost element */ padding: 0.5em; /* the spacing between each arc */ border-radius: 50%; /* for

Wave border in CSS [closed]

南笙酒味 提交于 2019-11-28 05:33:09
I know what you're thinking, there's at least a million questions like this, asking about waves in borders, or waves at the edges of elements. However, I have a different question. What I need is a combination between a zigzag-edge (I have no idea how to call it, I'm not English) and a wave-edge . More specific: I need to create this: The top part of the blue element has to be a wavy kind of border, where the top part is transparent so the underlying image shows 'through the element', so to say. Is this do-able with CSS? I'd rather not use images, simply because there will be multiple elements

How can I create div with a pointed top with CSS

余生长醉 提交于 2019-11-28 05:00:52
问题 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: 回答1: If you dont want to use a image you could do something like this. But working with an image is lot

Make table cells square

∥☆過路亽.° 提交于 2019-11-28 04:59:08
How to ensure that each cell of table should become square without using fixed sizes? And be responsive when they change width. table { width: 90%; } td { width: 30%; } tr { /** what should go here? **/ } <table> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> <tr> <td>4</td> <td>5</td> <td>6</td> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> </tr> <table> web-tiki You can use the technique described in: Grid of responsive squares . Adapted to your usecase with a table and square table cells , it would look like this: table { width: 90%; } td { width: 33.33%; position: relative; } td:after { content

Circle with three different border colors

风格不统一 提交于 2019-11-28 04:28:59
问题 I have this CSS for a circle with one border color: .circle { border: 6px solid #ffd511; border-radius: 30px; -moz-border-radius: 30px; -webkit-border-radius: 30px; -khtml-border-radius: 30px; width: 30px; height: 18px; line-height: 20px; padding: 12px 6px; text-align: center; } <div class="circle">17</div> It looks like this: How should I change the CSS to have three border colors - as on the clock: from 0 to 4 color #1 from 4 to 8 color #2 from 8 to 12 color #3 I am sure, its possible, with

Circle loading animation

夙愿已清 提交于 2019-11-28 03:22:25
I'm trying to create Apple's OS X circle loading animation. What I have tried so far: .animation-wrapper { width: 200px; height: 200px; border: 1px solid black; border-radius: 50%; position: relative; overflow: hidden; filter: brightness(0.8); -webkit-filter: brightness(0.8); } .pie-piece1 { position: absolute; width: 50%; height: 50%; bottom: 0; left: 0; background: linear-gradient(to right, rgba(255, 0, 0, 1) 0%, rgba(255, 255, 0, 1) 100%); } .pie-piece2 { position: absolute; width: 50%; height: 50%; bottom: 0; right: 0; background: linear-gradient(to right, rgba(255, 255, 0, 1) 0%, rgba(0,

Vertically and horizontally centering text in circle in CSS (like iphone notification badge)

与世无争的帅哥 提交于 2019-11-28 02:50:01
I'm looking for a way of to do a cross-browser iphone-like badge in CSS3. I'd obviously like to use one div for this, but alternative solutions would be fine. The important factor is that it needs to be horizontally and vertically centered in all browsers. An interesting design issue about these notifications is that they cannot have a specified width (height is fixed) - they should be able to handle [in ascii drawing] (1) and (1000), where (1000) is not a perfectly rounded circle, but instead looks more like a capsule. EDIT : Additional constraints (from Steven): No JavaScript No mangling of

How do I create a teardrop in HTML?

喜夏-厌秋 提交于 2019-11-28 02:36:53
How do I create a shape like this to display on a webpage? I don't want to use images since they would get blurry on scaling I tried with CSS : .tear { display: inline-block; transform: rotate(-30deg); border: 5px solid green; width: 50px; height: 100px; border-top-left-radius: 50%; border-bottom-left-radius: 50%; border-bottom-right-radius: 50%; } <div class="tear"> </div> That turned out really screwed. And then I tried with SVG: <svg viewBox="0 100 100"> <polygon points="50,0 100,70 50,100 0,70"/> </svg> It did get the shape, but the bottom part wasn't curved. Is there a way to create this