开发者

CSS Code for landscape (left to right) scrollbar?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜