xerox02 Posted June 29, 2010 Share Posted June 29, 2010 How do you align checkboxes horizontally instead of vertically? <label for="checkbox-1" tabindex="1"></label> <input type="checkbox" name="checkbox-1" id="checkbox-1" value="checkbox-1"; /> <label for="checkbox-2" tabindex="2"></label> <input type="checkbox" name="checkbox-2" id="checkbox-2" value="checkbox-2" /> <label for="checkbox-4" tabindex="4"></label> <input type="checkbox" name="checkbox-4" id="checkbox-4" value="checkbox-4" /> Link to comment https://forums.phpfreaks.com/topic/206167-how-do-you-align-checkboxes-horizontally-instead-of-vertically/ Share on other sites More sharing options...
haku Posted June 29, 2010 Share Posted June 29, 2010 Why are your labels all empty? That makes no sense. Anyways: label, input { float:left; } input { clear:left; } Link to comment https://forums.phpfreaks.com/topic/206167-how-do-you-align-checkboxes-horizontally-instead-of-vertically/#findComment-1078693 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.