Iframes messing up

  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

I no iframes are frowned apon on this site...instead of those any suggestions. Cause i like to use them so i dont have to reload an entire page w/ new info. Just a frame while keeping the rest the same. Less to edit to in my opinion.

well here is my prob.

usually when you type something it fits in the iframes width so you dont have to scroll sideways. But on mine, w/ these pics i have there is enough room to not scroll sideways, but i still have the scroller then. and the scroll setting is set on "auto"...weird
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Iframes aren't frowned upon, but frames are for sure.

Do you have a working example so we can see what you are saying?
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Moved to web design.
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

I'm not keen on iframes either lol, but I shall not do this to you again atno...

I'm sure someone asked nearly the exact same question like a week ago, but I cannot find the thread now.... I'll have another look in a bit for you.

//edit: found the post and it was in the programming forum lol. Anyhoo, that post was about making it scroll horizontal and you want it to not do so. Basically ignore everything I said I was getting confused

Are the images too high for the iframe? If not then you could try overflow:hidden on either the iframe or the page contained within?

Any chance of a link or some code?
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

I dont use Iframes now but i used to, can u give me and example of your page so i can check it for you?
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

http://jako.us/frame/home.htm

there is part of my site...and you can see the prob im talking about
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Nope works fine for me (Firefox 0.8 and IE6) :D
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

Have you tried scrolling DIV's?
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

Can you give me the code i would need for the DIV's.

Here is how it looks on my IE
http://www.angelfire.com/mi4/djako/iframe.jpg
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

To creat a scrolling DIV:

first start with your div area, (this code includes some styling just to make it visible edit it for you)

Quote:
<div style="border : solid 2px #ff0000; background : #000000; color : #ffffff; padding : 4px; width : 200px; height : 50px; ">
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
10<br />
</div>


That creates the area, now to scroll try this:

Quote:
<div style="border : solid 2px #ff0000; background : #000000; color : #ffffff; padding : 4px; width : 200px; height : 50px; overflow : auto; ">
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
10<br />
</div>


the only thing with this is that you have to enter your images and what have you into the div area instead of loading a seperate page. Let me know if that helps! Also it didnt show up in my post but there are breaks after each number. that is just to make the page longer. replace the numbers with whatever you need.
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Maybe its something to do with xp? I don't know why that would be but I'm using 2k - that could be the difference :?

Replace the iframe tag with a div tag, with (probably) the same attributes and css properties.

copy everything inside the body tag on the page inside the iframe, inside the div tags on the main page.

Thats about it for changing to divs lol, there might be some extra tweaks need doing as well, but that sould work.
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

If you dont like the div try this link, Its creating and iframe in CSS....

http://www.beforethedog.com/tutoriali/tut1.htm

May be helpfull!
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

thats a div.....
it's not an iframe. It's almost the exact same thing you posted (just before I did lol) up there.
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

Oh. :oops: ah well at least he got the tutorial!
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

the other thing is... when i make the scrolling like this:

Code: [ Select ]
<iframe name="sub" src="sub.htm" scrolling="yes" frameborder="0" height="125" width="230">


It works fine. But i dont want to always see the scroller. So when i put it on auto, i get the cross scrolling
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

w/ the div's is there anyway to have an external source like you can w/ iframes
  • Jako
  • Banned
  • Banned
  • Jako
  • Posts: 227

Post 3+ Months Ago

funny how this crap happens. I just deleted the external file and remade it. And now it works lol

Thanks for all your hlep
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Hey I just got you pm but I see you have sorted it all out now :) I would imagine the problem was a stylesheet entry inside the sub-page.

With div's, you can't use external files in the same way as you can with frames, but you can do it different ways by using server-side includes and server-side scripting.

The only way to actually show an external file in the same way as with frames is with frames (I believe - although recently Digital Media seems to be correcting me on a lot of stuff recently and making me look dumb :lol: so I won't say for definate....)

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: [masternek] and 78 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.