Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: not2easy

Message Too Old, No Replies

Round corners with no images

border-radius

     

srajanbill1976

8:51 am on May 3, 2011 (gmt 0)



Any new ideas possible to curve box with out image css

rainborick

5:11 pm on May 3, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use border-radius (and -moz-border-radius for Firefox). It's cross-browser compatible and gives good control with a nice effect.

Hoople

12:58 am on May 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The newest browser versions directly support 'border-radius' without the vendor specific -moz or -webkit prefixes. For support of all versions include both in such a way that the newer browsers see 'border-radius' first.

Older IE browsers (IE5.x and IE6) will require a .hta hack or one of several curve corners javascript solution.

FWIW some elements resist curving attempts on the newer versions of IE (IE 7 + 8) and Opera (below 10.50), 'Fieldset' comes to mind. The Fieldset's 'legend' ends up being inside the 'box' rather than it's normal place along the top border of the box.

enigma1

12:06 pm on May 4, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



You can create curves and pretty much any shape using basic CSS and will be compatible across all popular browsers past and present versions.

Experiment with the margin and height css properties

The specific browser hacks all they do is create more problems.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month