I am a total newbie - experimenting with my first ever website. It’s all very exciting but I have quickly encounted my first question and wondered if anyone can help.
Does anyone know how to create a border with rounded corners around my content?
I have found out how to do all manner of borders (dashed, double, dotted) but cannot find out how to do the one I really want!
Perhaps it’s more complicated then those mentioned above!
This is the best way to go at the moment. CSS3 is still in the works, and only like 2 browsers currently support it. Using those methods will be fantastic… once there is browser support for it.
There are much easier ways that don’t rely on Javascript.
I just make two images in photoshop, top corners and bottom corners. Set the top corners as the background image for the div and create a seperate div for the bottom corners. Give the div a side border using CSS and bingo, a box with rounded corners that will expand downwards.
You can’t give the main div padding but you’ll soon figure out how to cope with that.