Reply to Re: Need advice on ID vs. class, etc.

Your name:

Reply:


Posted by dorayme on 12/07/05 03:06

> From: "Curtis" <nospam@nohow.not>

> uranther <apoc_gfx@yahoo.com> wrote in message
> news:pan.2005.12.04.03.01.50.598799@yahoo.com...
>> On Sat, 03 Dec 2005 18:05:53 -0800, Curtis wrote:
>>
>
>>> 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.
>>>
>
>> 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.
>
> Not sure I follow you--I probably need some examples. But
> I'll keep this in mind as I read some CSS tutorials next day
> or two. I've seen the div-id-class all-in-one declaration
> before, and don't quite get it's purpose yet.
>

A simple strategy for you: until you come to see what id is an advantage for
and have a need for it or understand it: just use class.
--
dorayme

[Back to original 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

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