When I assign “background-color: foo;” to a element in my CSS file I do not get any colour. What other attributes do i need to declare, I have a absolute width set? Does it need a parent container (it has a basic as a parent)? What am I missing here?!
Also I’d like to give it round-corners using HTML5. Corners only have to work in Safari as it’s for a web app not general consumption.
It seems you have 2 questions:
1. set background to an element; 2. you wanna set round corners to an element and works in safari.
if you element is div tag, you need to set width,and height of your div tag, e.g:
<div id='mydiv'>some elements here</div>Your css:
2. Setting round-corner(code below works for all browsers):