Welcome to WebmasterWorld Guest from 50.19.34.234

Forum Moderators: not2easy

Message Too Old, No Replies

non square div

     

skoff

1:49 pm on Aug 5, 2013 (gmt 0)

5+ Year Member



Hi

i'm trying to make some kind of template with curved rectangles like this image. I would like to know if its possible to make div with rounded rectangle like this. I would like it to be compatible with most of browser like ie8+ etc.

image link : [img163.imageshack.us ]

Thank you

rainborick

2:19 pm on Aug 5, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Fundamentally, the answer is no. There are no polygonal HTML elements. The layout of HTML documents is all based on rectangles. With HTML 5, there are ways of manipulating the page content to achieve nearly any visual effect you want, but backward compatibility in this area pretty much begins with IE9.

skoff

2:22 pm on Aug 5, 2013 (gmt 0)

5+ Year Member



that's what i thought... thanks anyway

swa66

3:14 pm on Aug 5, 2013 (gmt 0)

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



That could be achieved using SVG (Scalable Vector Graphics).
And you can style SVG using CSS.

It's not going to be a curved div, but you can have curved vector content.

IE and SVG is another story, MSFT only embraced the SVG standard since IE9. But there are polyfills for IE8 (not tried that myself - I never had the need for IE8 to look perfect enough)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month