Tables in webpages

Electronics Computer Programming Q&A
Post Reply
Mike
Posts: 1813
Joined: Thu Mar 06, 2003 1:01 am
Location: Illinois
Contact:

Tables in webpages

Post by Mike » Fri Jan 30, 2004 6:34 pm

This problem really has me confused.<p>How can I get a table to stretch across the entire page no matter what size, such as this site:<p>www.amd.com<p>
I can never seem to get rid of the border on between the frame and the window edge.<p>I use Dreamweaver MX. Is this a limitation of the software?<p>Thanks, Mike

dyarker
Posts: 1742
Joined: Fri Aug 22, 2003 1:01 am
Location: Izmir, Turkiye; from Rochester, NY
Contact:

Re: Tables in webpages

Post by dyarker » Fri Jan 30, 2004 8:42 pm

I'll have to look this up, and its time to go to work. But something like <table width="100%" ...><p>the HTML4.01 spec at www.w3.org has the info you need. It can be downloaded so you don't have to go to the web every time you have a question.<p>C U L -
Dale Y

myp71
Posts: 585
Joined: Wed Apr 23, 2003 1:01 am
Location: Colorado
Contact:

Re: Tables in webpages

Post by myp71 » Fri Jan 30, 2004 8:54 pm

So the code I sent you mike didn't work? well I tried :cool:

dyarker
Posts: 1742
Joined: Fri Aug 22, 2003 1:01 am
Location: Izmir, Turkiye; from Rochester, NY
Contact:

Re: Tables in webpages

Post by dyarker » Fri Jan 30, 2004 9:25 pm

rereading para 2 sentence 2, I might have implied the wrong thing. I mean you can save the expense and time of connecting to the 'net and clicking to find what you want. Or waiting for someone to answer your question on the forum.<p>I tend to a kurt/brief as possible style, otherwise detailed explanations would turn a page into a book.<p>Ask all the questions you want, and don't be insulted if my answer seems "short" or "sharp".<p>Cheers,
Dale Y

Mike
Posts: 1813
Joined: Thu Mar 06, 2003 1:01 am
Location: Illinois
Contact:

Re: Tables in webpages

Post by Mike » Sat Jan 31, 2004 5:02 am

OK thanks, thats one of the few things I can't figure out!<p>my p71,<p>I actually never got around to trying your code. Since it was this:<p><TD BACKGROUND="/fs_img/builder/builder21/yellow_lines.gif"><IMG SRC="/fs_img/spacer.gif"></TD><p>I think that the image was about 5 pix wide and about 2000 pix tall, so you would only see it repeat once.<p>Except I don't get that spacer.gif part.

hp
Posts: 245
Joined: Sat Aug 09, 2003 1:01 am
Location: Friendswood, TX
Contact:

Re: Tables in webpages

Post by hp » Sat Jan 31, 2004 11:06 am

The spacer.gif is used to make the table size correctly. That means that if the spacer.gif was 5x200 then the table would size to 5x200. This also means that the spacer.gif would have to be transparent so the user could see the background yellow_lines.gif.<p>You could also make the table size without using a spacer.gif by setting the table to width="100%". This would make the table autosize to 100% the width of the page.<p>Hope this helps in some way,
Harrison

Mike
Posts: 1813
Joined: Thu Mar 06, 2003 1:01 am
Location: Illinois
Contact:

Re: Tables in webpages

Post by Mike » Sun Feb 01, 2004 3:43 pm

HP,<p>Thanks, I'll try that.<p>
Just wondering, I visited your site, the counterstrike one. What is counterstrike? i've heard of it but don't know what it is.<p>-Mike

hp
Posts: 245
Joined: Sat Aug 09, 2003 1:01 am
Location: Friendswood, TX
Contact:

Re: Tables in webpages

Post by hp » Sun Feb 01, 2004 4:38 pm

Counter-Strike is first person shooter, multiplayer game based on terrorist and counter-terrorist game play. For more info you could visit http://www.counter-strike.net/ which is the offical website.<p>Harrison

Mike
Posts: 1813
Joined: Thu Mar 06, 2003 1:01 am
Location: Illinois
Contact:

Re: Tables in webpages

Post by Mike » Sun Feb 01, 2004 7:25 pm

OK, thanks, I was just wondering.<p>also thanks again for the responce about that code from my p71 (thank you too)<p>-Mike

formula KZ1000
Posts: 9
Joined: Thu Dec 04, 2003 1:01 am
Contact:

Re: Tables in webpages

Post by formula KZ1000 » Thu Feb 05, 2004 1:08 pm

You need to put the following in the body tag and have the width of the table set to 100% <p>leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"<p>Eddie

Mike
Posts: 1813
Joined: Thu Mar 06, 2003 1:01 am
Location: Illinois
Contact:

Re: Tables in webpages

Post by Mike » Fri Feb 06, 2004 4:40 am

Thanks! <p>I'll try that!<p>-Mike

Mike
Posts: 1813
Joined: Thu Mar 06, 2003 1:01 am
Location: Illinois
Contact:

Re: Tables in webpages

Post by Mike » Sat Feb 14, 2004 5:04 pm

I got it!<p>Thanks everbody!<p>what i had to do is go into page properties and type 0 in for all of the margins. I assumed before that nothing in the box meant 0.<p>Thanks!
-Mike

formula KZ1000
Posts: 9
Joined: Thu Dec 04, 2003 1:01 am
Contact:

Re: Tables in webpages

Post by formula KZ1000 » Wed Feb 18, 2004 10:56 am

Mike,<p>In dreamweaver typing 0 in for all of the margins, is the smae thing as putting the following in the body tag
leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"<p>Dreamweaver just does it for you.<p>Eddie

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests