- This topic is empty.
-
AuthorPosts
-
November 12, 2012 at 2:05 pm #40753ciampam9Member
Is it possible to create corners that are cut at 45degrees rather than the round “border-radius”? Any direction would help, thank you.
November 12, 2012 at 2:14 pm #114055JohnMotylJrParticipantYou can use percentages:
div {
height:300px;
width:300px;
margin:25px;
border:2px solid black;
border-radius:45% 30px;
}November 12, 2012 at 2:17 pm #114058ciampam9Memberthank you but I may have described it a little weird. I understand percentages with border-radius but is it possible for there to be an edge. like the edge of this “Y”
November 12, 2012 at 2:58 pm #114065Paulie_DMemberI still don’t get what it is you are trying to achieve.
Is it some sort of ‘pie’shape.
November 12, 2012 at 4:21 pm #114071JohnMotylJrParticipant@ciampam9, why don’t you do a super quick mockup (photoshop, paint) what you want so we know lol.. Because with that “Y” i’m thinking (obtuse angle from the bottom to top right of the Y, v shape within the top of Y, the bend the the Y’s right arm takes extending out and back in). I could go on all day but i would start to not know what i’m talking about.
November 12, 2012 at 4:36 pm #114073ben_boomerParticipantI think I sort of understand what you are trying to do, but I don’t know how to…. BUT, here is a page with various shapes created solely using CSS [Here](https://css-tricks.com/examples/ShapesOfCSS/ “HERE”). Could probably tweak around with one of those listed in there to get an idea of how radius works.
November 12, 2012 at 5:06 pm #114080joshuanhibbertMemberYou can get a similar effect using background images: http://jsfiddle.net/joshnh/sM3T9/
November 12, 2012 at 5:23 pm #114084wolfcry911Participant@joshuanhibbert, I had a similar example in a pen, but I just noticed it, and your example as well, no longer work in Firefox. I know they were working in the past… :(
FF 16.0.2/Mac OS X 10.8.2edit// I just learned it’s the last (spec) css3 background throwing it off, while the browser prefix background works
November 12, 2012 at 5:52 pm #114090joshuanhibbertMember@wolfcry911 Good spot. I’ve fixed the code.
November 12, 2012 at 7:32 pm #114105ciampam9Member@joshuanhibbert you hit the nail on the head. thank you very much!!! I’m currently doing a markup based off a clients new catalog. Round corners aren’t going to cut it and I would rather not use images if I didn’t have to. Much appreciated.
/end fragment
November 12, 2012 at 8:36 pm #114112JohnMotylJrParticipant@ciampam9, if you dont mind me asking, do you have a contingency with getting rounded corners to work in bad naughty browsers (ie)
November 13, 2012 at 1:21 am #114125ciampam9Member@JohnMotylJr javascript if I have to. They know the problems with IE, thank god, and are pretty understanding with the fact that not everything is compatible.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.