开发者

CSS Code for landscape (left to right) scrollbar?

开发者 https://www.devze.com 2023-01-07 11:59 出处:网络
I want to make new blog landscape, so that entries read from left to right - I\'ve not been able to find any information b开发者_JAVA技巧y googling, is there a simple code that will take care of this?

I want to make new blog landscape, so that entries read from left to right - I've not been able to find any information b开发者_JAVA技巧y googling, is there a simple code that will take care of this? Thanks


The only technique I know of is to set a specific width on a container. Only forced widths will extend beyond the viewport width, everything else gets wrapped.

-------------
|  viewport |
| -------------------------
| |      #container       |
| -------------------------
-------------

#container {
    width: 2000px;
}

That unfortunately means you'll have to pre-calculate how wide your page needs to be, the content won't dynamically stretch the width the way it does height.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号