The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Background colour for centred page
Brian Read
post Feb 23 2012, 01:43 PM
Post #1





Group: Members
Posts: 7
Joined: 23-February 12
Member No.: 16,556



Hi

I have a site:

http://iea.goldendome.org.uk

I want to set the central page background to a light colour, but when I enter a background colour or background image, it fills the whole browser window, not just the central page area.

Any ideas?

cheers

Brian
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
pandy
post Feb 23 2012, 02:14 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



The background of BODY often color the whole canvas. Wrap everything in a DIV instead and apply your styling to that. I.e. move the id and the inline style from BODY to the DIV

Inches is a unit for print. Better not use it on the web.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 07:56 AM