PDA

View Full Version : Controlling images within a table using CSS..


djshongo
04-20-2009, 04:27 PM
Hi,

Im have a table with 3 rows and 3 columns, each cell containing an image.
Id like to control the images within these cells using my CSS file, however im not too sure what rules to use..

I want to centre all of the images, and set their borders to 0px.

So far i have:

#td {
text-align: center;
}

This centers my images fine, but what about the borders?

Thanks in advance :)
J

d a v e
04-20-2009, 04:33 PM
#td {
text-align: center;
border:0;
}

you need to use divs for layout, unless of course it's a table with tabular data ;)

djshongo
04-20-2009, 04:43 PM
that doesnt work ... sorry!

d a v e
04-20-2009, 06:32 PM
please post a link to the page so we can see why

domedia
04-20-2009, 07:13 PM
that doesnt work ... sorry!
See the sticky thread in this forum if you need help. 8)