PDA

View Full Version : Help with Css



Believer
Mar 3rd, 2010, 05:46 PM
Need help for css to design my background.. I want to use two colors.
Top brown and down yellow.. Please if you can please paste it here.. I will check out soon.

Azzaboi
Mar 3rd, 2010, 05:59 PM
Well this is an example of how to split a background color in half sideways I found, but it might give you the basic idea:
http://upwithabang.com/articles/example4/split-background.html
http://upwithabang.com/articles/css-split-background-color.html

zen-angel
Mar 4th, 2010, 03:46 PM
you can use this:

body {background: #FF0000 url(/pathToImages/yellow.png) 0 0 no-repeat;}

where ff0000 is one of the colors you want to use, while yellow.png is an image of size and color that you will specify, e.g. 200x100 solid yellow png image.

0 0 will position it at the top left corner of the body tag, you can replace 0 0 with right bottom or specify offsets like 10px 10px, or a combination of any of them.

HTH

Luca
http://www.zen-angel.com