putting a background color makes a slight problem

free web hosting
Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

putting a background color makes a slight problem

suicide
take a look at this code

[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]


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

Reply

killer
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.

Reply

zarjay
You should use CSS to change your background color. In the header of your webpage, all you need is this code:

CODE

<style type="text/css">
body {background:#342c23}
</style>

Reply

SinisterMinisterX
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. tongue.gif ) 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.

Reply

kokushta
It looks fine to me, IE 6.0 and NS 7.02
maybe it's a browser related bug.

Reply

japanick
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 mellow.gif )

Reply

nhansroul
Hey!
I tried it with IE 6 and it perfectly works!!
It also really works on Free..
What's your explorer version???

Reply

Kovi
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.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : putting, background, color, makes, slight, problem

  1. Locking Background Image To Browser Borders.
    (7)
  2. What Is The Best Size To Make A Background In Photoshop?
    (6)
    I'm using Photoshop 7 and I want to make my own background. I'm learning how to do some
    neat things with it now. My question is, once I open up a new file, what size do I make it so that
    every person who visits my site will be able to view it correctly? I know people don't all have
    the same screen resolution, so what do I do? I want to make a banner too and am having the same
    dilema. Do I just make it one size, like 800x600 then have to do some kind of code to make sure it
    looks good for everyone? If so, can someone please tell me how it goes?....
  3. How Do I Keep A Background On My Site
    (14)
    I had a background on my site that i got on the internet. I don't remember the name of the site
    but from it I was able to save the background (which was a textured blue background) to
    photobucket.com. I've had it there for awhile, but now, all-of-the-sudden it disappeared. I
    guess you can only keep things on photobucket for so long. But how do I keep a background on my
    site if I can't host it somewhere? Is there a way to put the picture in cPanel and use it from
    there? If there is, I cant figure it out.....
  4. Need Help With JPEG Background
    (4)
    I'm just starting to design my website. So far, it looks okay. Here's a basic rundown:
    index.html is divided into two frames: menubar.htm (25%) and "mainwindow" (75%). The menu bar has
    about 7 images which, when clicked, open other .htm files in "mainwindow". I want a background image
    "tsmg2.jpg" (which is in the same folder as everything else) to be behind the 7 link- images. The
    image works, I know- I can code and it will display it. However, I want it as the background .
    I've been coding and putting that right under the first opening tag. Why....
  5. Html Background Tutorial
    (2)
    Back grounds are very essential in html and if you dont know how you can make a background on your
    website then there is no use of creating one . First well start with the basics . Color Background
    : If you want to change your backgrounds color you put this code in the body of the page : CODE
    Where the ###### are you have to put a color code . Just put that in and save your page and
    thats done . Image Backgrounds : The code below takes an image and puts it on the background on
    the page : CODE Thats all but if you have any questions at all ab....
  6. Putting Two Div Blocks Side By Side?
    CSS woes (10)
    Hi all~ Need some help with CSS. I'm trying to get two divs to reside side by side. Each div
    has a few lines of words and I need the two div blocks to be just next to each other if possible. I
    went through many methods and this is what I've come up with so far that works pretty well...
    The trial page is here . CODE #commentforma { margin-top: 2em; margin-bottom: 2em;
    margin-left: 2em; margin-right: 1em; text-align: center; float: left } #commentformb { margin-top:
    2em; margin-bottom: 2em; margin-left: 2em; margin-right: 2em; text-align: center; floa....
  7. Change Background Color Of Web-page With This
    (0)
    change background script input this in your html in the CODE ....
  8. background sound
    (4)
    As part of my college work I have produced a web page, that as to include dertain elements: meta tag
    info, internal + external link, images, text One audio clip, and one video clip, use of frames and a
    no frames option, one input form, and to demonstrates the use of a template. The problem is, I
    thought I had everything covered, and recieved some negative feedback, which I don't mind, but
    the problem is I know the music is annoying (no one more than me does) but until my tutor grades my
    work there it stays. So how can I make it so that it turns off (like a button or....

    1. Looking for putting, background, color, makes, slight, problem






*SIMILAR VIDEOS*
Searching Video's for putting, background, color, makes, slight, problem
advertisement




putting a background color makes a slight problem



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE