You are here: Re: Need advice on ID vs. class, etc. « HTML « IT news, forums, messages
Re: Need advice on ID vs. class, etc.

Posted by uranther on 12/04/05 04:57

On Sat, 03 Dec 2005 18:05:53 -0800, Curtis wrote:

>
>> if we use a div=, or if we use class= as
>
> Oops. I meant id= here. I told you I was new to CSS.
>
> The question was whether <div id="foofoo"> was preferred
> over <div class="foofoo"> or not, among other things.
>
>
> ---
>
> Curtis
>
> Visit We the Thinking
> www.wethethinking.com
> An online magazine/forum
> devoted to ideas.

id is for one-time use only. class is for more than one-time use only.
You can select both like so: <div id="special" class="global"> and that
is very useful for cutting and tightening your CSS.

 

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

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