SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Auckland, NZ
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS appears to work in one instance but not in another similar instance

    On the following page http://www.discoverylabs.co.nz/index.php/upcoming-labs, why is it that in Firefox the column titled "Beginner Game-Making" does not have a left margin.

    The margins are applied using the following code

    Code:
    .leftgrayborder
    {
    	border-left-width: 1px;
    	border-left-style: solid;
    	border-left-color: #a5a5a6;
    }
    .leftblueborder
    {
    	border-left-width: 1px;
    	border-left-style: solid;
    	border-left-color: #43719E;
    }
    And works just fine for all other cells. The whole thing works just fine in Chrome. I have tried using the Webdeveloper and Firebug addons in Firefox to troubleshoot but have got no closer to a solution.

  2. #2
    SitePoint Mentor bronze trophy
    ronpat's Avatar
    Join Date
    Jun 2012
    Location
    NJ, USA
    Posts
    2,225
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    Looks like you just fixed it.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Auckland, NZ
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No idea why this worked but it all started working properly when I added the following 'leftgrayborder' class to the top left cell of the table.

    <td class="leftgrayborder" valign="middle" width="10%">
    <div align="center"><strong>Dates (2013)</strong></div>
    </td>

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    Auckland, NZ
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ronpat View Post
    Looks like you just fixed it.
    Yeah but it makes no sense :-)

    If you take the class entry out of the first cell in either table then you loose the left boarder on the 2nd column.. but only in Firefox (IE and Chrome work).

    But as long as it works


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
  •