Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

83 users online



iFrame Overflow

iFrame Overflow

Currently viewing this thread: 1 (0 members and 1 guests)


digitalerr0r

digitalerr0r

Neverside Newbie
Status: Offline!

iFrame Overflow

Hey,

I have a horizontal iframe on my page, and its going to contain a list of images. how can i make the images carry on as far as they want horizontally instead of dropping onto the next row?

michael

michael

hai2u
Status: Offline!

Hmm... I often hear people say that they are really against iFrames and that they prefer the <div overflow="auto"> tag better. In this case though, I think you should go into your <head> and put in something like this...

Code:


<style type="text/css">
img
{
display:inline;
}
</style>

That should theoretically work.

___________________

http://img131.echo.cx/img131/7773/wtfwheelchairsig14qa.png
halo2 <3

Last edited by michael, March 10th, 2005 10:41 PM (Edited 1 times)

Toast

Toast

Neverside Newbie
Status: Offline!

No, that shouldn't work. Images are displayed inline by default, so that wouldn't change a thing. If you are using an <iframe>, you need to set a defined width to the body ie. 300% to get it to scroll horizontally.

michael

michael

hai2u
Status: Offline!

Oops, I'm sorry. Maybe make a <span> or <div> enclosing those images that is set to display:inline;

___________________

http://img131.echo.cx/img131/7773/wtfwheelchairsig14qa.png
halo2 <3

Gil

Gil

Semantics Whore
Status: Offline!

No, polishkid, all wrong, inline is the default....

What you want is to set the height of the element containing the images, that way they should automatically extend. Setting the width to something like 300% works too indeed

riah

riah

now with more lambda
Status: Offline!

Some css within the iframe page to prevent wrapping:

Code:


<style type="text/css">
body{
whitespace: nowrap;
}
</style>


This is probably what you are looking for.

___________________

http://codetch.com/skin/sig.png

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0074 seconds.