hullcalendar Posted May 30, 2011 Share Posted May 30, 2011 right guys, im trying to format single cells in my table differentl using an external style sheet but it cant get it work, any help? my css code is... <style> td#change1{ background-image: url(http://www.hullcalendar.com/images/numbers/next29.png); width: 197px; height: 125px; background-repeat: no-repeat; background-position: center; text-align: left; vertical-align: top; } td#change2{ background-image: url(http://www.hullcalendar.com/images/numbers/next29.png); width: 197px; height: 125px; background-repeat: no-repeat; background-position: center; text-align: left; vertical-align: top; } </style> the code on my page is... <html> <body> <link rel="stylesheet" type="text/css" href="http://hullcalendar.com/stylesheets/test.css"> <table> <tr> <td id="change1">Cell 1</td> <td id="change2">Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> </tr> </table> </body> </html> so yer does anybody have a clue what im doing wrong?! Quote Link to comment https://forums.phpfreaks.com/topic/237892-css-and-tables/ Share on other sites More sharing options...
seanlim Posted May 30, 2011 Share Posted May 30, 2011 try removing the <style> tags, they aren't needed when in an external css file. Quote Link to comment https://forums.phpfreaks.com/topic/237892-css-and-tables/#findComment-1222440 Share on other sites More sharing options...
cssfreakie Posted May 30, 2011 Share Posted May 30, 2011 also put the <link tag inside the <head> section. besides that be more precise with what you mean with not working. symptoms please, or say what you expect. Quote Link to comment https://forums.phpfreaks.com/topic/237892-css-and-tables/#findComment-1222528 Share on other sites More sharing options...
hullcalendar Posted May 30, 2011 Author Share Posted May 30, 2011 thanks, its actually working now, removing the style tags had the desired effect! Quote Link to comment https://forums.phpfreaks.com/topic/237892-css-and-tables/#findComment-1222604 Share on other sites More sharing options...
cssfreakie Posted May 30, 2011 Share Posted May 30, 2011 thanks, its actually working now, removing the style tags had the desired effect! also have a look at the other stuff mentioned above Quote Link to comment https://forums.phpfreaks.com/topic/237892-css-and-tables/#findComment-1222616 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.