Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

I want to make the Background color as Dark green and White Mixing.

My Logo color is #197E46

So, I need to make the Back ground color as Mixing with two colors.(Green and White)
Chk this Website. www.mofa.gov.sa I need Same as it is background


Please help me, howa to do multiple colors as background.


Thanks
Posted
Comments
barneyman 30-Jun-12 1:33am    
Can't you just look at the website source and determine how they're doing it?

Hi,
The background of the website which you provided is not having background color.
It is having background image. Here[^] is the image of that website.
Follow the links below to have some interactive design in your website:
http://blog.myfreetemplatehome.com/[^]
http://jayce-o.blogspot.in/2012/01/12-best-online-website-builders-to.html[^]
http://www.5sec.com/[^]
All the best.
--Amit
 
Share this answer
 
Hi,

The website you provided have a white background defined (on the body element) and a background image containing a gradient defined here: http://www.mofa.gov.sa/MOFADesign/MOFA-Images/Bg_Html.jpg[^].
This background-image is 1px wide and is defined as repeat-x, so it will repeat itself horizontally.

This is the safe way to get it working on all browsers including IE6 / IE7. If you only want to support newer browsers, I would use CSS3 gradient definitions.

Here is a generator for such gradients (containing also a 'hack' for IE6+): http://www.colorzilla.com/gradient-editor/[^]

Here you can see how this is used:
http://jsfiddle.net/zhQAw/1/[^]

Hope this helps.

Best regards and happy coding,
Chris
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900