Lambneck Posted October 3, 2008 Share Posted October 3, 2008 why doesn't this css code work in IE? (specifically the padding) <style> body {font-family: Times New Roman;} #buttons {background-image: url(images/perpetualGradient.jpg); background-repeat: repeat-x;} #table1 {padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 100px;} #subcontent {margin-left: 100px;} </style> Quote Link to comment https://forums.phpfreaks.com/topic/126881-ie/ Share on other sites More sharing options...
sKunKbad Posted October 3, 2008 Share Posted October 3, 2008 Not enough info. We need to see more of the html that you are styling. Quote Link to comment https://forums.phpfreaks.com/topic/126881-ie/#findComment-656705 Share on other sites More sharing options...
Lambneck Posted October 4, 2008 Author Share Posted October 4, 2008 css: #table1 {padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 100px;} html: echo "<table id=table1>"; echo "<tr><td><b>"; echo '<a href="jobsDisplay.php?id='.$row['submission_id'].'">'.$row['col_4'].'</a>'; echo "</b><br />"; echo $row['col_2']; echo " | "; echo $row['submission_date']; echo "</font></tr></td>"; echo "</table>"; Quote Link to comment https://forums.phpfreaks.com/topic/126881-ie/#findComment-656773 Share on other sites More sharing options...
Lambneck Posted October 4, 2008 Author Share Posted October 4, 2008 I get the same problem with this page too: $sql = "SELECT * FROM $table WHERE submission_id=$id"; $result = mysql_query($sql) or die("Error ". mysql_error(). " with query ". $sql); if(mysql_num_rows($result) == 1){ $row = mysql_fetch_array($result); echo "<table id=table1>"; echo "<tr><td><h3><b>"; echo $row['col_4']; echo "</b></td></tr>"; echo "<tr><td>Name: <b>"; echo $row['col_2']; echo " | "; echo "</b>Email: <b>"; echo $row['col_3']; echo "</b></font></td></tr>"; echo "<tr><td>Date: <b>"; echo $row['submission_date']; echo "</b></font></td></tr>"; echo "<tr><td><br>".(nl2br($row['col_5']))."</td></tr>"; echo "</table>"; is it the sql that causes the css padding not to work in IE? Quote Link to comment https://forums.phpfreaks.com/topic/126881-ie/#findComment-656939 Share on other sites More sharing options...
haku Posted October 7, 2008 Share Posted October 7, 2008 Post the HTML, not the php that outputs the HTML. Run your php, choose 'view source' in your browser, and copy the relevant code from there. Quote Link to comment https://forums.phpfreaks.com/topic/126881-ie/#findComment-658751 Share on other sites More sharing options...
ngreenwood6 Posted October 7, 2008 Share Posted October 7, 2008 You have to put the id=table1 like this id='table1' to start off with. Quote Link to comment https://forums.phpfreaks.com/topic/126881-ie/#findComment-658939 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.