Layout with divs... can you have too many?
Posted
by
user1066982
on Stack Overflow
See other posts from Stack Overflow
or by user1066982
Published on 2011-11-26T16:58:32Z
Indexed on
2011/11/26
17:50 UTC
Read the original article
Hit count: 142
What is the best practice for developing a layout? Is better to limit divs? I was looking through the html/css of some popular sites and they all seem to have divs within divs. For instance, a div for the entire page, a div for the topbar, a div within the top bar for the logo, search bar, etc.
Is this a good practice? I suppose it's easier to position all the divs correctly and than place the necessary elements within the divs. It's what I've been doing this far but want to make sure I'm learning the correct approach.
Any help on this is appreciated. Thanks!
© Stack Overflow or respective owner