开发者

Need help with padding property of CSS

Enter Text:

<span style="padding-rig开发者_Python百科ht: 5px margin-left: 40px;"> 
    <asp:TextBox 
        class="tbox" 
        ID="txt" 
        runat="server" 
        MaxLength="256" 
        Style="width: 200px;">
    </asp:TextBox>
</span>

This padding property just won't work. I want space between "Enter Text:" and my text box. Why is it not working? I don't want to give spaces using nbsp.


You're missing a semi colon after 5px

It should read

<span style="padding-right: 5px; margin-left: 40px;">
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜