Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How Do I Remove The Iframes Scrollbars?
Bluebear
post Jan 6 2008, 07:54 PM
Post #1


Super Member
*********

Group: [HOSTED]
Posts: 395
Joined: 30-December 07
From: Norway
Member No.: 55,479



Hello. My Iframes are not working properly at the moment. I have some problems with removing the scrollbars. I also need them to automatically extend, without that I need to change the height and width. I have tried with 100% and auto, but there must be something I am doing wrong. (I do not know much HTML, really.)

I will explain a bit more.
On my front page, I have an Iframe linked to my blog, and other things. And as I have said, I need to remove the scrollbars and so on...

Here is the code I am using. (Of course "URL1" is replaced with my url.)
CODE
<iframe name="Iframe" src="URL1" FRAMEBORDER="0" style="width:100%; border:0; background-color:000000; height:100%; overflow:auto;"></iframe>


...and I need to remove the "background-color:000000;"
Go to the top of the page
 
+Quote Post
jlhaslip
post Jan 6 2008, 08:05 PM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,880
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Might help if we were to see the complete page coding.
Setting the height 100% will make the Iframe 100 % of the height of the container which holds it. If the container is sized, so will the Iframe be sized accordingly.
Go to the top of the page
 
+Quote Post
Saint_Michael
post Jan 6 2008, 08:10 PM
Post #3


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,305
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



Just add this to your iframe code

CODE
scrolling="no"


so it will look like this

CODE
<iframe name="Iframe" src="URL1" scrolling="no" FRAMEBORDER="0" style="width:100%; border:0; background-color:000000; height:100%; overflow:auto;"></iframe>


or set it to auto and that way if some resizes their browser or have a smaller resolution the scrollbar will show up. Of course hte other way to make the scrollbar disappear is make the iframe large enough to fit the content.

As for removing the background color just erase it and so it will look like this

CODE
<iframe name="Iframe" src="URL1" scrolling="no" FRAMEBORDER="0" style="width:100%; border:0;  height:100%; overflow:auto;"></iframe>


This post has been edited by Saint_Michael: Jan 6 2008, 08:11 PM
Go to the top of the page
 
+Quote Post
Bluebear
post Jan 6 2008, 08:53 PM
Post #4


Super Member
*********

Group: [HOSTED]
Posts: 395
Joined: 30-December 07
From: Norway
Member No.: 55,479



It did not work. Maybe it will help if you take a look at my website. (I know, it looks horrible. It is just temporary.)
Enter my site, FrizzySheep
Go to the top of the page
 
+Quote Post
Saint_Michael
post Jan 6 2008, 10:09 PM
Post #5


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,305
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



Well I messed with the coding and this is what I came up with, now sine your using cutenews you need to adjust the style sheet to fit this, as thats where the problem is atis with the cutenews style sheets.

CODE
<!-- Content of the page -->
<div style="position: absolute; width: 380px; left: 275px; top: 340px;">
<iframe name="Iframe" src="FrizzySheep%20_%20FrizzySheep_files/blog.htm" style="width: 375px; height: 525px;" frameborder="0"></iframe>
</div></body></html>


So replace that iframe with this and in your cutenews style sheet so the width of the posts that your make is about 365-370 in width and that should get rid of the horizontal bar that is left. Of course if you want to keep the height the same just adjust the style sheet in cute news to fit that as well.
Go to the top of the page
 
+Quote Post
galexcd
post Jan 10 2008, 03:59 AM
Post #6


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
*********

Group: [HOSTED]
Posts: 975
Joined: 25-September 05
From: The dungeon deep below the foundation of trap17
Member No.: 12,251



your overflow attribute is canceling out the scrolling no attribute. Set your overflow to hidden not auto. Something like this:
CODE
<iframe name="Iframe" src="URL1" FRAMEBORDER="0" style="width:100%; border:0; background-color:000000; height:100%; overflow:hidden;"></iframe>

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. A Question About Html Iframes(7)
  2. <ul> Remove The Bullets(5)
  3. A Question About Iframes(7)
  4. Iframes Coder Needed(4)


 



- Lo-Fi Version Time is now: 25th July 2008 - 10:17 AM