Jump to content

paddyirishman05

Members
  • Posts

    2
  • Joined

  • Last visited

paddyirishman05's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Well well well! Cant believe I didnt think of it before.FYI: Heres another fix: #nav{background-color: #999999;border-top: 10px solid;border-bottom: 10px solid;border-color:#999999; text-align: center;}
  2. 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
×
×
  • Create New...