Problems with navigation buttons

Discussion in 'CSS' started by pmcross, Sep 1, 2009.

  1. #1
    I have my navigation buttons in a <UL> My problem is that they are not poisiting under my header and I also need the bottom and top buttons to touch one another. Is there a easy way to do this?

    Thanks

    CSS Code
    ul.HorizontalButtons {
      margin-left: 0px;
      padding-left: 0px;
    }
    ul.HorizontalButtons li {
      display: inline;
      background-color: #;
      border-style: hidden;
      border-width: 0px;
      margin:  auto
      padding: auto
    
    }
    }
    ul.HorizontalButtons li a {
      text-decoration: none
    }
    ul.HorizontalButtons li a:hover {
      background-color: #
    }
    
    
    body {
    	margin: 0;
    	padding: 0;
    	font-size: 13px;
    	color: e0e0c2;
    	background-color: #E0E0C2;
    	background-repeat: no-repeat;
    	background-position: center top;
    }
    
    body, th, td, input, textarea, select, option {
    	text-transform: capitalize;
    	font-family: Papyrus;
    }
    
    h1, h2, h3 {
    	font-weight: normal;
    	color: #F8FBEC;
    }
    
    h1 {
    	letter-spacing: normal;
    	font-size: 3em;
    }
    
    h2 {
    	letter-spacing: -1px;
    	font-size: 2em;
    }
    
    h3 {
    	font-size: 1em;
    }
    
    p, ul, ol {
    	line-height: normal;
    }
    
    blockquote {
    	padding-left: 1em;
    }
    
    blockquote p, blockquote ul, blockquote ol {
    	line-height: normal;
    	font-style: italic;
    }
    
    a {
    }
    
    a:hover {
    	text-decoration: none;
    	color: #e0e0c2;
    }
    img{
    border: 0;
    }
    #wrapper {
    }
    /* Header */
    
    #header {
    	width: 760px;
    	height: 288px;
    	margin: 0 auto;
    	background: url(images/img02.jpg) no-repeat right top;
    }
    
    #header h1, #header p {
    	margin: 0;
    	color: #9CBC1E;
    }
    
    #header h1 {
    	padding: 100px 0 0 70px;
    }
    
    #header p {
    	padding-left: 73px;
    	margin-top: -10px;
    }
    #header a {
    	color: #E6B715;
    }
    
    /* Page */
    
    #page {
    	width: 760px;
    	margin: 0 auto;
    }
    
    /* Content */
    
    #content {
    	float: right;
    	width: 470px;
    	margin: 0;
    }
    
    .post {
    	padding: 0 0 20px 0;
    }
    
    .title {
    	margin: 0;
    	padding-bottom: 5px;
    	border-bottom: 2px solid #B7D24D;
    }
    
    .byline {
    	margin: 0;
    	color: #646464;
    }
    
    .meta {
    	text-align: left;
    	color: #646464;
    	padding: 10px 10px;
    	height: 48px;
    	background: url(images/img06.gif) no-repeat left top;
    }
    
    .meta .more {
    	padding-left: 20px;
    }
    
    .meta .comments {
    	padding-left: 20px;
    }
    
    .meta a {
    	color: #003300;
    }
    
    /* Sidebar */
    
    #sidebar {
    	float: left;
    	width: 230px;
    }
    
    #sidebar ul {
    	margin: 0;
    	padding: 0;
    	list-style: none;
    }
    
    #sidebar li {
    }
    
    #sidebar li ul {
    	padding: 15px 15px;
    }
    
    #sidebar li li {
    	border-bottom: 1px dotted #000000;
    	padding-left: 15px;
    }
    
    #sidebar h2 {
    	margin: 0;
    	padding: 10px 0 0 40px;
    	height: 40px;
    	background: url(images/img04.gif) no-repeat left 60%;
    }
    
    #sidebar a {
    	text-decoration: none;
    }
    
    #sidebar a:hover {
    }
    
    /* Footer */
    
    #footer {
    	clear: both;
    	width: 760px;
    	height: 40px;
    	margin: 0 auto;
    	padding: 20px 0 0 0;
    	background: url(images/img05.gif) no-repeat left top;
    	text-align: center;
    	font-size: smaller;
    	color: #52640A;
    }
    
    #footer a {
    	color: #003300;
    }
    
    Code (markup):
    HTML Code
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Personalized Discount Cards</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    <style type="text/css">
    <!--
    #Layer1 {
    	position:absolute;
    	width:100%;
    	height:190px;
    	z-index:1;
    	top: 4px;
    	left: 14px;
    	margin-left: auto;
    }
    #Layer2 {
    	position:absolute;
    	width:785px;
    	height:215px;
    	z-index:2;
    	left: 165px;
    	top: 56px;
    	background-color: #9BBB59;
    	margin-left: auto;
    }
    .style28 {
    	color: #76923C;
    	font-size: 18px;
    	font-weight: bold;
    }
    .style29 {color: #000000; font-size: 18px; }
    .style30 {color: #76923C; font-size: 18px; }
    .style31 {
    	font-size: 10px;
    	color: #000000;
    }
    .style32 {
    	font-size: 30px;
    	font-family: "Times New Roman", Times, serif;
    	color: #000000;
    	font-style: italic;
    	font-weight: bold;
    }
    .style33 {
    	font-size: 24px;
    	font-family: "Times New Roman", Times, serif;
    	color: #000000;
    	font-style: italic;
    	font-weight: bold;
    }
    -->
    </style>
    </head>
    <body>
    <ul class="HorizontalButtons">
    <center><li><img src="home-button.gif" alt="" name="home" width="180" height="140" id="home" /></li>
       <li><a href="How-It-Works.htm"><img id="how" alt="" src="how-it-works-button.gif" height="140" width="180" /></a></li>
       <li><a href="Why-It-Works.htm"><img src="why-it-works-button.gif" alt="" name="why" width="180" height="140" id="why" /></a></li>
       <br />
       <li><a href="Contact.htm"><img src="contact-button.gif" alt="" name="contact" width="180" height="140" id="contact" /></a></li>
       <li><a href="Pricing.htm"><img id="price" alt="" src="pricing-button.gif" height="140" width="180" /></a></li> 
      </center>
    </ul>
    
    <div id="Layer3" style="position: absolute; left: 0px; top: 611px; width: 100%; height: 472px; z-index: 8">
      <CENTER><p class="style30">A <em>Personalized Discount Card</em> features your group or organization  logo and/or information on the entire front cover of your personalized card. <br />
          The cards of the  size of a credit card so it fits conveniently in any wallet. <br />
          The cards feature businesses in the area which will  offer discounts on products and services to the cardholders.  </p>
        <p class="style30">The cards are full color and reusable so it offers  continuous savings to each cardholder<br />
        The <em>Personalized  Discount Cards</em> are available in different quantities to meet the needs of  your organization, 250, 500, 750, 1000, 1500, 2000 and more.  These cards will benefit small organizations  to very large organizations.  </p>
      <p class="style30">&nbsp;</p>
      <p class="style28">That is why we call it PERSONALIZED! </p>
      <p class="style29">&nbsp;</p>
      <p>&nbsp;</p>
    </CENTER>
    <div id="footer">
    <p>&copy;2009 Theirdomainname.comAll Rights Reserved &nbsp;&bull;&nbsp; Design by <a href="http://www.freecsstemplates.org/"> Huntsdoitall.com </a></p>
    </div></div>
    <div align="center"></div>
    <div class="style31" id="Layer6" style="position: absolute; left: 0px; top: 58px; width: 100%; height: 103px; z-index: 18; vertical-align: middle; font-weight: bold">
      <h1 align="center" class="style32">PERSONALIZED </h1>
      <h1 align="center" class="style32">Discount Cards</h1>
      <h1 align="center" class="style33">Fundraising Opprutunity </h1>
      <h1 align="center" class="style33">We Design Your Card For You!! </h1>
    </div>
    <div id="Layer9" style="position: absolute; left: -12px; top: 0px; width: 100%; height: 284px; z-index: 1; vertical-align: middle; font-weight: bold"><img src="image002.gif" alt="" width="100%" height="278" /></div>
    
    </body>
    </html>
    Code (markup):

     
    pmcross, Sep 1, 2009 IP