quick html help

dowxp

Diamond Member
Dec 25, 2000
4,568
0
76
I've forgotten if this was possible or not:

two column table, left col is 160px and i'd like the right col to take the rest of the available space. how to do so?
 

DanJ

Diamond Member
Oct 15, 1999
3,509
0
0
Just make the table width 100% and specify the first column as 160px. The next column should fill in the rest.
 

Jay59express

Senior member
Jun 7, 2000
481
0
0
if you don't specify the width of the second column it will fill the rest of the page (assuming you set the width of the table to 100%)
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
do not mix pixels and percentages... very not good practice.
 

Kelemvor

Lifer
May 23, 2002
16,928
8
81
You can mix them if they are on different things.

<table width=100%" border=1>
<tr>
<td width=160>column1</td><td>column2</td>
</tr></table>

You just shoudln't have one column be set in pixels and the next column be set in percentages. That just gets all wacky when people have different sized resolutions and screens and such.
 

RagingBITCH

Lifer
Sep 27, 2003
17,618
2
76
Originally posted by: MrScott81
Originally posted by: rh71
do not mix pixels and percentages... very not good practice.

why?

A) Consistency purposes
B) If you change one value one place, you're going to have to (probably) change the other values as well. Keeping it either one or the other helps in these cases.
 

MrScott81

Golden Member
Aug 31, 2001
1,891
0
76
yes i agree for the most part, but there are plenty of times when it is perfectly acceptable and mandatory to use percentages on a table, and absolute values on a td.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |