开发者

Rowspan like structure in HTML

开发者 https://www.devze.com 2023-04-06 08:13 出处:网络
Is there a way to imitate table rowspan behavior with divs (not with a table)? Something like this: +---+--开发者_运维百科--+

Is there a way to imitate table rowspan behavior with divs (not with a table)?

Something like this:

+---+--开发者_运维百科--+
|   |  B |
| A +----+
|   |  C |
+---+----+

Thanks, Daniel


It depends on your div structure. For example you can something like that: http://jsfiddle.net/avall/5ky5b/

Using floated divs and smart use of background can make this effect.


using css rules display:inline-block may help you too

.cell{
    zoom:1;
    vertical-align:top;
    display:-moz-inline-box;
    -moz-box-orient: vertical;
    display:inline-block;
    *display:inline;
}

then specifying width and height you should be able to do what you want. This is not the best or worst solution just another way to go

0

精彩评论

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