Forum Moderators: not2easy

Message Too Old, No Replies

CSS Overflow Properties

         

herrjosua

4:01 pm on Feb 18, 2009 (gmt 0)

10+ Year Member



Hello,

I have a quick question of the overflow property. Is it possible to just limit the overflow vertical? I have a div on my website that on some pages will be taller vertically, than the predefined height and I would like to only see the vertical scrollbar if at all possible.

Thanks
Josh

herrjosua

4:04 pm on Feb 18, 2009 (gmt 0)

10+ Year Member



Edit*

My doc type is:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

swa66

12:48 am on Feb 19, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



overflow-x and overflow-y control them individually just like overlfow controls both at the same time. It works in most browsers I've tried IE6, IE7, IE8, FF2, FF3, safari and opera.

But it is NOT part of CSS version 2.1, so you take a risk by using the CSS3 code already.