• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

tables help...

Lokannon

New Member
Okay, this might seem simple to some of you. But im pretty good (well, very good, but i dont like to brag, :D) at html, and i still cant figure it out! i think im just haveing a bad day..... Since the server im hosted at is DOWN for repairs, then ill just post that part of the code here.... hope you dont mind...=/. Im making a table with a black border. I didnt want the border to be too thick, so i used an image as a background. (i sorta followed like what they did on Spoono.com....) My problem is that the top and bottom cells (the ones that span 3 colums) are ALWAYS too big. Cant figure out why... If i take out the image "spacer.gif", then will NS 4.5+ be able to see it? I didnt think they supported images as backgrounds. Anyways, enugh of me babbling. Heres the code:

<table border=0 bordercolor=000000 cellspacing=0 cellpadding=5 width=750 height=400>
<tr>
<td width=3></td>
<td align=left width=100%>
<!-- news column -->
<table width=255 height=350 cellpadding=0 cellspacing=0 border=0>
<tr>
<td background="general/black.gif" colspan=3>
<img src="general/spacer.gif">
</td>
</tr>
<tr>
<td background="general/black.gif">
<img src="general/spacer.gif" width=1 height=1>
</td>
<td bgcolor=2D394B height=350 width=255>
<!--Background for News-->
</td>
<td background="general/black.gif">
<img src="general/spacer.gif" width=1 height=1>
</td>
</tr>
<tr>
<td background="general/black.gif" colspan=3>
<img src="general/spacer.gif" width=1 height=1>
</td>
</tr>
</table>
</td>
</tr>
</table>

I appreciate your help!!!!!

:: Lokannon

(( edit -- I cant organize it... SORRY if its hard to read. =/. ))
 
Last edited:
Errrrr...hard to know what you mean since your images don't have any sizes, so how big do you intend the cells to be? :p
If you are talking about a little extra whitespace it's probably because of linebreaks in the code. Shove the code for the cells together on one line.

Not like so:
<td>
...
</td>

But like so:
<td>....</td>
 
<td background="general/black.gif" colspan=3>, etc.
If "black.gif" is just a black pixel like I think it is, why not just use bgcolor="#000000" instead?
I didnt think [Netscape 4.5 and up] supported images as backgrounds
You're thinking of Netscape 3.x and below.
 
OKAY!

Ya, that definitely helped...

So far as im concerned, i could care less about NS 3.x and below. Or anyone on a friggin mac. Bah!

Yes, black.gif is justa black pixel.

But, wow am i slow! I just used the bgcolor tag, and it works fine... :D. thnx, i really am havin a slow day! LMAO!

Peace
:: Lokannon
 
"It" being the spacer.gif image, right?

(Without quoting anything it looks like you're talking about the black image background, which really should be removed.)
 
SOMEONE HIT ME!

Wow, ya i removed the spacer.gif image, removed the black.gif image, used style sheets, and BAM! it all fell into place. Its magical what stylesheets can do. :D. Now to make it look GOOD on netscape...hm... well, hey it works! I used this in the syle sheets....

Table { border: 1px solid;}

Its magical...ahhh... :D:D:D

:: Lokannon

(( edit -- I put pack the <td>'s with the black background color, and it looks semi good in netscape, while it looks the same as removing those <td>'s in IE. :D. Im happy! woo hoo! Soon ill be ready for a review! YES! ))
 
Last edited:
I'm confused too. Was that in response to me, Meow? And if it was, what the hell are you talking about?

You know, the quote button has magical properties. :D
 
I don't want to look like GC. :cool:
The only content was the spacer so taking anything else away wouldn't have made the cell empty. GOT IT? :jaguar2:
 
I'm going to assume you were speaking to me just then. I understand what you're saying but I don't know why you're saying it, what are you responding to? :confused:
 
Originally posted by Dusty
"It" being the spacer.gif image, right?

(Without quoting anything it looks like you're talking about the black image background, which really should be removed.)
 
Thread recap:
  • Lokannon - posts a question about tables
  • Meow - explains the origin of unintended spaces
  • Dusty - says you can use a bgcolor instead of a solid-color background
  • Lokannon - says never even thought of just using a bgcolor
  • Meow - makes a vague comment to not remove "it"
  • Dusty - tries to figure out what "it" is, having already reached the conclusion that "it" is spacer.gif
  • Lokannon - discovers CSS and problem is solved
  • Meow - says a background doesn't make a cell empty (???)
  • Lokannon - confused by Meow's bizarre comment
  • Meow - becomes angry at not being understood
  • Dusty - confused by Meow's bizarre comment, suggest use of <quote>
  • Meow - says spacer.gif was the content so apart from that, everything can be removed from the cell and it will still have content
  • Dusty - questions why Meow made that comment and to what previous post Meow was referring to
  • Meow - quotes Dusty trying to figure out what "it" is and guessing "it" is spacer.gif

Let's start over back at point five. You said "don't take it out". You never clarified what "it" was, so logic would say you were referring to the last object spoken of-- the black.gif background image. I figured you meant to say "don't take out the spacer.gif's" however, because if those were removed the cells would be left empty. Everything beyond this point was clouded by misunderstanding and ill-interpretation, so let's just skip it and go from here.
 
Back
Top