i've heard that you shouldn't use the same div twice on a web page. i've also heard it doesn't matter.
do you know for sure if it does?
if i explained that bad just say, i'm half asleep atm.

i've heard that you shouldn't use the same div twice on a web page. i've also heard it doesn't matter.
do you know for sure if it does?
if i explained that bad just say, i'm half asleep atm.
+.net - omg it's coming o_o
You can, only if those divs are the same.
If you have 2 different divs with the same name, they'll probaby go crashing with each other.![]()
unless you use classes
Yeah, div ids should only be used once on a page but classes can be used multiple times.
thanks (;
+.net - omg it's coming o_o
id = #
class = .
E.g:
.header {
CSS
}
Can be used more than once
#header {
CSS
}
Can't be used more than once ( on the same page )
I got told if you're wanting to use the same div twice it's valid to use classes not id's.
Back for a while.
You can only use the same divs if they are the same.
Like navigations etc, if you want them to look the same, you can use div's twice.
both of them are correct. Its alright to use IDs, its just not valid html thats all
Want to hide these adverts? Register an account for free!