You are here: Re: Ignoring a Stylesheet « HTML « IT news, forums, messages
Re: Ignoring a Stylesheet

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация