다음을 통해 공유


Making HTML Elements Scrollable

I’ve been styling my blog recently to make it more Win8-like (thank you for noticing!). I created some custom CSS file, but I ran into a problem with code. I use wide screens at work and at home, so I tend to break the guidelines and write more than 120 characters in a line of code. When I paste the code into my blog post, it looks fine on my screen, but it can be clipped on smaller screens, with no way to scroll right! To enable scrolling, I added the following to the CSS generated by the code plugin I use:

 pre.csharpcode {
    overflow : auto;
}