Forgot to mention I got floated elements, why I've been using display: table for the element to adapt to the float instead of just sliding in under it like block elements do.
All ideas are welcome! Jakob -----Original Message----- From: Jakob Persson [mailto:[EMAIL PROTECTED] Sent: Friday, April 07, 2006 3:12 AM To: [email protected] Subject: [css-d] Blocks for code samples with CSS Hi, 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. Any pointers would be most welcome! Sincerely, Jakob Persson ______________________________________________________________________ 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/ ______________________________________________________________________ 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/
