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 Curtis on 12/04/05 11:51

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.

But if using that will allow Marx markup users to employ
simpler CSS directives, I'm all for it.

Thanks,

--

Curtis

Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to ideas.

 

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

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