English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'd like the top part of my page to have an orange background and the bottom part to have a green background. How can I do this?

2006-11-21 06:35:28 · 6 answers · asked by Somebody 1 in Computers & Internet Programming & Design

6 answers

Set the background colour for the whole page as green (example #006633).

Then create an orange image that is the exact height of the part you want orange and make it 5px wide (example) and have it repeat across the width of the page.



In the code I have set the background of the page to green, then told the page that it will have an image over the top of that and that the image will repeat horizontally.

This code either needs to be an a style sheet or placed in the tags of your html page.

There are a few different ways this can be done though.

2006-11-21 08:29:55 · answer #1 · answered by crly 2 · 0 0

Hi, Visual C# Language Concepts Code: Changing the Background Color of a Form (Visual C#) This example changes the background color of a Windows Form programmatically. Example Copy Code private void Form1_Click(object sender, System.EventArgs e) { this.BackColor = System.Drawing.Color.DarkBlue; } Compiling the Code This example requires: A form named Form1. Set Form1's Click event handler to Form1_Click.

2016-05-22 08:22:44 · answer #2 · answered by Anonymous · 0 0

Create a table with two section - top half and bottom half. Just a different background color in each half.

2006-11-21 06:38:58 · answer #3 · answered by dewcoons 7 · 1 0

You an create an image that is 1 px wide by howerever high you pages are and
then add



to the page to have it repeted along the width of the page. this way saves bandwith

2006-11-21 07:06:17 · answer #4 · answered by darkmoor 2 · 0 0

Use Frames or Tables .
For gradient changes use GIMP/Photoshop and set background image.

Normally , you would want to create an image and set it as background of your webapp.

2006-11-21 07:14:33 · answer #5 · answered by rohitchauhan802 1 · 0 0

If you want a gradual (gradient) change, use Photoshop.

2006-11-21 06:41:37 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers