[thelist] CSS help this time...

Stephen Rider evolt_org at striderweb.com
Thu Nov 29 10:04:37 CST 2007


On Nov 27, 2007, at 10:14 AM, Dan Parry wrote:

>>>>> I've set up a div that is
>>>>> 2000px wide but clipped to 550px (there's going to be some JS  
>>>>> wizadry,
>>>>> theoretically)
>>>>>
>>>>> Problem is this introduces scrollbars into the page to reflect  
>>>>> the clipped area

>>>> Why not specify css rules of "width: 550px; overflow: hidden"

>>>
>>> This was my initial thought but ideally I want users to be able  
>>> to scroll
>>> the content left and right

>> You could use overflow: auto (or scroll to force scrollbars  
>> always) to
>> have the browser add scrollbars to the div (not the entire site)  
>> if the
>> content is wider than the 550px width that you specify.
>
> Yeah, that's what I did initially and got the response of 'Ugh!  
> Scrollbars!
> Can we get rid of them?' from the boss

Wait... so you want the user to be able to scroll, but you don't want  
scrollbars?

So, how does the user know they can scroll?

Stephen



More information about the thelist mailing list