![](/img/trans.png)
[英]How can I sort the positioning of this HTML Table? - I need the Submit button on the right hand side and need to remove the spacing on the left
[英]How can I remove the spacing on the right-side?
我正在對該網站進行編碼http://www.allrecht.nl/new ,並遇到以下問題:在整個網站的右側大約有40px的空間-我無法弄清楚它的來源。誰能幫我這個?
它發生在我更改#pricing和#container的寬度和邊距之后(因此,表格將位於DIV的中間)。 我試圖調整身體的填充/邊距,但這並不能解決問題。 我沒有嘗試撤消我在兩個DIV BC上調整的邊距/寬度,我需要將它們居中-因此,如果你們有解決方案,使定價表仍然居中,並且網站右側也沒有空格,我很想聽聽它:D
添加box-sizing: border-box;
到您在CSS中的#footer。 您應該將其用作全局規則,以便塊不會受到填充的影響。 使用此鏈接獲得解釋和示例! http://www.w3schools.com/css/css3_box-sizing.asp
謝謝你,丁卡! 我還添加了一個“;” 在#footer中填充之后-現在可以一起使用:)非常感謝!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.