html - What does the "container" div class do on Weebly themes? -



html - What does the "container" div class do on Weebly themes? -

i'm quite beginner css , html i'm trying larn while making webpage on weebly

anyways, see container div class after every div id. looking through css , saw margin , width property div class itself, saw container class kid element after id selectors. wondering container class , why needed.

example:

.container { margin: 0 auto; width: 960px; } #nav-wrap { background: url(nav-bg.jpg); box-shadow:0 1px 2px 1px rgba(0,0,0,0.25); position:relative; z-index:3; } #nav-wrap .container { clear: both; overflow: hidden; position: relative; width: 960px; box-shadow:none; }

in illustration above, area #nav-wrap indicate , area #nav.wrap .container indicate?

thanks!

#nav-wrap correspond html tag id nav-wrap. nav-wrap container compound styling; area both nav-wrap , container styles apply. read source code. if tinker with, might find drawing boxes outline or changing div background colors instructive.

html css weebly

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

model view controller - MVC Rails Planning -