SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Restless's Avatar
    Join Date
    Aug 2004
    Location
    Austria
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Firefox doesnt like the padding

    Hey..

    Firefox wont accept padding: 5px in the below example:

    CSS code:
    Code:
    .sectiontableentry1 {
    	background-color: #C5C5C5;
    	font-size: 11px;
    	color: #373633;
    	padding: 5px;
    	}
    	
    .sectiontableentry2 {
    	background-color: #A5A4A0;
    	font-size: 11px;
    	padding: 5px;
    	}
    HTML:
    Code:
    <tr class="sectiontableentry1">
                <td width="32" height="20" align="center"> <img src="imanimage />
                </td>
                <td> <a href="imalink"_blank" class="category">
                  1001 Free Fonts </a> <br />description example</td>
    
                            <td align="right">
                                3                        </td>
              </tr>
                        <tr class="sectiontableentry2">
                <td width="32" height="20" align="center"> <img src="imanimage />
                </td>
                <td> <a href="imalink" target="_blank" class="category">
    
                  Fonts.com </a> <br /> description            </td>
    Internet Explorer takes the padding just fine..
    but in Firefox the stuff is all glued together.



    Maybe someone can help me...
    Restless Sadja,
    - a good girl
    sometimes. not always. rarily.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,269
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Try applying it to the td instead.
    Code:
    .sectiontableentry1 td{
    background-color: #C5C5C5;
    font-size: 11px;
    color: #373633;
    padding: 5px;
    }
     
    .sectiontableentry2 td {
    background-color: #A5A4A0;
    font-size: 11px;
    padding: 5px;
    }
    Alos you have a lot of missing quotes in there which may also trip the browser up.

    Paul

  3. #3
    SitePoint Enthusiast Restless's Avatar
    Join Date
    Aug 2004
    Location
    Austria
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i was scared something like that would cause it..

    the code up there is generated by a content management (Mambo)
    ill try to edit the code, hopefully that wont mess anything up

    thanks for the two hints
    greatly appreciated
    Restless Sadja,
    - a good girl
    sometimes. not always. rarily.


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
  •