iframe setings

  • Ury
  • Born
  • Born
  • User avatar
  • Posts: 1
  • Loc: Ljubljana - SI

Post 3+ Months Ago

Hello all! Maybe you find this question stupid, but that how it is! Imagine: I have a page with iframe, width="600" and scrolling="auto"! On my src page is just a table (width 300px height 800px), and when I look a preview in IE 6.0 I get both sctollbars!? In NT 7.1 it works great! I woild just like to move page up and down, because the src page width is not grater that iframe so I just need that scrollbar. I work in Dreamweaver MX 2004. If there is someone with some useful help ... thanks!!!!

Ury
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Frostbyt3
  • Graduate
  • Graduate
  • User avatar
  • Posts: 221
  • Loc: Corpus Christi, TX

Post 3+ Months Ago

Well since it's set to auto, it thinks if the page is big enough itll make its own scrollbars, hence Auto.

Check to see if the page is big enough for it to create scrollbars with.

I normally dont mess with the scrollbars unless it's in CSS.

On http://www.unhappyteens.com (my site)
I have the iframe to the left of the navigation links.
the html i used for that was just
Code: [ Select ]
<Iframe height="311" width="433" name="content" src="news/news.php" frameborder="0"></Iframe>


Try adding some CSS to the page so that the scrollbars dont show up as much, just the arrows and the boxes on it with colors just a little bit darker than the background that they're on.

Code: [ Select ]
<style type="text/css">
body,TABLE,TD {
    scrollbar-face-color: #e4e3e8;
    scrollbar-shadow-color: #e4e3e8;
    scrollbar-highlight-color: #e4e3e8;
    scrollbar-3dlight-color: #e4e3e8;
    scrollbar-darkshadow-color: #e4e3e8;
    scrollbar-track-color: #e4e3e8;
    scrollbar-arrow-color: #999999;
    }
</style>
  1. <style type="text/css">
  2. body,TABLE,TD {
  3.     scrollbar-face-color: #e4e3e8;
  4.     scrollbar-shadow-color: #e4e3e8;
  5.     scrollbar-highlight-color: #e4e3e8;
  6.     scrollbar-3dlight-color: #e4e3e8;
  7.     scrollbar-darkshadow-color: #e4e3e8;
  8.     scrollbar-track-color: #e4e3e8;
  9.     scrollbar-arrow-color: #999999;
  10.     }
  11. </style>


^^ Put that between <head></head> tags. That's the exact CSS from my site. Colors of the scrollbars are ment to match the background color, except for the arrows which are darkend.

Try that.
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

As FrostByte says, you should not need to set the scrollbars, the vertical one should just come automagically.

However the CSS scrollbar properties are microsoft-only, and as such invalid and will not work on mozilla / opera (anything but internet explorer basically). As long as you are happy with this then fine, just thought I would let you know :wink:

Also you would do well to lose the iframe. Frames are evil :twisted:
  • Frostbyt3
  • Graduate
  • Graduate
  • User avatar
  • Posts: 221
  • Loc: Corpus Christi, TX

Post 3+ Months Ago

but i like them. :)

I just use an iframe to load content so I dont have to make 6 pages with the same thing but different content.

That way if I have to add a link to the navigation, I can always just change 1 thing, not 6. :)

but theres always the idea that I could use SSIncludes but it'd be a pain. :/
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Then you also are evil :wink: But seriously server-side is the way to go, for all manner of reasons.

a pain?
PHP Code: [ Select ]
 
<?php
 
include layout.php;
 
MakeHeader();
 
?>
 
Write stuff here
 
<?php
 
MakeFooter();
 
?>
 
 
  1.  
  2. <?php
  3.  
  4. include layout.php;
  5.  
  6. MakeHeader();
  7.  
  8. ?>
  9.  
  10. Write stuff here
  11.  
  12. <?php
  13.  
  14. MakeFooter();
  15.  
  16. ?>
  17.  
  18.  

is that so difficult??

Bear in mind that frames, and also the target attribute of the &lt;a> tag are gone in xhtml strict, and I imagine will slowly be dropped altogether at some point.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 61 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.