Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 03-07-2006, 07:43 AM Iframe help please!
Novice Talker

Posts: 14
Location: Doncaster, UK
Trades: 0
I'm using iframes for my new website, and everything goes ok until a make a page's height bigger. Then I get a scrollbar for both the height and the width and it doesn't look right.

Why is there a scrollbar now? I haven't altered the width?

My website is http://www.madcatcreative.co.uk

Merci
DazzaMc is offline
Reply With Quote
View Public Profile Visit DazzaMc's homepage!
 
 
Register now for full access!
Old 03-07-2006, 03:57 PM Re: Iframe help please!
Novice Talker

Posts: 10
Trades: 0
Try set scrolling="no" inside the <iframe> tag to disable the scrollbar completely, or set scrolling="auto" in order to display the scrollbars only when needed.
__________________

Please login or register to view this content. Registration is FREE

Premium hosting services for the Magento eCommerce platform.
Professional Magento Installation included with every plan.
Sindre is offline
Reply With Quote
View Public Profile Visit Sindre's homepage!
 
Old 03-08-2006, 04:32 AM Re: Iframe help please!
Novice Talker

Posts: 14
Location: Doncaster, UK
Trades: 0
Thank you!
DazzaMc is offline
Reply With Quote
View Public Profile Visit DazzaMc's homepage!
 
Old 03-08-2006, 10:48 AM Re: Iframe help please!
Novice Talker

Posts: 14
Location: Doncaster, UK
Trades: 0
I'm still having the same problem...
Set the scrolling to "no," that works fine but cuts off half the page. I want a scrolling bar for the height not the width...

When I type "auto" I have the same problem.
DazzaMc is offline
Reply With Quote
View Public Profile Visit DazzaMc's homepage!
 
Old 03-08-2006, 05:02 PM Re: Iframe help please!
AMysticWeb's Avatar
Experienced Talker

Posts: 38
Trades: 0
Won't swear to it, but I think it might have something to do with either the image border or the image page margin. The iFrame and home.jpg are the same width (734px).

If you change the width of the iFrame to 745, 750 etc, then the hozizontal scroll should disappear. Not sure if that width will accomodate all links, but it should work for home.html
__________________
Stop by for FrontPage form tutorials
and form script examples. Mike

Please login or register to view this content. Registration is FREE
AMysticWeb is offline
Reply With Quote
View Public Profile
 
Old 03-09-2006, 02:06 AM Re: Iframe help please!
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I think Mystic is right. Another option might be to decrease the width of the page loading into the iframe. You could easily decrease the width of the solid block of color on the left of the iframe pages and not lose any of the design.

Keep in mind though that it's not necessarily the best idea to use iframes. Search engines have a hard time crawling them and they make a mess when someone wants to bookmark a page of your site. I'm guessing you're using the iframes so you don't have to recode the parts outside of the iframe on each page. That is a good idea. The better way to implement that idea though is to use a scripting language like php or asp.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 03-09-2006, 04:26 AM Re: Iframe help please!
Novice Talker

Posts: 8
Trades: 0
the reason is if you make the page taller, than a scrollbar on the right appears so that they can scroll up and down

the problem is, the extra scrollbar makes the page a little skinnier, so a scrollbar at the bottom has to be added.

you can either make the page skinnier and keep the scrollbar there at all times, or use css to ensure a horizontal scrollbar never appears, but a tiny bit will be cut off once the vertical scrollbar appears.

always veritcal:
style="overflow-x: hidden; overflow-y: scroll;"

on and off:
style="overflow-x: hidden; overflow-y: auto;"

Last edited by Conquester777; 03-09-2006 at 04:29 AM..
Conquester777 is offline
Reply With Quote
View Public Profile
 
Old 03-09-2006, 06:16 PM Re: Iframe help please!
Novice Talker

Posts: 14
Location: Doncaster, UK
Trades: 0
Hi, I'm not familiar with php, asp or css :s

The web design part of my design course was a bit shoddy so we didn't get as far as that..
DazzaMc is offline
Reply With Quote
View Public Profile Visit DazzaMc's homepage!
 
Old 03-09-2006, 06:29 PM Re: Iframe help please!
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
You can add the code Conquester recommended above pretty easily. It would go right on the iframe tag and would look like:

HTML Code:
<iframe style="overflow-x: hidden; overflow-y: auto;" src="home.html" width="734" height="383" name="frame" frameborder="0">
If you always want to see the verticl scrollbar then you can use auto instead of scroll as suggested.

The code is css and will work just as Conquester typed it.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Iframe help please!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42543 seconds with 12 queries