Help - Search - Members - Calendar
Full Version: <img id="">
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
robby
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.
pandy
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
robby
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.