CSS? JavaScript? DHTML? How to reduce height?

Discussion in 'HTML & Website Design' started by gilgalbiblewheel, Aug 17, 2007.

  1. #1
    I have a website that I need to reduce the height of the table td structured like this:
    <tr>
    						<td>
    									<a  onclick="toggle('item6');">	
    	<h5><img src="images/closed.gif" alt="Click to Expand" id="img_item6" border="0" /> TOP 4 SELF-HELP BOOKS</h5>
    
    		</a>	
    <ol type="1" id="ol_item6" class="closed">
    	<li id="item6_1"><a href="http://www.amazon.com/s/ref=nb_ss_b/105-9585954-5388446?initialSearch=1&url=search-alias%3Dstripbooks&field-keywords=Feeling+Good">Feeling Good</a></li>
    	<li id="item6_2"><a href="http://www.amazon.com/s/ref=nb_ss_b/105-9585954-5388446?initialSearch=1&url=search-alias%3Dstripbooks&field-keywords=Resilience">Resilience</a></li>
    	<li id="item6_3"><a href="http://www.amazon.com/s/ref=nb_ss_b/105-9585954-5388446?initialSearch=1&url=search-alias%3Dstripbooks&field-keywords=Allies+in+Healing">Allies in Healing</a></li>
    	<li id="item6_4"><a href="http://www.amazon.com/s/ref=nb_ss_b/105-9585954-5388446?initialSearch=1&url=search-alias%3Dstripbooks&field-keywords=The+Dance+of+Anger">The Dance of Anger</a></li>
    </ol>
    						</td>
    
    					</tr>
    Code (markup):
    I need to create some space ( the problem is in the FireFox browser ) on the sidebars.

    I have the CSS and JavaScript of the code. Would you like me to post those too?
     
    gilgalbiblewheel, Aug 17, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yeah, you'll have to post the code as well. Just so you know, I'd use an unordered list instead of an ordered one.
     
    Dan Schulz, Aug 17, 2007 IP
  3. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Does it really matter what kind of list you use? Just wondering. I've always been told use a unordered list, just never asked why not an ordered?
     
    twistedspikes, Aug 17, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Because an ordered list has a meaning of its own. It's perfectly suited for things like driving directions, cooking recipes and installing programs, since those things have to be done in the order they're presented in.

    An unordered list is more like a grocery or to-do list. It doesn't matter how or in what order it gets done, just that it does.
     
    Dan Schulz, Aug 17, 2007 IP
  5. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #5
    So using it for a menu like so many people do is bad coding as it's ment for a list? Sorry if it sounds rude, but using a list as a menu hides the points if it's ordered or not, so I can't see the need for it to be unordered. Just trying to understand the reasoning behind it, thats all.

    Guess what i'm trying to ask is does it matter to anything like search engines, or is it just in the minds of people that it matters?
     
    twistedspikes, Aug 17, 2007 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Because at its very core, a site menu is a list of links. People do not have to visit each page of your site in the order it is presented (which would require an ordered list), and since the menu is not a list of terms and definitions (which requires a definition list), an unordered list is best.
     
    Dan Schulz, Aug 17, 2007 IP
  7. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #7
    Ah I see.

    Thanks for clearing that up :)
     
    twistedspikes, Aug 17, 2007 IP