Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Can';不要把桌子放在柱子的顶端_Html_Css - Fatal编程技术网

Html Can';不要把桌子放在柱子的顶端

Html Can';不要把桌子放在柱子的顶端,html,css,Html,Css,我在“右栏”中有一张桌子,我似乎无法让它移动到该栏的顶部。有什么建议吗?我认为这与css的显示有关:表格单元格 链接到小提琴-> 为fiddle添加了链接,以便您可以看到我所说的内容。在css的#right列中添加“垂直对齐:顶部;” #rightcolumn{ vertical-align: top; display: table-cell; width: 20%; /*Width of right column in pixels*/ margin-left:

我在“右栏”中有一张桌子,我似乎无法让它移动到该栏的顶部。有什么建议吗?我认为这与css的显示有关:
表格单元格

链接到小提琴->

为fiddle添加了链接,以便您可以看到我所说的内容。

在css的#right列中添加“垂直对齐:顶部;”

#rightcolumn{
    vertical-align: top;
    display: table-cell;
    width: 20%; /*Width of right column in pixels*/
    margin-left: -20%; /*Set margin to that of -(RightColumnWidth)*/
    background:#5f5f5f ;
    color: White;
}

这是工作小提琴:

哈哈,很高兴这很容易:D我以为我做到了,但无论如何效果都很好。谢谢没问题,知道怎么做很容易