Forum Moderators: not2easy

Message Too Old, No Replies

CSS Table id problem

         

emanuele

4:43 am on Sep 30, 2006 (gmt 0)

10+ Year Member



I define a table in idex.php like this:

<table width="187" align="center" id="table2">

in the css external file index.css i define:

#table2{
position:relative;
top:-100px;
}

Is working fine in my local computer but as soon as i upload it to the server, looks like that the browser does not recognise the external css code.

Pls need advice.

Thank you

Emanuele

DrDoc

5:08 am on Sep 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How are you including the CSS file?

emanuele

5:28 am on Sep 30, 2006 (gmt 0)

10+ Year Member



in the header.php included in the index.php i have the code to pick up the index.css

<link href="css/<?php echo basename($_SERVER['PHP_SELF'],'.php');?>.css" rel="stylesheet" type="text/css">

DrDoc

5:59 am on Sep 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



and the file returns a text/css header?

emanuele

10:14 am on Oct 2, 2006 (gmt 0)

10+ Year Member



Yes Doc

DrDoc

4:44 pm on Oct 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There must be something else ... file path, name, etc. Anything weird in your server error logs which would indicate what's going on?

penders

1:07 am on Oct 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are you able to post the resulting HTML head section which is sent to the client? Like DrDoc says, there must be something else... maybe your server is outputting something different in your PHP sections to when it runs locally, or your CSS file isn't where it's supposed to be?!

CSS is always evaluated on your local machine, so whether you are pulling the page from your local server, or from a server elsewhere, it shouldn't matter.