Advanced Search

Results 1 to 4 of 4

Thread: ff/ie difference. gap in IE, not in FF.

  1. #1
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ff/ie difference. gap in IE, not in FF.



    how can I get rid of the red line? Im stummped on what is going on.

    html:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd">
    <html><head><link rel="stylesheet" href="css.css" type="text/css" /></head><body>
    
    <div id="cbox" >
     <img src="images/title.png" class="block"  />
     <div id="mpanel">
      <img src="menu/p.png" />
    
      <img src="menu/spacer.png" alt="" />
    
     ...bunch of menu images..
    
    
      <a href="asdsa"><img src="menu/link4.png"></a>
      <img src="images/menu/spacer.png" alt="" />
    
     </div>
    <!-- problem is the space btwn these to object-->
     <img src="images/pre.png" class="block" alt="" />
    
    
    ...
    css:
    Code:
    html body	{
     background:#FAFAFA;
     padding:0px;
     margin:0px;
     font: 12px arial, sans-serif;
     }
    
    img	{
     padding:0px;
     margin:0px;
     border:0px;
     }
    
    #cbox	{
     width:700px;
     margin:0px 0px 0px -350px;
     padding:0px;
     position:relative;
     left:50%;
     background:#DBDBDB;	
     }
    
    #mpanel	{
     width:700px;
     height:23px;
     background:red;
     }
    
    .block	{
    	display: block;
     }

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Code:
    #cbox	{
     width:700px;
     margin:0px 0px 0px -350px;
     padding:0px;
     position:relative;
     left:50&#37;;
     background:#DBDBDB;
     line-height:0;
     }
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks! edit: err never mind, see next post
    Last edited by nkoplm; 06-27-2007 at 09:03 PM.

  4. #4
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    uhhh.... oops. that didnt fix it.

    When I saw your post, I thought "oh of course, duh." and assumed that the line-height was the problem. As it turns out, it wasn't the problem, and the gap still remains.

    ugh. any other ideas?

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
  •