Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Zanthus

macrumors member
Original poster
Aug 19, 2009
38
0
Reading, Uk
Hi,

I want a two tone website background with the top say 20% one colour and the bottom another colour whats the best way to implement this ?

Its probably really simple but cant figure it out

Cheers

Craig
 
try this

In your iweb program open the inspector window.
Click on page inspector- then the layout tab – page background dropdown menu- Gradient fill- then choose the color and % you want
 
Create the background image as you want it and use CSS. I suggest a long, narrow image that is repeated horizontally.

Code:
body
{
background-image:url('yourbackground.png');
background-repeat:repeat-x;
}

This will repeat your long, narrow image (faster load time) on the x axis forever (read: as large as the window gets).

http://www.w3schools.com/css/css_background.asp
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.