SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS1--padding property

    All:

    On an external style sheet I'm using for a webpage, I'm trying to use the padding property for a table cell. It works in IE5.5 but not in Netscape 4.74. Could this be a code problem or a browser problem? Here is a snippet of the code. I believe all of the table tags are properly nested because when I run the html code through an html validator there are no errors. One note, no matter what value (em, %, px) I use for padding, it still doesn't work in Netscape. Thanks.

    (The css code is followed by the html code.)

    .boxpad { padding: 2% }

    ------------------------------------------------------

    <td width="78%" valign="top" class="boxpad">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
    <td valign="top" width="100%"><img src="" align="right" width="210" height="100" alt="alumni photo"><p class="text">The School of Library and Information Studies (SLIS) Alumni Association provides advocacy, financial, and professional support to SLIS, enhances the education and training received by students, and facilitates networking opportunities for alumni.</p>
    <p class="text">Membership is open, upon payment of annual dues ($10), to those who are currently enrolled in SLIS and those who have earned credits or are graduates of UW-Madison SLIS. Each member receives the biannual newsletter, Jottings and Digressions, and is kept informed about events like class reunions at annual conferences.</p>
    <p class="text">Once a year the Rachel K. Schenk Scholarship Fund is awarded by the Alumni Association to a SLIS student who demonstrates both academic merit and financial need. In order to be eligible, the student must be enrolled in SLIS for at least one semester.</p>
    </td>
    </tr>
    <tr>
    <td width="100%">

    <table summary="nav tool" cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#333399" align="center">
    <tr valign="top">
    <td>
    <table summary="box border" cellpadding="0" cellspacing="2" border="0" width="100%">
    <tr valign="top" bgcolor="#FFFFFF">
    <td><div class="bulletin">Stay in touch! Use the SILS Alumni Association listserv to communicate with other SILS Alums. Sign up for the listserv, then, once you're a member, you can check the listserv archives for messages you might have missed. Messages are saved in the archive for 6 months.</div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    </td>

    </tr>
    </table>
    </td>

  2. #2
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I may be wrong, but I think Netscape 4 doesn't allow padding/width/height CSS attributes on table, tr, and td tags. You would have to hard-code them in the HTML source.

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2001
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    possible solution

    I found that when I made a new class on the style sheet and put the class in a <div> tag inside of the table cells in question, the padding took effect. Of course, I'm not sure how this will work on earlier/other browsers.

    Any thoughts/ideas from others?


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
  •