SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot LORDGreg's Avatar
    Join Date
    May 2001
    Location
    Ptuj, Slovenia
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css and different table `td` tag width???

    here is my html code in, let's say: index.html

    Code:
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
    
    <!-- text area -->
    <td valign="top">
    
    <!-- *news -->
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
      
      <tr>
      <td class="top_left">*</td>
      <td class="top_center"><font color="#ffffff"><b>news</b></font></td>
      <td class="top_right">*</td>
      </tr>
    
    </table>
    <!-- end: *news -->
    
    </tr>
    </table>
    and here is the CSS code for top_left, top_center and top_right:

    Code:
    .top_center
    {
      background-color: #8caae7;
    }
    
    .top_left
    {
      width: 10px;
      background-image: url(xp_lup.gif); 
      background-repeat: no-repeat;
      background-color: #8caae7;
    }
    
    .top_right
    {
      width: 175px;
      background-image: url(xp_rup.gif); 
      background-repeat: no-repeat;
      background-color: #8caae7;
    }
    xp_lup.gif - width=10px
    xp_rup.gif - width=175px

    now, can someone tell me why.. why oh why doesn't want IE 6.0 (and lower?) set the top_left and top_right width to the size in the CSS script???

    i tested this in two browsers:

    1. Internet Explorer 6.0 (css2 should work fine)
    2. k-meleon 0.6 (uses Gecko rendering engine by mozilla group)

    in k-meleon everything looks fine, but in IE doesn't...

    please please help!!!
    lordgreg, sloreactor.com
    http://www.sloreactor.com/

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you tried it without the underscores? I.e. topCenter. Also, try setting the topCenter to a width of 100%...

    ~~Hope This Helps

  3. #3
    Back in Action Winged Spider's Avatar
    Join Date
    Jun 2001
    Location
    outside my mind
    Posts
    900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do have a page we could look at?



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
  •