Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ <img id="">

Posted by: robby Dec 22 2008, 09:11 PM

I guess you can call me new to the world of html. For the most, I have a pretty good idea of css. On a few sites I've seen <img id="">. I was just curious as to what its intent was and how css applies to images. Any help is appreciated.

Posted by: pandy Dec 23 2008, 12:17 AM

If you have an id you can use an id selector.
http://htmlhelp.com/reference/css/structure.html
The id can also be used for scripting purposes.

A lot of CSS can be used with an image. Maybe it needs a margin or a colored border. Maybe you want to float it or position it. Or you want to hide it when printing. Or something. smile.gif

Posted by: robby Dec 23 2008, 04:05 PM

QUOTE(pandy @ Dec 23 2008, 12:17 AM) *

If you have and id you can use an id selector.
http://htmlhelp.com/reference/css/structure.html
The id can also be used for scripting purposes.

A lot of CSS can be used with an image. Maybe it needs a margin or a colored border. Maybe you want to float it or position it. Or you want to hide it when printing. Or something. smile.gif

Thanks biggrin.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)