The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 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
pandy
post Feb 23 2012, 02:14 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,570
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.


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Read
post Feb 24 2012, 05:03 AM
Post #3





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



QUOTE(pandy @ Feb 23 2012, 07:14 PM) *

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.


yes, that worked very well, many thanks, also for the heads up on the inches - I'd wondered why the padding was so wide - changed to px now.

cheers

Brian
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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: 30th October 2014 - 11:39 AM