Adding Border Color & Round-corner edge using CSS

Hello Friends,

I like to know how i can add a different color to the border of my ID/Class. For example, the bg-color of my ID/Class is blue, how d i make the border edges to be black?

Secondly, how d i make any of the 4 edges of my Div to be round-cornered?

Thanks for your response,
Golden Waters
 
Last edited:

mVaillette

New Member
I'm new but I think I can help.

border-color:#000; will set your border color to black.

If you're ok with using CSS3 you can use the 'border-radius' thingy. border-radius:8px;
or
border-radius: 8px 0 0 0; /* the first number starts at the top left I blieve and it goes around clockwise to each corner*/
 
Top