Question from a freind

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
smartguy240

Question from a freind

Post by smartguy240 »

Ok i have a freind that has a question that needs answering today but i wont have time to answer it cause i am gonna be away today...so maybe one of yall can answer it.


<---start message--->

I've got my page in the main table. It has
everything on it. Its 710 pixels and centered. Then I've got my backgroung
set to a 2 pixel image I found at Gamespot.com. Now my problem is, I need to
figure out how to get a one pix. image to be a border around the main table.
Kind of like at gamespot with the light gray border all the way around.

This is what Ive tried. I made a new table (RED in the attatched image)ant i
did this: In <td> number one, I did <img src="...blahblah.../bge" width=1
height=1>. this is the corner. then in the next cell, I did the same, except
width was 100%. then I did another 1 pix in the next cell. then in a new
row, and the first cell, I did the image width=1 and height=100%. that way
it should be the whole length of the main table.

in the next cell goes the main table. and in the next is a repeat of the one
before that. then in the next TR i repeated what I did in the first. when I
was done, and I took off the table border, I could see the pixels on the top
and bottom rows, but they weren't touching the main table. the ones on the
left and right of the main table were non-existant.

So do you think part of my problem is that I need to align the images in a
certain way? or am I going about this the wrong way? I would check the
source for gamespot, but its so complicated, it'd take forever. any help
would be appreciated.

-antieuphoria-
CESS.tk

Re:Question from a freind

Post by CESS.tk »

A 1x1 pic? That's just a unicoloured pixel right? So just put everyting in between <table bordercolor="#hexcode" border="1" cellpadding="0"> and </table> and replace hexcode with the disired colour.
Joel (not logged in)

Re:Question from a freind

Post by Joel (not logged in) »

or you could use a stylesheet, as in:

<table border = 0 style = "width: 100%; border: solid #cccccc 1px;">
</table>

Only problem is that you might exclude some of the crappier browsers that are out there.
antieuphoria

Re:Question from a freind

Post by antieuphoria »

BuzleScut wrote: A 1x1 pic? That's just a unicoloured pixel right? So just put everyting in between <table bordercolor="#hexcode" border="1" cellpadding="0"> and </table> and replace hexcode with the disired colour.
I am, in fact, the guy with the problem, and this helped a lot. It worked perfectly. Thanks. the site is http://www.angelfire.com/games5/cutrateconsoles and as you may be able to tell, the background now looks just like Gamespot.

About the site, dont try to buy anything, it wont work. THe site is mainly practice for me, since its the first one Ive made that is anywhere near decent.
Post Reply