css-shapes

Is it possible to give a bootstrap btn a 5 point?

喜你入骨 提交于 2019-12-04 06:36:29
问题 I'm looking to make a bootstrap btn look a little differently with there being a 5 point at the bottom of its base. I know its possible to do shapes this way using the :before and :after tools and transform but I want to put text inside of them which is why I'm having so much trouble. Is it possible to deal directly with the btn class to make this effect happen? 回答1: You can use SkewY as shown in the demo below: div { height: 100px; width: 500px; display: inline-block; border: 10px solid

How to create a circle and a bar that overlap with css?

白昼怎懂夜的黑 提交于 2019-12-04 06:05:16
For a user profile I'm trying to create a circular image plus a horizontal bar with the same height as the image. Also, it should be responsive. It should look as in the image below. In the black bar there will be text. Could someone please help me with the correct CSS? So far I have the code below but this already goes wrong in that the black bar is below the circle and not next to it. But also I don't know how to make the black bar start exactly in the middle of the image, to have the image on top, and to have text in the black bar start sufficiently to the right (while being responsive to

Curved border with stroke in pure CSS?

为君一笑 提交于 2019-12-04 06:02:15
I'm wondering if it is at all possible to achieve a curved border (with a stroke) using only CSS? At the moment I'm creating curved borders for the header of my website using images: I'd like to change this to a CSS solution so that I'm not having to alter images when the amount of content within changes - I need these to be dynamic and responsive, I've managed to draw a curve using border-radius: This works much better for me, but I'm wondering if it is possible to add a stroke to it to make it look a more like the image representation? Any help is greatly appreciated. Here's the code I've

Create a down arrow pointer

陌路散爱 提交于 2019-12-04 04:59:33
问题 How can I create a down arrow for parent in css so it would look like a speech bubble? This is what I tried. <div class="parent">TEST <span class="tri">TEST</span> </div> .tri { opacity: 0; } .tri:before { position: absolute; top: 40%; left: 50%; margin-top: -15px; margin-left: -100px; background-color: #FFF; color: #000; text-align: center; padding: 10px; min-width: 200px; } .tri:after { border-top: 5px solid #000; border-top: 5px solid #000; border-right: 5px solid transparent; border-left:

CSS3 label tag facing right and using position or :after

做~自己de王妃 提交于 2019-12-04 04:54:01
问题 I am trying to construct this shape in CSS: But I can't figure out how to put the triangle shape (considering I have a rectangle for the "body" of the tag and a triangle for the tip) facing right. Because I'm working with positions, how can I tell the triangle to appear right after the rectangle, when tags can all have different sizes? I just can't work it out. You can check the fiddle: http://jsfiddle.net/ExZFe/ with a similar tag to the one I'm making. This example uses just positions, so

Animated text with CSS wave

心不动则不痛 提交于 2019-12-04 04:48:50
How It Works The .png image represented below is clipped to the text with animation; In Action body { background: #000000; } .Wave-Loader { text-transform: uppercase; font-family: 'Cabin Condensed', sans-serif; font-weight: bold; font-size: 100pt; text-align: center; height: 120px; line-height: 110px; vertical-align: bottom; position: absolute; left: 0; right: 0; top: 100px; bottom: 0; } .Wave-Loader.Wave { background-image: url("http://i.imgur.com/uFpLbYt.png"); -moz-background-clip: text; -o-background-clip: text; -webkit-background-clip: text; background-clip: text; color: transparent; text

How to make rounded tabs with css? [closed]

不羁岁月 提交于 2019-12-04 03:47:50
I'm wondering if it's possible to archive the following effect with CSS I found these articles that kind of help but the problem is that in my case the tab sides are diagonal not straight vertical lines: http://css-tricks.com/tabs-with-round-out-borders/ http://css-tricks.com/better-tabs-with-round-out-borders/ Is it possible to do? Here's a proof of concept example with pure CSS. It uses pseudo-elements and rotate . It's pretty close to your source image and could get closer with some work. Demo : http://jsfiddle.net/csDP9/9/ HTML : <ul> <li>Sample 1</li> <li class="active">Sample 2</li> <li

css transparent shape over image

心不动则不痛 提交于 2019-12-04 03:22:53
问题 This is what i am trying to achive i have : #image1 { position: absolute; bottom: 0px; align-self: auto; background-color: #dc022e; width: 340px; height: 100px; border-radius: 50% / 100%; border-bottom-left-radius: 0; /*transform: rotate(10deg);*/ border-bottom-right-radius: 0; opacity: 0.8; } #image2 img { width: 80%; } <div> <div id="image2"> <img src="http://t1.gstatic.com/images?q=tbn:ANd9GcThtVuIQ7CBYssbdwtzZjVLI_uw09SeLmyrxaRQEngnQAked5ZB"> </div> <div id="image1"></div> </div> Finally

Create an Angled Color Banner

人走茶凉 提交于 2019-12-04 03:09:01
Hi I'm trying to create the following Angled Strip Look in HTML & CSS: Just the Blue and Purple area with white after. I can obviously see how to do it using an image but what about HTML/CSS only? Is this possible? Its used on the site - www.africa.dating I know I should have more example code but I'm actually not sure where to begin so I only have the following HTML: Fiddle: http://jsfiddle.net/e2dr5udr/3/ <div id="container"> <div id="blue"></div> <div id="purple"></div> </div> #container { width: 100%; height: 100px; background-color: white; position: absolute; } #blue { width: 100%; height

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

冷暖自知 提交于 2019-12-03 23:01:31
问题 This question already has answers here : How to make a curved edge hexagon by using CSS (5 answers) Closed 3 years ago . 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