Jump to content

CSS and tables!


hullcalendar

Recommended Posts

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?!

Link to comment
https://forums.phpfreaks.com/topic/237892-css-and-tables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.