Hi all!I am trying to create a div with a margin-top and margin-bottom of 10px, that uses the same background colour as the div. Is this possible?Basically I have two buttons on one line, and I want the background colour to extend 10px above and below the buttons.Heres my code:
<!-- CSS -->#nav{background-color: #999999;margin-top: 10px;margin-bottom: 10px;text-align: center ;}<!-- HTML --><div id="nav"> <a href="#" class="button1">Create New</a> <a href="#" class="button1">View Existing</a></div>
I could solve this using the <br/> tag (see below), but I would prefer to style this using CSS.
<div id="nav"> <br /> <a href="#" class="button1">Create New</a> <a href="#" class="button1">View Existing</a> <br /><br /></div>
Can anybody help me out here? Thanks