#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    yes
    Posts
    30
    Rep Power
    14

    Smile css question with nesting


    how do i keep the style from getting ignored in a inner table...

    ie:

    <table class=\"sheet\" align=\"center\" cellspacing=\"10\">
    <tr>
    <td>
    <table class=\"innersheet\" align=\"center\" cellspacing=\"10\">


    etc...

    don't worry about form of \" intead of "

    is excerpt from php echo"";
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    New York
    Posts
    122
    Rep Power
    14
    I assume you're experiencing the problem in Netscape which is far quirkier in it's CSS implementation than Explorer.

    In my experience, Netscape does a very poor job "cascading" a style declaration from a table tag down to it's elements (<tr> and <td>). If this is what's causing your problem, the most direct solution is to assign your style class to the table cells directly rather than to the table as a whole:

    <td class="innersheet">content....</td>

    rather than

    <table class="innersheet">

    If I understand your problem correctly, this should fix it.

    Good luck.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    yes
    Posts
    30
    Rep Power
    14

    Smile


    thanks...

    IE was nagging b.t.w.

    but the td class= works perfectly...

  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    London
    Posts
    8
    Rep Power
    0
    I've got the same problem with tables and styles.
    Even if assign style class directly to cells netscape doesn't displaybackground color in some of the cells,or display color in alternative columns only.

IMN logo majestic logo threadwatch logo seochat tools logo