Register  |  Login



Earn money by sharing your knowledge

Quomon shares its advertising revenue with contributing experts that answer questions effectively. Join our community to share your knowledge and earn an income as you go.

Question

Status: Closed Points: 125 Time: 10:12 - Oct 05, 2006  

john2

How do I get a cell to fill the remainder of a width percentage in HTML tables?

I want to create a table in html with two cells. The first cell needs to be 430 pixels in width, but then I need the next cell to fill the rest of the screen and scale to 100% of whatever is left. How is this accomplished?

Answer Discussion
Tutorials

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

jgivoni

Date:: Oct 05, 2006

Time:: 14:18

Hi John, this would be my solution:

Create a table with width 100%.
Within that table create two cells, the first with width 430px and the other without specification of width.
This works for me in IE 6 and FF 1.5

<table style="width: 100%">
 <tr>
  <td style="width: 430px">
   1
  </td>
  <td>
   2
  </td>
 </tr>
</table>

Jakob

john2

Date:: Oct 05, 2006

Time:: 14:30

Works like a charm. Thanks Jakob.

Question Answered

This question has been closed, and points have been rewarded to the following experts:

jgivoni: 125

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top HTML Experts

View More

Rank

Expert

Points

1.

rcastagna

1022

2.

jgivoni

928

3.

nidhi

875

4.

xarcus

240

5.

john2

220

6.

danmacryan

125

7.

Anpanman

75

8.

multani.sarbjit

75

9.

PeterNZ

75

10.

roger.berbel

75

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es