Lists of Links

Discussion in 'HTML & Website Design' started by BlueEew, Mar 30, 2010.

  1. #1
    BlueEew, Mar 30, 2010 IP
  2. designmonkey

    designmonkey Peon

    Messages:
    70
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should constrain the width of ul.nav-side you use for your link lists on the content. Say, 45% , then give it margin on sides 2%, and float them left.

    Lets say we create .w-half ( shorthand of width half ), we'll use this as the wrapper of your link list , define it at the css file
    
    .w-half{
    width:46%;
    float:left;
    margin-right:3%;
    }
    
    Code (markup):
    next update your html, and wrap the list & title sith <div class="w-half">
    
    <div class="w-half">
    <p><b>Red, Blue, and Yellow</b><br /><ul class="nav-side">
    	<li><a href="/pokemon-sprites-red-and-blue/">Red and Blue Pokemon Sprites</a></li>
    	<li><a href="/pokemon-sprites-yellow/">Yellow Pokemon Sprites</a></li>
    	<li><a href="/pokemon-sprites-red-blue-yellow-back/">Red, Blue, Yellow Back Sprites</a></li>
            </ul>
    </div>
    
    Code (markup):
    so now you got blocks of lists, erase all the <br/> .

    next, add this clearing classes on your css
    
    .clear{
    clear:both;
    }
    
    Code (markup):
    now after each 2 block of list you add this <div class="clear"></div>.

    and see how it goes on your browser :)
     
    designmonkey, Mar 30, 2010 IP
    BlueEew likes this.
  3. joshua_

    joshua_ Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Great explanation!
     
    joshua_, Mar 30, 2010 IP
  4. BlueEew

    BlueEew Well-Known Member

    Messages:
    2,434
    Likes Received:
    79
    Best Answers:
    1
    Trophy Points:
    150
    #4
    Thanks for that it worked.

    I gave you rep. :)
     
    BlueEew, Mar 30, 2010 IP
  5. designmonkey

    designmonkey Peon

    Messages:
    70
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Your welcome :)

    & thanks for the rep, appreciated it.
     
    designmonkey, Mar 30, 2010 IP