NuCoder Posted May 10, 2009 Report Share Posted May 10, 2009 Sorry - another Newbie question Is it necessary to use #wrapper & #container in a CSS page? I tried making a quick page 900 px wide First part of the HTML: ConnObby /* CSS */ CSS: body { background-color: #dbd7ab; background-repeat: repeat-y; } #header { } #body { width: 950px; min-height: 1000px; Text-align: center; } #container { width: 975px; min-height: 1000px; margin: 0 auto; text-align: left; } #wrapper { position: relative; margin: 0 auto; } Using a left navigation would I also need to use a #content for my main content or is this considered the #container. I ask this as I am having issues with the layout. Isn't the container - the browser window? Also : #navigation: { float: left; width: 200px; min-height: 500px; margin: 50px 10px 10px 15px; padding: 10px; border: right: 2px solid # #5C7452; background-color: ##DBD8BA; } #mainCont { width: 950px; min-height: 1000px margin: 50px 0px 10px 0px; } ?? any input is greatly appreciated.... thank you - Quote Link to comment Share on other sites More sharing options...
Andrea Posted May 10, 2009 Report Share Posted May 10, 2009 Quote Link to comment Share on other sites More sharing options...
virtual Posted May 10, 2009 Report Share Posted May 10, 2009 As Thelma says, you can name div tags anything under the sun. However it is best to name them according to their use, so it is easy to see what exactly they do. Don't confuse yourself by naming a div tag body, is an html tag.A simple set up, and by no means the only one, would be as follows: Your heading info here using a tag and possibly your navigation All your footer info in here The indentation helps to visually divide your page into sections and I personally always use the closing comment so I don't forget to close a div tag. Quote Link to comment Share on other sites More sharing options...
NuCoder Posted May 10, 2009 Author Report Share Posted May 10, 2009 Thank you both! Quote Link to comment Share on other sites More sharing options...
LSW Posted May 11, 2009 Report Share Posted May 11, 2009 Container and Wrapper are the same thing. Just two prominent naming conventions. Whether my web site is wrapped in it or contained in it does not matter. But yes it is a good idea to have one something between body and the actual web site. It is not required.... but can be very useful in complicated designs. I had to go back and add them after the fact so often that I simply build with them now so they are there if needed and if not... they hurt nothing. Quote Link to comment Share on other sites More sharing options...
NuCoder Posted May 12, 2009 Author Report Share Posted May 12, 2009 Thanks LSW Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.