在我的網站上,我創建了一個側欄。但是,我想要在邊欄內容和邊欄邊框之間填充40px。我試過這個,但由於某種原因,它不起作用。這是怎麼回事?爲什麼不是我的填充工作? (HTML&CSS)
我的代碼:
.sidebar {
padding: "40px 40px 40px 40px";
}
<div id="sidebar">
<form id="signUp" name="signUp">
<p>
<b>Hey!</b> Want to post comments and receive cool information about me? If You Do, Sign Up Now! :D<br>
<br>
Nickname: <input id="nickname" placeholder="Nickname" required="" type="text"><br>
Email Address: <input id="email" maxlength="254" placeholder="Email Address" required="" type="text"><br>
Password: <input id="password" placeholder="Password" required="" type="password"><br>
<input onclick="confirmAccount" type="button" value="Submit">
</p>
</form>
</div>
使用'#sidebar'的ID – Karan
仍然沒有工作...感謝儘管建議:d –
'#sidebar { 填充:40像素40像素40像素40像素; }',應該修復它 – Thaillie