Need some CSS help with my Navigation please - Thanks

Discussion in 'CSS' started by Nima, Jul 10, 2007.

  1. #1
    This is where I am working on right now:
    
    http://www.pokereagles.com/test/
    
    Code (markup):
    The Right Navigation links don't appear at the top of the "Wrapper". And I can't figure out why...

    Here is my Navigation code:
    
      </div>
      <div id="navigation">
        <ul class="navigation">
          <li><a href="http://www.pokereagles.com/">Hosting Poker Game</a></li>
          <li><a href="http://www.pokereagles.com/poker-rules/">Poker Rules</a></li>
          <li><a href="http://www.pokereagles.com/poker-strategy/">Poker Strategy</a></li>
          <li><a href="http://www.pokereagles.com/poker-movies/">Poker Movies</a></li>
          <li><a href="http://www.pokereagles.com/poker-superstars/">Poker Celebrities</a></li>
          <li><a href="http://www.pokereagles.com/entertainment/">Poker Entertainment</a></li>
          <li><a href="http://www.pokereagles.com/review/">Poker Reviews</a></li>
          <p>&nbsp;</p>
    	  Advertisement<br/>
          Advertisement<br/>
          Advertisement<br/>
        </ul>
      </div>
    </div>
    
    Code (markup):
    Here is my Navigation Style:
    
    #navigation {
    	float: right;
    	top: 0;
    	right: 10px;
    	background: #F6FF61;
    	padding-bottom: 50px;
    	width: 185px;
    }
    
    Code (markup):
     
    Nima, Jul 10, 2007 IP
  2. ChasLaser

    ChasLaser Peon

    Messages:
    160
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    a few things...


    <div id="wrapper">
    <div id="content">

    float nav div here before content not after.

    but.. the 100% wide table might screw you up....
    <table width="100%" cellspacing="7">

    also Style nav simalar to this...
    <div style="float:right;padding:5px">
    </div>
     
    ChasLaser, Jul 10, 2007 IP
    Nima likes this.
  3. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why are you using the same value for your ID and class? Your HTML is also invalid (lists can only contain list items, which in turn can contain just about anything).

    Please fix your HTML errors first.
     
    Dan Schulz, Jul 10, 2007 IP
  4. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #4
    i did that, but no change... except now navigation appears above the content...
     
    Nima, Jul 11, 2007 IP