>I am learning HTML5 and looking at a sample site. I see that the entire Body section (not tag) is enclosed in a couple of Div tags. Then within the Div tags there are Sections (HTML5 tag Section). Perhaps mistakenly I thought that when designing in HTML5 the Div tag is only used for small sections within Section tags. So does this make sense that this designer use Div tags and then Section tags within the Div?
One of the main reasons to use a div as a container for the whole page is to set its postion:relative; which allows for children div to be position:absolute; relative to its parent div rather than the browser window itself.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement