June 18, 200620 yr Hi guys,I'm building up my website which was to be simple it would have been HTML 1.0 compliant. However, I wanted the user to be able to hide/unhide some contents (fold/unfold in fact), and I started using javascript (1).Then I wanted to color some lines and I started using CSS and now I love CSS.Now, I am doing a codebox, and I would like (or need) that one to be scrollable just like on forums. However, I have no idea on what I should use. I tried to display the source of a webpage with such a thing and then to download the css, but I have not been able to find what was needed. Does anyone know what I should use ?Thanks a lot.
June 20, 200620 yr You could try:<html><head></head><body><div style="width: 200px; height: 200px; oveflow: auto;">Dont forget to set width and height!</div></body></html> Edited June 20, 200620 yr by MMx
June 20, 200620 yr Author Wow, you joined two years ago and you first post to help.Thanks a lot.And your code worked. I've set in my css stylesheet and it's perfect.Also, I found that it was not possible to use too small values for width and heigth (not under 200px), at least in IE6. But it is also possible to use "width:auto;". And now I wonder why is this code absent from MSFN's CSS. I mean, it was useful and as far as I'm concerned, I never has any problem. :?
Create an account or sign in to comment