473,406 Members | 2,369 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,406 software developers and data experts.

Making div element fill remaining horizontal space?

Hello.

How can I make an absolutely-positions div element expand and fill the
remaining horizontal space available on-screen?

The background is that I've used CSS to create the normal 'three frames'
look using div elements rather than frames. One of these DIV elements needs
to contain an iframe, and that iframe must expand to use all space available
to it. I had been using "width=100%" in the iframe and this works fine in
Gecko and IE, but not in KHTML-based browsers (I'm specifically interested
in getting it working with Safari 1.0). With KHTML, the iframe doesn't show
at all and I've managed to isolate this to usingthe width tag in the iframe.
Take that away and things show, but not with the required width.

The URL for my problem is here:
http://www.eruvia.org/sarah/media/ph...ours/index.php
(or http://makeashorterlink.com/?J5F112915 to avoid linewrap)

The style for .IMAGEGALLERY, which is the style in use, is:

..IMAGE_GALLERY { background-color: #FFFFFF;
color: #000000;
font-family: Helvetica, Arial, sans-serif;
font-size: 12pt;
position: absolute;
top: 10%;
left: 151px;
height: 80%;
}
Adding a "width: 500px" to the above fixes the problem, but I'm looking to
use percentages rather than aribtrarily fixing a width. Adding something
like "width:80%' also masks the issue (and this is what I've temporarily
done), but expand the window far enough and you can still see it isn't
taking up the full width. Adding "width:100%" causes the whole thing to go
mad....
Thanks in advance for any information,
Ian
Jul 20 '05 #1
0 11043

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

Similar topics

8
by: Bob Bonn | last post by:
Upon loading a page, I'd like a narrow image to rise up from the bottom of the screen, along the left-hand side, and then stop at a given point. I'd like to be able to choose the rate of ascent...
2
by: Marian Aldenhövel | last post by:
Hi, Short question: Is it possible to write a CSS-Style that formats <INPUT TYPE=TEXT>-Elements in Table-Cells in a way that they use all the horizontal space available? Long question: I...
17
by: JC | last post by:
sorry . i got one more problem i got a string with 4 char. i want to put that in a string with 26 char. how can i fill space on the remain char.. ?? is that i need to do a while loop do fill the...
1
by: spamfilteraccount | last post by:
Hi, I want to make a really simple form with C# and windows forms, which is trivial with Java, but I'm unable to reproduce it with .NET. I can't believe it's impossible. I want a simple...
3
by: Arielle | last post by:
Problem: Using an XHTML doctype for all our pages, this is not optional. The layout the client wants to use requires the site to be "full screen" with a header, footer, horizontal menu, and main...
1
by: jorislindhout | last post by:
Dear Reader, I'm trying to make a text-based menu which has a drop-shadow effect. I've accomplished this through a list for which the items consist of two p's: one for the normal text, and one...
2
by: pbd22 | last post by:
Hi. I am trying to make a horizontal list that counts (downward) and a horizontal list that illustrates the time. Both list should be formatted the same (except for the nomenclature). I seem to...
9
by: Marky1124 | last post by:
Hi, I am hoping that someone can offer me some advise. I am new to CSS layouts and I've struggled to produce the screen layout that I wanted. Here's my demonstration page:- ...
2
by: salmobytes | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.