On 6/8/05, Gerry Creighton <[EMAIL PROTECTED]> wrote:
> is it possible to adjust padding to two different images within a td
> as shown below?
> 
> td.img#imageone {padding: 4px;}
> td.img#imagtwo {padding: 0px 4px 0px 2px;}

Your selectors are a bit malformed. Remove the dot and add a space like so:

td img#imageone { padding: 4px; }
td img#imagetwo { padding: 0 4px 0 2px; }

Assuming your markup looks like:

<td>
<img id="imageone" ... />
<img id="imagetwo" ... />
</td>

Then the CSS would work as expected. In fact, the "td" in your style
rules becomes redundant, the unique id alone is enough to specify
which image gets the padding.

-- 
Craig, www.focalcurve.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to