CSS Table Positioning Working in IE but not FF

Discussion in 'CSS' started by MrsNBayley, Jan 22, 2007.

  1. #1
    I am hoping someone can help me. I have a CSS that works fine in IE 6/7 but won't work in FF. I have been told its impossible to fix. :mad: I can't believe that is true. Here is my code:

    body {margin-top: 0px; margin-left: 0px;}
    .outertablearea {
    background-color: #FFFFFF;
    position: absolute;
    top: 30px;
    left: 52px
    }

    I know that the position: absolute will not work in FF but there has to be an alternative. Any ideas?
    :confused:
     
    MrsNBayley, Jan 22, 2007 IP
  2. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Syntax :p

    background-color: #FFFFFF;
    position: absolute;
     
    crazybjörn, Jan 22, 2007 IP
  3. MrsNBayley

    MrsNBayley Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Syntax is fixed still doesn't work. Thanks.:confused:
     
    MrsNBayley, Jan 22, 2007 IP
  4. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hmm, then something else is wrong, because:

    <html>
        <head>
            <style type="text/css">
                <!--
                body {
                  margin: 0;
                }
    
    			.outertablearea {
    			  background-color: #FFFFFF;
    			  position: absolute;
    			  top: 30px;
    			  left: 52px
    			}	    
    			-->
            </style>
        </head>
        <body>
    	<table class="outertablearea">
    	<tr><td>Table, yes?</td></tr>
    	</table>
        </body>
    </html>
    HTML:
    Does work like it should. The table is located a little way from the top and left.
     
    crazybjörn, Jan 22, 2007 IP
  5. MrsNBayley

    MrsNBayley Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I agree that doing the above works when working with html. I guess I should have clarified myself. Sorry. I have a CSS file that is attached to a html file. Within the HTML file is a table definition that centers the table. I need to over ride that def with a CSS file as I am not allowed to edit the html within my system.

    Sorry again for not being clear.:confused: I am really frustrated with this.
     
    MrsNBayley, Jan 22, 2007 IP
  6. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Can you give us the exact url of the html, and the css files, because as I see they should work exactely.
     
    Bagi Zoltán, Jan 22, 2007 IP
  7. MrsNBayley

    MrsNBayley Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Here are the urls
    http://purchase.tickets.com/buy/TicketPurchase?agency=BRITISHLIB&organ_val=25385 (html file - can't be changed)

    http://frontline.images.tickets.com/images/privatelabel/../../styles/privatelabel/britlibrary__style2.css (css file that can be changed)

    Thanks
     
    MrsNBayley, Jan 22, 2007 IP
  8. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Try this:

    background-color: #FFFFFF !important;
    position: absolute !important;
    top: 30px !important;
    left: 52px !important;
     
    crazybjörn, Jan 22, 2007 IP
  9. MrsNBayley

    MrsNBayley Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks for your efforts. It didn't work.
     
    MrsNBayley, Jan 22, 2007 IP
  10. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #10
    Telling the truth it looks the same in FF, than in ie for me. Of course there is some pixel difference, but it is a general phenomenon.
     
    Bagi Zoltán, Jan 22, 2007 IP
  11. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Indeed, I just checked that myself as welll(duh! should have done it first thing) and the page looks pretty much identical in IE and FF...
     
    crazybjörn, Jan 22, 2007 IP
  12. MrsNBayley

    MrsNBayley Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thanks for the info. It does look fine unless you have a 19inch wide screen. but the problem is resolved.
     
    MrsNBayley, Jan 23, 2007 IP