Click to See Complete Forum and Search --> : Simple CSS question


Wofen
06-16-2005, 05:39 PM
I have no idea how to word this, so please bare with me.

On most of my pages I will have 5 of 6 </div> tags. Is there some way I can name them, without using the comment function? (</div><!-- Table Div-->)

Thanks for the Help,

Its sometimes the simplest things that make life the easiest.

Wofen

LiLcRaZyFuZzY
06-16-2005, 05:52 PM
well you can use a selector : class or id
<div id="divsomthing">
...content
</div>

ray326
06-16-2005, 10:06 PM
Name the closing tag? No. Probably the best way to handle that is indented formatting.

Wofen
06-16-2005, 10:30 PM
I do indent (You can program without indenting??? :) ), and I do use class and ID(dont really know the difference between them but).

So, there is no way to lable closing tags other then to use comments :(

Oh well.

Wofen

LiLcRaZyFuZzY
06-17-2005, 09:13 AM
id would be for some element that appears one time, classes are for element that appear many times on the same page, as links, paragraphs or secondary heading

oh and yes, many people code without indenting! eew, horrible

DoubleJ
06-18-2005, 05:53 AM
(dont really know the difference between them but).

an ID can only be used once on 1 webpage while the class can be used multiple times.

But I don't know any other differences either.(probably somthing with scripting since java script uses id for javascript...)

LiLcRaZyFuZzY
06-18-2005, 08:37 AM
isn't that what i just said?

hawaiiangurl45
06-18-2005, 08:48 AM
hey since it's on this thread, does anyone know where I can find the correct formatting for indenting...i jsut kinda guess...lol :rolleyes:

but nope, there arent any ways to name a closing tag...and using comments are petty helpful in my opinion...but to make them stand out more, you could capitilize the letters and be more specific like

</div><!--END OF TABLE DIV>

LiLcRaZyFuZzY
06-19-2005, 01:50 PM
what do you mean by the correct formatting for indenting ?

Fang
06-19-2005, 01:56 PM
Indenting is a personal/company preference

</div><!-- END OF TABLE DIV -->