css-shapes

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

青春壹個敷衍的年華 提交于 2020-01-12 19:05:05
问题 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

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

▼魔方 西西 提交于 2020-01-12 19:04:31
问题 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

Make div with bottom triangle

筅森魡賤 提交于 2020-01-12 08:27:14
问题 I have been trying to do the white shape with a div: http://sircat.net/joomla/sircat/mies/2.png how do I get the diagonal shapes of the bottom of the div? I have this for the div: width: 620px; height: 440px; background-color: white; thank you Edit: just forget the bg behind the div, I want to make the div with the diagonal borders, not with the help of the bg because it is in the top layer 回答1: You can also use borders and the :after pseudo selector: http://jsfiddle.net/qQySU/ #pointed {

Cut corner on div with image set to 100% height and width

守給你的承諾、 提交于 2020-01-12 07:57:06
问题 This is basically what i want to achieve --> https://jsfiddle.net/tak1pyt7/1/ .clip { width: 500px; height: 500px; -webkit-clip-path: polygon(100% 0, 100% 81%, 82% 100%, 0 100%, 0 0); clip-path: polygon(100% 0, 100% 81%, 82% 100%, 0 100%, 0 0); } body { background-image: radial-gradient(circle, #3F9CBA 0%, #153346 100%); height: 100%; width: 100%; } <body> <div class="clip"> <img src="http://lorempixel.com/600/600/" width="100%" height="100%" /> </div> </body> Although i have a solution but

Triangle shadow on CSS ribbon

耗尽温柔 提交于 2020-01-12 07:32:09
问题 I am trying to replicate as pixel perfect as I can get and im having trouble trying to do the shadow on the right. Is this possible with css? CSS: *{margin:0px;padding:0px;} html { width:100%; height:100%; text-align: center; } .bold { font-weight:700; } #ribbon { padding: .34em 1em; margin: 0; margin-top: 5%; position:relative; color: #000; text-align: center; letter-spacing:0.1em; padding-top:12px; padding-bottom:12px; display: inline-block; background: #ffd82b; z-index:100; box-shadow: 0

Triangle shadow on CSS ribbon

纵然是瞬间 提交于 2020-01-12 07:32:09
问题 I am trying to replicate as pixel perfect as I can get and im having trouble trying to do the shadow on the right. Is this possible with css? CSS: *{margin:0px;padding:0px;} html { width:100%; height:100%; text-align: center; } .bold { font-weight:700; } #ribbon { padding: .34em 1em; margin: 0; margin-top: 5%; position:relative; color: #000; text-align: center; letter-spacing:0.1em; padding-top:12px; padding-bottom:12px; display: inline-block; background: #ffd82b; z-index:100; box-shadow: 0

div with slanted side and rounder corners

牧云@^-^@ 提交于 2020-01-11 08:36:20
问题 I am currently building a website which requires buttons to have a slant on the left hand side of the button. The website is responsive and the button requires rounded corners too. I am trying to avoid using background images too. Would someone be able to show me a solution to this? Ignore the icon on the button, I am able to do this. I just need the slanted side. Sample jsfiddle body { background: lightblue; font-family: sans-serif; } div { background: purple; width: 200px; padding: 30px;

css3 menu with inverse rounded corners

半城伤御伤魂 提交于 2020-01-11 07:02:06
问题 I designed a navigation menu which looks like the image here: I want to code it with css3 rounded corners and box-shadows, not using any images. Problem is the rounded corner to the left of the first menu-item, and the one to the right of the menu... I call it a "reverse" rounded corner... It should have to change color on :hover . Is there any way to get this done in css only? And how? 回答1: HTML <div class="menu"> <div class="outer_bg_left"> <div class="outer"> <div class="outer_shadow"> <

How to create div with irregular shape

旧巷老猫 提交于 2020-01-11 05:56:41
问题 I just want to ask if it is possible to create a div with irregular shape with CSS. I already searched but I can't find a good example. The style is something like this: (sorry cant upload image yet). / / \ / \ / \ /___________________________\ There should be a line on the top that connects it. Basically it has different height on the left and right side. It would be really helpful with sample codes. 回答1: THE SVG WAY Since the shape you request is not possible with only CSS, I suggest you

CSS circle with two borders of different colors or at least looks like [duplicate]

我与影子孤独终老i 提交于 2020-01-11 05:35:49
问题 This question already has answers here : Circle with two borders (4 answers) Closed 4 years ago . I have a circle with one border, but I would like to know if there is anyway to achieve a circle with two borders of different colors. I have following CSS producing circle as follows: .circle { width: 20px; height: 20px; border-radius: 12px; border: 1.5px solid #fff; font-family: Cambria; font-size: 11px; color: white; line-height: 20px; text-align: center; background: #3E78B2; } .circle:hover {