Jump to content

Round Corner Borders Without Images?


paulmo

Recommended Posts

I've used rounded images to make headings and menu tabs, but how to make rounded border around content, like a form or sidebar? I'm seeing this all over the place now. Am I going to have to learn about radial CSS? Would rather not, so if that's the case, know of any good 3rd party scripts? Thanks!!

Link to comment
Share on other sites

#div{ height:100px; width:100px; border:10px #000 solid; -khtml-border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;}I've added the CSS3 standard 'border-radius' after the vendor specific pre-fixed attributes. That way, when CSS3 does become the standard and each browser uses the standard, then the standard will be read, rather than the browser specific ones, as CSS is cascading...the last style will be used.

Link to comment
Share on other sites

Thanks dsonesuk, I recall having to do something similar 5 YEARS AGO!! And the one I used with JQuery isn't working with IE8. I'm amazed this isn't integrated in CSS.
that's what CSS3 is doing/will do once there's enough support for it.
Link to comment
Share on other sites

depends on quality of border required and transparency required, png is better for quality and transparency, but if you can get away with using gif instead use a gif.as the corner image are not that big, and the sides use repeated images, they should not be a problem.avoid matching background of images to background color, i have noticed that the color of images is rendered lighter or darker within different browsers.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...