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" /> Quote 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; } Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.