Jump to content
xisto Community
Sign in to follow this  
suicide1405241470

putting a background color makes a slight problem

Recommended Posts

take a look at this code

 

 

<BODY bgcolor="#342c23">

 

 

 

<table width="570px" bgcolor="#83423c" align="center" height="500" cellspacing="0" cellpadding="0">

 

<tr>

<td bgcolor="#324c23" align="center" height="54">Test 1</td>

</tr>

 

<tr>

<td>Test2</td>

</tr>

 

<tr>

 

<td>Test3</td>

</tr>

</table>

 

</BODY>

[code=auto:0]

 

 

when the tag for the background color of the page is put in, it makes the top cell for the table appear slightly off. however when it's not in, the cell inside the table appears fine

Share this post


Link to post
Share on other sites

dude did u try to upload to some free webpace cause it sometimes gives error when viewing loacally and under the same deverloper kit i used to have same probb when i used to have black background but when i inserteed new table or image it showed background as Grey so some on told me that its software glitch or something if u r using software to make the page.

Share this post


Link to post
Share on other sites

Suicide, I tried your code and I don't see what's wrong with it. It looked fine to me. (Aside from some strange color choices, but that's just my opinion. :) ) Could you be more specific about how the top cell looks "off"?Perhaps it's a browser-related issue. I looked at your code with IE 6, just for the record.

Share this post


Link to post
Share on other sites

Code looks bug free, and works fine on IE 6 and Mozilla firefox. Please tell us what exactly is going wrong w/ your page, because it should work both with the bgcolor tag in the body, and without.(And I think the colors are pretty cool :) )

Share this post


Link to post
Share on other sites

Is it that the top table seems very slightly shifted to the right, and maybe back? If that's what you're talking about, then it's a simple visual effect of the colors you've chosen. I'm not entirely sure why it happens, but a few minutes searching Google should turn up the reason. If you also want a more apparent example of this effect, try placing a block of blue right next to a block of red against a black background.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.