Jakob Persson wrote: > Been looking for a piece of CSS that could help me style the <code>.</code> > blocks I'd like to use to show samples of program code. I'll want these to > show scrollbars if the content overflows (parent element width is fixed) but > I can't get it to work with whitespace: pre and overflow: scroll. > > Is there also a standards compliant way to get this kind of code boxes with > line numbers? > > I've also been experimenting with display: table to have these boxes display > nicely in at least some browsers so it would be neat if that could work with > the scrollbars too. I guess one solution could be to use actual tables but > that's poor semantics so I'd rather not. > >
Jakob, We'll really need to see a page to be able to help you. Can you please post a URL? Zoe -- Zoe M. Gillenwater Design Services Manager UNC Highway Safety Research Center http://www.hsrc.unc.edu ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
