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

Hi, I am setting up a website, for which I would require one half of the webpage to be in white, and the other in black. I have tried making jpeg images of this and attempting to make it the background but am having no luck with alignment and size. Could anyone help me out by suggesting a way I could do this? Thanks

Dan

2007-02-06 09:10:40 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

I dont know what you mean by "each of them". The webpage is not set in two tables. The background needs to be in black and white, no matter what resolution. It cant be done in tables as I need a centered header image

2007-02-06 09:21:21 · update #1

6 answers

Here is a solution I put together for you which uses an image and not a table:

http://www.developerweb.net/yanswers/BlackAndWhiteBg/

The idea is to make a super wide (I used 5000 pixels and the image is only 157 bytes as a 2 colour gif) background image, and use CSS to centre it on the background using the body tag.

2007-02-06 09:27:51 · answer #1 · answered by zymsys 2 · 1 0

Make a 4000 pixel wide, 1 pixel high image where one side of the image, 2000 pixels, is white the other half black and save it as bg.jpg .... This code should work in most CSS compliant browsers.




2007-02-06 09:35:37 · answer #2 · answered by Fazzamar 1 · 0 0

Well this is depending on how you are setting up your web-site i don't know if you can over-lap tables but you could make two tables any size you need them to be and just make them the colors you desire now to make a table if you don't know how to just go to this tutorial and it will tell you how to make a table
http://www.w3schools.com/html/html_tables.asp then you may size it and add your colors hopefully this works for you and like i said if you can't over-lap tables i'm sorry Best Wishes

2007-02-06 09:21:48 · answer #3 · answered by blazncaczn 3 · 0 0

Use a margin fee extremely. A padding is going contained in the element, making it higher, and a margin is going outside the element allowing you to positioned it with out replacing the unique length. Jim

2016-12-03 19:45:51 · answer #4 · answered by papen 4 · 0 0

It depends on how your web page is constructed. You might have to specify the bgcolor in each of them. No CSS for this one, also, don't forget the "black" quotes, sometimes, the browser might not render..... details.... code check!

2007-02-06 09:14:51 · answer #5 · answered by paobay 4 · 0 0








put stuff here for the left column put stuff here for the right column


the style sheet above will get rid of the default 10 pixel margin around the edges of your pages.

2007-02-06 09:21:13 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers