473,395 Members | 1,639 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,395 software developers and data experts.

resizing table/iframe

I have an iframe embedded in a single cell table. I'd like to resize the
table and iframe to match any changes made to window size. Is this possible?
--
"It's easy enough to be pleasant, when life hums along like a song.
But the man worth while is the man who can smile when
everything goes dead wrong.".
Jul 23 '05 #1
3 4859
In article <FE*******************@twister.socal.rr.com>,
wr*******@yahoo.com enlightened us with...
I have an iframe embedded in a single cell table. I'd like to resize the
table and iframe to match any changes made to window size. Is this possible?


Why don't you just use percents instead of pixels in the first place?
It'll resize automagically.

--
--
~kaeli~
With her marriage, she got a new name and a dress.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <FE*******************@twister.socal.rr.com>,
wr*******@yahoo.com enlightened us with...
I have an iframe embedded in a single cell table. I'd like to resize the
table and iframe to match any changes made to window size. Is this possible?


Why don't you just use percents instead of pixels in the first place?
It'll resize automagically.


Thanks for your reply.

The problem with that is the percentages will change as the window is
resized..

Here's what I want

+-----------------------------------+
| fixed size menu |
+-----------------------------------+
| variable size iframe |
| resizes with window |
+-----------------------------------+
| fixed size footer |
| copyright notices, etc. |
+-----------------------------------+

Can this be done without code?

Jul 23 '05 #3
In article <k7*******************@twister.socal.rr.com>,
wr*******@yahoo.com enlightened us with...

The problem with that is the percentages will change as the window is
resized..
That's usually a solution, not a problem. ;)
Fixed-sized things can be problematic for internet apps.

Here's what I want

+-----------------------------------+
| fixed size menu |
+-----------------------------------+
| variable size iframe |
| resizes with window |
+-----------------------------------+
| fixed size footer |
| copyright notices, etc. |
+-----------------------------------+

Can this be done without code?


Sure, just use percents for the iframe and not the divs.

....But it's going to look really, really awful for a lot of people if
this is an internet site. Most people use 800 by 600 resolution and a
lot of web designers use font that is too small, so a lot of users end
up smacking up their fonts to large or even extra-large. What might that
do to your fixed layout? Depends how you coded it, of course, but it
often breaks.
If a user has a huge window, your header and footer looks stupid with
the huge iframe. If the user has a really small window, they are stuck
scrolling.

Got URL or example HTML?

It does matter if this is for the internet. If it is, you should really
be using percents for everything, especially font-sizes, so the
visually-impaired can still read your stuff, and valid html/CSS so
special browsers can interpret it properly. If it's a personal site or
for an intranet, these issues are less of a, well, issue. *g*

In short, if you use absolute font sizes, some browsers can't increase
the size without a whole special stylesheet for the user. That's a Bad
Thing. And one a lot of people don't seem to know.
OTOH, if you use percents for fonts inside absolutely sized / positioned
divs, increasing the font size makes it run outside the div. Also a Bad
Thing.

--
--
~kaeli~
Hey, if you got it flaunt it! If you don't stare at someone
who does. Just don't lick the TV screen, it leaves streaks.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #4

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

Similar topics

5
by: Ben | last post by:
Hi, I'm having trouble with the CSS apparently not working fully on the form input fields when inside an iFRAME. The problem is that if I resize the text size on the test.html page(see below)...
4
by: khothikhe | last post by:
can some one help me here coz this is really killing me! the problem is, i have this javascript code in my aspx page that i want it to work on almost all browsers, especially opera and safari : ...
1
by: khothikhe | last post by:
Can someone help me here because this is really killing me! the problem is, i have this javascript code in my aspx page that i want it to work on almost all browsers, especially opera and safari...
5
by: Paul Fi | last post by:
Can someone help me here because this is really killing me! the problem is, i have this javascript code in my aspx page that i want it to work on almost all browsers, especially opera and safari...
1
by: Paul Fi | last post by:
I have this problem with iframes: i want to resize iframe's height when the window inside the frame is resized or when the src attribute of iframe changes so make the height of iframe equal to...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
13
by: bgraphics2031 | last post by:
I'm trying to get this iframe to dynamically resize by dragging a vertical bar, but it's not working in Mozilla (It originally worked in IE but I've been trying to port it over). Any help will be...
1
helpmepls
by: helpmepls | last post by:
i have a site where I have an iframe mainFrame which loads page content from the main menu (top horizontal menu). within this mainFrame is a second menu to left specific to the loaded page, and...
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: 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: 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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
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...

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.