Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > resizing table/iframe

Reply
Thread Tools

resizing table/iframe

 
 
Bootstrap bill
Guest
Posts: n/a
 
      06-23-2004
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.".


 
Reply With Quote
 
 
 
 
kaeli
Guest
Posts: n/a
 
      06-23-2004
In article <FEjCc.61901$>,
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

 
Reply With Quote
 
 
 
 
Bootstrap bill
Guest
Posts: n/a
 
      06-23-2004

"kaeli" <> wrote in message
news:...
> In article <FEjCc.61901$>,
> 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?





 
Reply With Quote
 
kaeli
Guest
Posts: n/a
 
      06-23-2004
In article <k7kCc.61907$>,
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing a div by resizing its borders Pil (Trustworthy from Experience) Javascript 9 04-21-2009 07:35 AM
Resizing a div by resizing its borders Proper Javascript 0 04-18-2009 08:02 PM
Resizing for Firefox. Gary Walker Firefox 0 01-05-2005 07:42 PM
Browser resizing prevention? 'Captain' Kirk DeHaan Firefox 3 12-18-2004 10:01 PM
Resizing prefs window in Mozilla David Rodgers Firefox 3 08-26-2004 05:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57