PDA

View Full Version : Probably something incredibly simple...



Eclyps19
10-06-2006, 11:40 PM
but I need help with it.

I know the site looks like crap, and it may not be the best way to present something, but i'm just trying to figure some stuff out.

Put your mouse over the first button.

Text is loaded into a div, but i need the div to scroll vertically instead of making everything wider. When I try using style="overflow:scroll; it adds the scrollbars before it overflows, so I'm using style="overflow:auto;.

What am I doing wrong?

http://merc.myspoonistoobig.net/Eclyps/Temp/TV1.html

Twey
10-06-2006, 11:45 PM
Huh? What's wrong with it?

Eclyps19
10-07-2006, 12:01 AM
... it doesn't mess up for you? When I do it, all the images spread out to fit the height of the div... let me add a few more <br>'s

Twey
10-07-2006, 10:45 AM
Aha, now I see it. The obvious solution is to use overflow: auto.

Eclyps19
10-07-2006, 10:53 AM
but I AM using that.


<div id="screen" width="348" height="277" style="overflow:auto;"><img src="images/TV1_03.gif" width="348" height="277" alt=""></div>

Twey
10-07-2006, 11:21 AM
Try:
<div id="screen" style="width:348px;height:277px;overflow:auto;"><img src="images/TV1_03.gif" style="width:100%;height:100%;" alt=""></div>

Eclyps19
10-07-2006, 11:55 AM
ugh god... i was close. thanks twey

Twey
10-07-2006, 12:12 PM
CSS and presentational HTML don't mix.

Eclyps19
10-07-2006, 12:19 PM
apparently. so if i'm using any css between 1 set of <> i'm going to want to use all css?

Twey
10-07-2006, 12:31 PM
You should use all CSS anyway. About the only presentational HTML attributes that are still necessary are cellspacing and cellpadding.