Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    explorer problem - mozilla is fine

    hi guys,
    i was having a problem in mozilla. my background was not showing up. so i fixed it using a clearing div.

    <div id="browserfix1">hello</div>

    this worked. however now when i look in explorer i have a new proplem. there is a transparent line directly under my clearing div! i cant get rid of it ive attached an image to show you what i mean. ive put in some text (hello) in my clearing div to show you what happens to it. only the top of the text is showing ? weird!

    can anyone tell me why it look like this in explorer and not mozilla.

    thanks guys k
    Attached Thumbnails Attached Thumbnails explorer problem - mozilla is fine-problem.jpg  

  • #2
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try setting the background-color to white.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    What is the line height for the clearing div? That extra space is likely caused by IE accounting for a font. If you set the font-size to 0 and line-height to 0, and don't put text in the div It should be fine.

  • #4
    New Coder
    Join Date
    Jun 2004
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_
    What is the line height for the clearing div? That extra space is likely caused by IE accounting for a font. If you set the font-size to 0 and line-height to 0, and don't put text in the div It should be fine.
    i took your advice... but now when i set fontsize to 0 my clearing div stops working (i supposed to fix a missing background problem im having in mozilla). so as a fix i have left the fontsize as 1 and made the text white (my background color).

    thank for your help guys..! onward


  •  

    Posting Permissions

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