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.
<td [b]id="mycell"[/b]>

or
<td [b]class="mycell"[/b]>


then in style.css add something like this:
/* 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 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 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

Who's Online

279 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 279


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits