Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Rein in overly long|wide code segments via CSS

by grinder (Bishop)
on Apr 02, 2008 at 10:23 UTC ( #677930=note: print w/replies, xml ) Need Help??

in reply to Rein in overly long|wide code segments via CSS

I do not like the scrolling or empty area thus produced myself

Why do you force the width and height then? I just do

.code { overflow: auto; }

and this seems to do the right thing by me.

• another intruder with the mooring in the heart of the Perl

Replies are listed 'Best First'.
Re^2: Rein in overly long|wide code segments via CSS
by parv (Priest) on Apr 02, 2008 at 10:34 UTC

    I see that "overflow" alone takes care of the width just fine; thanks grinder. I would still need to take care of overly long code segments myself.

    Only if I could specify a maximum height after which "height:" attribute would take effect (without JavaScript)!

      The max-height attribute does exactly that. It works fine for me in my somewhat-recent Firefox.


        blokhead, that was very helpful. I have updated CSS accordingly.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://677930]
[Discipulus]: good morning community!
[Corion]: Good morning Discipulus!

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-06-19 07:12 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.