Posted by Chris Hope on 10/16/86 11:17
Lee Marsh wrote:
> Quick question...if in the header of the page I have this:
>
> <style>
> img{
> height:110px;
> width:130px;
> }
> </style>
>
>
> how can I make a single image on the page ignore this rule and define
> its height and width uniquely, and continue to allow that style to
> dictate every other image on the page? TIA
<img style="width:auto; height:auto" ...
OR
<img style="width:XXXpx; height:YYYpx" ...
where XXX and YYY are the width and height.
You can also declare these as a style class or with an id in the
stylesheet instaad of inline eg
<style>
#foo {
width: XXXpx;
height: YYYpx;
}
</style>
<img id="foo" ...
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Navigation:
[Reply to this message]
|