KnewBees Newbie Webmaster Forum  

Go Back   KnewBees Newbie Webmaster Forum > Building Sites > HTML Tips

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2010, 01:24 AM
dushmantha's Avatar
dushmantha dushmantha is offline
Baby BumbleBee
 
Join Date: Jan 2010
Posts: 3
Rep Power: 0
dushmantha 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,
__________________
san diego insurance
Reply With Quote
  #2  
Old 01-14-2010, 02:46 PM
picwhat picwhat is offline
Baby BumbleBee
 
Join Date: Jan 2010
Posts: 3
Rep Power: 0
picwhat is on a distinguished road
Default

dont use px use height:100%;
Reply With Quote
  #3  
Old 02-03-2010, 01:31 AM
ashwinth ashwinth is offline
Baby BumbleBee
 
Join Date: Feb 2010
Posts: 2
Rep Power: 0
ashwinth is on a distinguished road
Default hai

well i can see the problem. is a standart type error.
if you look here you have a > in the first line, before </iframe> you have >. <iframe id="booking" runat="server" scrolling="no" frameborder="0" width="100%"> height="500" allowTransparency="true" src="www.booking.com" ></iframe>
to make make it work the code work it should look like this <iframe id="booking" runat="server" scrolling="no" frameborder="0" width="100%" height="500" allowTransparency="true" src="www.booking.com" ></iframe>

hope it will help.
__________________
soccer games
Reply With Quote
  #4  
Old 02-04-2010, 01:29 AM
rayees rayees is offline
Baby BumbleBee
 
Join Date: Jan 2010
Posts: 28
Rep Power: 0
rayees is on a distinguished road
Default

thanks for your help this seem to be helpful.
Reply With Quote
  #5  
Old 02-04-2010, 03:34 AM
rayees rayees is offline
Baby BumbleBee
 
Join Date: Jan 2010
Posts: 28
Rep Power: 0
rayees is on a distinguished road
Default

u r using a frame box thats good, but give some good height to the box, and it will automatically adjusts to ur poll results ie give ur frame box height to 100%. or else u can try it making in ajax also. hope this helps u out.
Reply With Quote
  #6  
Old 08-10-2010, 01:02 AM
jenayork jenayork is offline
Drone
 
Join Date: Jun 2010
Posts: 32
Rep Power: 0
jenayork is on a distinguished road
Default

Instead of using pixel change it to percentage and see if its work.
__________________
Interior Designer New York
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plesk 9.0 Problem belgaila6 Hosting and Servers 2 12-19-2009 11:03 AM
SEO problem, please help Freeweb SEO and Search Engines 11 11-11-2009 02:19 AM


All times are GMT -5. The time now is 03:54 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.