简体   繁体   中英

CSS 960 grid system layout issue

I've been trying for ages using class="grid_x alpha omega clear etc... but no matter what I've tried I cannot get the login box @ http://ci2.totalshopuk.com/login to line up correctly. Anyone able to see what I'm doing wrong?

Thanks

Try changing .blockheader { padding: 2px; } .blockheader { padding: 2px; } to .blockheader { padding: 1px; } .blockheader { padding: 1px; } That worked for me!

Both these elements are centred in the div. You need to put the label into a or tag in order to control its position inside the parent div. Then set the widths accordingly to line it up.

The grid system is not always the best option for setting widths on form elements.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM