Hrky Posted July 21, 2015 Share Posted July 21, 2015 Hello. I am new with css and i would apriciate help. how can i make body of page to be placed like this(yellow representing where body of page shoud be) and white representing some website background. so body have one background(where yellow colour is) and website another background(where white colour is) Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted July 21, 2015 Share Posted July 21, 2015 (edited) Your can wrap your content in a container. See example https://jsfiddle.net/arswgywm/ Edited July 21, 2015 by Ch0cu3r Quote Link to comment Share on other sites More sharing options...
NetKongen Posted July 26, 2015 Share Posted July 26, 2015 (edited) I am confused..Body is the yellow and website is the white - is it not the other way arround you want it? Edited July 26, 2015 by NetKongen Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted July 27, 2015 Share Posted July 27, 2015 @NetKongen - Are you referring to the <body> tag? If so, whatever you set the background to will dictate what the overall website will look like in the browser window. So if the <body> tag is set to a white background, the entire page will be white. Note that most browsers default the <body> background color to white...which is probably why Ch0cu3r chose to use green. The content that you put inside of the <body> tag will then be layered over top of whatever color or background that you used for the <body> tag. Note that all those <div> tags shown in Ch0cu3r's example would be added inside of the <body> tag. 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.