Jump to content

Coloured background


Goodthing07

Recommended Posts

Hello,How would I go about setting a website so that there is a light coloured background and then the content of the website is all centred? An example of which is the W3Schools website the way they have their layout?Any help would be greatly appreciated.

  • Like 1
Link to comment
Share on other sites

Hey there! Well, first off, you'll have to go to your site's CSS file and find (or create) the property "background-color" in the "body" section of the stylescript, then assign the color you like. The color picker is quite handy for this stuff: http://w3schools.com/tags/ref_colorpicker.asp?colorhex=%23330033 As for the centering, you might try aligning your main content using the "margin" property. Here's the W3Schools tutorial on that: http://w3schools.com/css/css_align.asp

  • Like 1
Link to comment
Share on other sites

http://w3schools.invisionzone.com/index.php?showtopic=43174please don't double post. You have already asked this question in a forum already visible by all members of the forum. Answers and suggestions have already been provided. If you have more questions, please keep it in the same thread.
Link to comment
Share on other sites

Ya sorry about that just I was told by somebody before you replied to me that I'd need to know css which wasn't exactly helpful so I came into the css part of the forum as I tought I'd get a better response here.Thanks very much both of ye for the help tho! Tnd1000, got exactly what I wanted. Thanks again.

Edited by Goodthing07
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...