Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4

Thread: Why the gap ?

  1. #1
    Member benbun's Avatar
    Join Date
    Mar 2004
    Posts
    51
    Member #
    5273
    Can anyone help me with
    http://www.benbun.co.uk/new/

    If you look under the navigation graphics you will see they are 18 pixels high, but the table row they are on leaves a gap underneath them.

    Anyone know why ? I want the table row fix exactly and not have the gap underneath it.

    Any help appreciated.

  2.  

  3. #2
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    I can't see any errors in your coding at a quick glance... An idea - Why can't you just have text rollovers for the same effect, quicker and simpler?
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  4. #3
    Senior Member glyakk's Avatar
    Join Date
    Nov 2003
    Location
    USA
    Posts
    1,263
    Member #
    3828
    Liked
    6 times
    The reason for it is that the browser wants to put a default line height in your TD's. If whats in the td is 'shorter' then the default-line hight your td will stretch to the line-height. Add this to your css style sheet and it should fix it.

    add a class to your TD's:
    Code:
    <tr>
      <td class="lhfix">image..</td>
      <td class="lhfix">image..</td>
    </tr>
    Then put this in your CSS (global.css)
    Code:
    .lhfix {line-height: 0px;}


  5. #4
    Junior Member
    Join Date
    Dec 2003
    Location
    Soho
    Posts
    25
    Member #
    4307
    <blah>no gap</blah>
    Professional Loser.
    Do you want lessons on how to be a loser?
    Please do not hesitate, give me a call.
    0800-Im-a-loser-100


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:15 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com