SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: CSS Line Height

  1. #1
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Line Height

    Hey,

    I have incorporated a JS slider menu on my website, but cant seem to make the line height less than it is now..

    Visit the link below, i am happy with what you see initially but click on "TEE'S" and you will see the slider drop down in action. The only problem is i want to have less spacing between each but i dont know which element to apply it to..

    Can someone help?

    Regards

  2. #2
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,287
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    First thing I would do with a page with strange spacing and javajunk is, comment out the script first (to make sure it has nothing to do with the script), and then the next thing I do is start throwing ugly background colours on each element, so I can see them. This often helps find strange spaces. Line-height will be part of someone's background colour, as will padding. Margins will NOT show up, so if you've checked everything with a background colour, then it's time to start removing margins to see if they are the cause of the space.

    If there's any block element who you haven't stated a margin for, know that many blocks have default margins inserted by browsers.

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,782
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by billy_111 View Post
    Hey,

    I have incorporated a JS slider menu on my website, but cant seem to make the line height less than it is now..

    Visit the link below, i am happy with what you see initially but click on "TEE'S" and you will see the slider drop down in action. The only problem is i want to have less spacing between each but i dont know which element to apply it to..

    Can someone help?

    Regards
    Hi, there is no link.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, the link is here:-

    http://www.ringspun.co.uk/ringspun/

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,782
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    http://www.ringspun.co.uk/ringspun/about.php

    That's the link......

    And as to the question..on "#dhtmlgoodies_slidedown_menu .slMenuItem_depth2" set height:auto;

    Actually give a px value if you want more space, without height:auto; it is defaultin to 23px
    Always looking for web design/development work.
    http://www.CodeFundamentals.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •