473,384 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,384 software developers and data experts.

a div that fills like Java's gridbagconstraints.fill

In Java, using the gridbaglayout manager and its complementary
gridbagconstraints
you can tell a cell to horizontally fill 'any remaining space.'
But I can't seem to do that with divs. There must be a way.

THE PROBLEM
This would be a two-column left-floated layout.
I want a left div to contain a variable number of vertical thumbnail-
navigation columns--so its
width would not determined until runtime (these links come from
code). The right-side column
should fill any remaining horizontal space, inside a #wrapper div.

There must be a way to do that. But I can't figure it out.
http://wage.cns.montana.edu/fill.html

Dec 5 '07 #1
2 2418
On Wed, 05 Dec 2007 14:50:49 +0100, salmobytes
<Sa***************@gmail.comwrote:
In Java, using the gridbaglayout manager and its complementary
gridbagconstraints
you can tell a cell to horizontally fill 'any remaining space.'
But I can't seem to do that with divs. There must be a way.

THE PROBLEM
This would be a two-column left-floated layout.
I want a left div to contain a variable number of vertical thumbnail-
navigation columns--so its
width would not determined until runtime (these links come from
code). The right-side column
should fill any remaining horizontal space, inside a #wrapper div.
Why not let that 'right' div be an unfloated block level element? The fact
that stretches out underneath the left content doesn't seem to matter in
your design (at least not in this example).
--
Rik Wasmus
Dec 5 '07 #2
On Dec 5, 6:57 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Wed, 05 Dec 2007 14:50:49 +0100, salmobytes

<Sandy.Pittendr...@gmail.comwrote:
In Java, using the gridbaglayout manager and its complementary
gridbagconstraints
you can tell a cell to horizontally fill 'any remaining space.'
But I can't seem to do that with divs. There must be a way.
THE PROBLEM
This would be a two-column left-floated layout.
I want a left div to contain a variable number of vertical thumbnail-
navigation columns--so its
width would not determined until runtime (these links come from
code). The right-side column
should fill any remaining horizontal space, inside a #wrapper div.

Why not let that 'right' div be an unfloated block level element? The fact
that stretches out underneath the left content doesn't seem to matter in
your design (at least not in this example).
--
Rik Wasmus
I'll be damned. That worked:
http://wage.cns.montana.edu/fill2.html

I thought the right div would pop down below the left-floated column,
if I didn't float it too. But obviously it doesn't. I'll have to
stop being
so lazy and read the spec. Today.
Dec 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
0
by: Martin | last post by:
Hi All, I am a relative newbie to Java / Applets, but am despirately after some help ! I have got the following code, which is basically a listing with button items along the sides, allowing...
7
by: Joe | last post by:
I have a label control that will be filled with text at runtime. The length of the text will vary, but the label must stay the same size. Is there a way to set the font size of the text such that...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: Unebrion | last post by:
Alright im working on a program that prints out user imput in a frame, along with a barcode.. it is like the front of an envelope. Here is the description for the program. This...
7
by: Zytan | last post by:
I just wanted a little practice with the WebBrowser control, so I did the VB guided tour example here in C#: http://msdn2.microsoft.com/en-us/library/a08t4ke7(VS.80).aspx The tutorial asks to put...
5
by: ukfusion | last post by:
I have a div which i have 100% height applied to.....as i do with my body/html tags. The problem is my div only fills 100% of the visible window, it doesnt fill the scoll beneath. my layout is...
0
by: malsh1358 | last post by:
I created Jaxb java classes and now I want to fill them dynamically , but I dont know how I can dynamically fill JAXB java objects (I can do it in fix way) ,I must say that their data are in xml file...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.