Forum Statistics

  • Forum Members: 4,245
  • Total Threads: 3,572
  • Total Posts: 3
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 04-08-2009, 03:27 AM   #1 (permalink)
 
nishu12's Avatar
 
Status: Newbie
Join Date: Apr 2009
Posts: 3

Rep Power: 12 nishu12 is on a distinguished road



Default Frame height problem

Hey all,

I've got a frame on my site, which is a simple box, made for a poll. Once the user has voted, it loads a new page with the results in the frame. A lot of people told me I shouldn't use frames because they're bad, but atm I don't care, it's good like that, and I want to use it !

The only problem is the height. I can set the height so it's not too small or too big, but the problem is that the height is not relative. That means if I remove "height: xxxpx;" from the CSS stylesheet, it automatically sets the frame at 50 px or so but that's too small, so the scrollbars appear and you have to scroll in the frame. And that's weird. Any idea how I could change that ? Do you see what I mean ? Cause I will change the question of the poll quite often and then I would have to change the height in the stylesheet everytime, that's crap


Thanks in advance,
nishu12 is offline Add Infraction for nishu12   Reply With Quote
Old 04-08-2009, 06:39 AM   #2 (permalink)
 
Status: Newbie
Join Date: Apr 2009
Posts: 2

Rep Power: 12 jessicasamuel is on a distinguished road



Default

Hi,

Using Frames on websites are always unacceptable one, you can try to use div for your websites.. : )
__________________
Website Design Services
jessicasamuel is offline Add Infraction for jessicasamuel   Reply With Quote
Old 04-14-2009, 11:40 PM   #3 (permalink)
 
neluni's Avatar
 
Status: Newbie
Join Date: Apr 2009
Posts: 3

Rep Power: 12 neluni is on a distinguished road



Default hai

That limitation is one reason why frames (and iframes) are bad and you should never use them

There are others, as well...

However, if you're set on this, there are JavaScript-based ways of checking how big the content of an iFrame is, and then resizing it to fit. Google is the best place to go, but here's a starter for ten:
DevPapers - article Auto Fit IFrame to Content.
__________________
bf7240
neluni is offline Add Infraction for neluni   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may 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 On


Search Engine Optimization by vBSEO 3.5.0 RC2