There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers error excel firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem ram router slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Tables, Pixels and Percentages


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Jett's Avatar
Junior Member with 11 posts.
 
Join Date: Jul 2004
Experience: Computer Science Major
03-Aug-2004, 05:15 PM #1
Tables, Pixels and Percentages
Hey All,

I seem to be having a little bit of difficulty creating tables the way I'd like and am looking for suggestions. Basically I want to create a table that expands and collapses based on what resolution or how big their browser window is. The problem I'm encountering is that I want several columns to have fixed widths and only one column to have a dynamic width.

Here's the code I've been playing with for the last little bit:

<table width=100% cellspacing=0 cellpadding=0>
<tr>
<td width=175 height=119 bgcolor="#000000" background="someimage.gif">
<td width=20 height=119 bgcolor="#000000" background="anotherimage.gif">
<td width=100% height=119 bgcolor="#000000" background="yetanotherimage.gif">
</tr>
</table>

However, when I do it this way, the only image that appears is the "yetanotherimage.gif" and it's repeated across the whole page (horizontally). If anyone has any suggestions, they would be most appreciated.

Thanks

Jett
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
04-Aug-2004, 07:29 PM #2
Look at it theis way, you set your table to be 100% which is the width of the page or other table it may be nested inside of. Then you made a row with three columns in it. Column 1 is 175 pixels, column 2 is 10 pixels and column 3 is 100% the width of the entire row. You are overlapping your first two images with the third, more like squeezing them into nothing. If you want the last one to be dynamic do not put a width value in it.
__________________
**Disclaimer** Anything below this line ^ is part of my signature for those that may be confused

Sadly, there are no integers on this scale, so your gangly adolescent attempt to be clever has proved futile....Dieter

I have the right "NOT" to be tolerant of others because they are different, weird, or tick me off.....Parody of Andy Rooney

There are no stupid questions, but there are a LOT of inquisitive idiots.
Jett's Avatar
Junior Member with 11 posts.
 
Join Date: Jul 2004
Experience: Computer Science Major
04-Aug-2004, 08:28 PM #3
Yes, I did manage to figure this out. I did also, however figure out a way around the problem such that I can mix the two.

Thanks for the response,

Jett
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:05 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.