I can designate BORDER COLOR like the above.Code:border: 1px solid #BORDERCOLOR;
How can I designate MARGIN COLOR?
| SitePoint Sponsor |





I can designate BORDER COLOR like the above.Code:border: 1px solid #BORDERCOLOR;
How can I designate MARGIN COLOR?


Margins don't have a color. They just push elements apart. You could use a wide border instead, or you can have a background color showing in the padding area.
Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

The margin colour will be whatever colour is assigned to the container that the elements are in. So simply set the required colour on the parent element.
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
Bookmarks