Label and text field not aligned together? [closed]

北慕城南 提交于 2019-12-13 09:26:08

问题


I have yet another alignment issue that needs to be solved. I'm no CSS expert, so I need the experts' help. I have tried playing around in Firebug but I couldn't figure it out.

Site where this issue is present: http://bit.ly/13KG6dz

(Using bit.ly because IP addresses are not allowed - don't worry its not a virus)

Note that I CAN change any CSS file being called in this page, but I CANNOT change the HTML code of the page itself, because the HTML code is server generated.

The issue is this:

Shown in red in the picture below:

Anyone know how to fix this ?


回答1:


You should float it like the rest of fields in the group

#option-231{
    float:left;
}



回答2:


label is basically block element. use any css display property for desired result. like

.classNameOfLabel {
     display: inline
 }   


来源:https://stackoverflow.com/questions/16493856/label-and-text-field-not-aligned-together

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!