Webmaster Chat Forum

Discuss Webmaster Issues. Get help and help others.
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  SEOSEO  
Get Top Ranking in Google, Yahoo and Bing.
Get forum link building packages from Linkgenie.

Share | 
 

 Frame height problem

Go down 
AuthorMessage
suleka



Posts : 3
Join date : 2010-03-09

PostSubject: Frame height problem   Tue Mar 09, 2010 11:58 pm

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,
Back to top Go down
View user profile
kamaleesh



Posts : 1
Join date : 2010-04-14

PostSubject: hai   Wed Apr 14, 2010 10:36 pm

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.
Back to top Go down
View user profile
spawar



Posts : 10
Join date : 2011-06-21

PostSubject: Re: Frame height problem   Tue Jun 21, 2011 5:28 am

suleka wrote:
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
By default I set the iframe height to 400px and if the loaded page is of more height then it will show the scrollbar which is absolutely ok. No Issues..

Thanks in advance,
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Frame height problem   

Back to top Go down
 
Frame height problem
Back to top 
Page 1 of 1
 Similar topics
-
» Switching between nested iframes within a frame
» unable to find dynamic frame ids
» How do we run 10 cases out of 100 in TestNG frame work
» unable to switch to frame
» switchTo().frame(frameElement);

Permissions in this forum:You cannot reply to topics in this forum
Webmaster Chat Forum  :: Webmaster Forum :: Web Design-
Jump to: