473,701 Members | 2,900 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11058

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

Similar topics

8
3156
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 (because too fast would look awful, and too slow would be, well, too slow). After it reaches its destination, it wouldn't move again. I assumed there would be a javascript for this. However, I've searched all my favorite sites, but there...
2
4182
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 export spreadsheets from Excel to HTML. The resulting HTML is horrible to
17
3633
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 space for the string? please help! thanks Jack
1
2978
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 window with a textbox and a listbox below it. I don't want to use fixed coordinates and sizes, since that's what layout managers are for. I want the textbox and the listbox resize themselves automatically if I resize the window. The textbox should...
3
3241
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 content area. The header may or may not be absolute, the menu and footer are absolute, and the main content is dynamic to fill the rest of the space. The idea is to use javascript to make up where css lacks forcing things to a full height. This...
1
2416
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 (with a negative margin, thank you alp.com) for the shadow effect. That all works pretty well, but now the different list-items are layed- out so that they all have an equal space within the horizontal menu. I would like the whitespace between...
2
2416
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 be successful with the y axis but, in my horizontal list (time), I can't seem to get it to scroll successfully. Below is the link, thanks:
9
5880
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:- http://www.holleydesigns.com/pudo/demo3m.html My design goals were:
2
2432
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 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
0
8649
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9232
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8936
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7827
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6573
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4665
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2036
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.