Solved

Tables, Tables, Tables...

Posted on 1998-12-29
6
175 Views
Last Modified: 2010-04-09
(To properly understand this question, please go to http://www.cybercen.net)  The black bar on the left is always as long as the page is.  I want to chop it off where the links end, and then I want the rest of the page to widen, and fill in where the black used to be.  The table setup to do this is eluding me.  Thanks.    
0
Comment
Question by:Firelord17
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Author Comment

by:Firelord17
ID: 1841084
Adjusted points to 50
0
 
LVL 6

Expert Comment

by:PBall
ID: 1841085
<table cellpadding=0 cellspacing=0 border=0>
<tr>
  <td rowspan=4 bgcolor=black align=left valign=top>
  --replace this with whatever content you put in the black bar--
  </td>
  <td align=center valign=top>
  --your MMC logo and 800x600 thing go here--
  </td>
</tr>
<tr>
  <td align=left valign=top bgcolor=red>
  How do you ....
  </td>
</tr>
<tr>
  <td align=center valign=top bgcolor=blue>
  Welcome ...
  ---inner table---
  </td>
</tr>
<tr>
  <td align=center valign=top bgcolor=red>
  Visitor since...
  </td>
</tr>
<tr>
  <td align=left valign=top bgcolor=red>
  Attention...
  </td>
</tr>
</table>

Adjust table size and the first two cols widths to your liking.
Is that it?
0
 
LVL 2

Expert Comment

by:jedimike
ID: 1841086
The reason that the frame is longer than the text is one of two reason: First, the column is defined with a width of 23%. You can look at this by viewing the source of the page.  Second the frame cannot possibly get any smaller because the image that is just above the list of links. Tables cannot shrink images. You have to physically set a width and height on images yourself or resize them in a graphics editor.  
To solve this easily: Remove the image AND remove the column width setting, the table will shrink to where the links end.
For the rest of the table to fill in the page, you have to set the width of the table to 100%. i.e.
<table width="100%>
<tr>
<td>here goes the list without the image</td>
<td>here is the rest of the page</td>
</tr>
</table>
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:martinag
ID: 1841087
If you change
  <TD bgcolor="#000000" width="20%" valign=top align=left>
to
  <TD VALIGN="TOP"><TABLE BORDER="0"><TD bgcolor="#000000" width="20%" valign=top align=left>
and
  </TD>
to
  </TD></TABLE></TD>
the black table will end just below the links.

However, to get the rest of the page flow around it, you have got three options:
* Hardcode - ie. cut before "is the process" and put that on a new row (to get it look well at my screen, that is. It might look awful on wider screens...)
* Use DHTML - I know hardly nothing about DHTML, but I'm sure someone can come up with something that will make it flow pretty well. Will only work in IE4 and/or NN4!
* Use an image map instead of the table. It's easy to get the text flow around it (if red is made the background of the page).

I'd choose the image map.

Martin
0
 

Author Comment

by:Firelord17
ID: 1841088
You misunderstood my questions Pball, but thanks anyway.  However martinag gave me an acceptable anwser.  So martinag, if you anwser this question I will award you the points.  Thanks to everyone who tried to anwser this question.

Firelord17
0
 
LVL 4

Accepted Solution

by:
martinag earned 50 total points
ID: 1841089
Ok.

Martin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question