File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to specify a variable width column in an HTML page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to specify a variable width column in an HTML page?" Watch "How to specify a variable width column in an HTML page?" New topic
Author

How to specify a variable width column in an HTML page?

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
In using a 2-column layout, how do I specify/style a variable width for the main (right-side) content column?

I also need a fixed length for the left div.

Thanks in advance

Mike
Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
What exactly did you mean by a variable width of the column?
If you are trying to configure the same column with different widths under two separate conditions, then you can have two separate css styles and use the conditional style setting for the table element's style in the HTML.


Tina
SCJP 1.4, SCWCD 1.4
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 815
I'm assuming by variable you mean it resizes as the window resizes? Going to take a shot and say have a container with width set to percentage and have the left div inside set to an absolute value (leaving the right to adjust dynamically). Is that similar to what you're looking for?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to specify a variable width column in an HTML page?
 
Similar Threads
Horizontal Scroll Bar
Want to eliminate JTable Clipped Last Row
resize columns at jtable
how to set multpile style classes for headerClass attribute in datatable???
how to get fixed col width in Firefox