1
antah
Image settings in style.css file? how? pls help!
  • 2004/1/16 13:20

  • antah

  • Just popping in

  • Posts: 29

  • Since: 2003/1/12


hello there,

i want to define border for any images in one cell of my page, but I don't know how to make it. Pls give me some hints.

thank!

2
ackbarr
Re: Image settings in style.css file? how? pls help!

step 1: give your cell a specific id or class. This will be used to identify your cell through css.
le="color: #000000"><?php <td [b]id="mycell"[/b]>

or
le="color: #000000"><?php <td [b]class="mycell"[/b]>


then in style.css add something like this:
le="color: #000000"><?php /* if using 'id' */ #mycell img {border:1px solid #808080} /* if using 'class' */ .mycell img {border:1px solid #808080}


The first style can be read as: any <img> tag decending from any html element with the id of 'mycell' should have a 1 pixel solid grey border.

The second is almost the same: any <img> tag decending from any html element with the class of 'mycell' should have a 1 pixel solid grey border.

Additional References:
W3Schools CSS Selectors
W3Schools CSS Border Property

3
antah
Re: Image settings in style.css file? how? pls help!
  • 2004/1/16 16:29

  • antah

  • Just popping in

  • Posts: 29

  • Since: 2003/1/12


thnx! that was a real big piece of help!

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits