Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrapper div pushes out label hence causing it to appear at the bottom #22

Closed
kemalemin opened this issue Apr 24, 2013 · 1 comment
Closed

Comments

@kemalemin
Copy link

image

image

As seen above, the label is pushed after the div element hence it appears at the bottom. I've disabled all other css files thinking they might be the cause but had no luck.

Is this a bug?

@drgullin
Copy link
Owner

Customized inputs are block-level elements (display: block;) by default.

You may use display: inline-block; instead, so the labels won't be automatically placed on a new lines.

Example:

.icheckbox_square-red {
   display: inline-block;
   vertical-align: middle;   

   // Additional CSS for <IE8
   *display: inline;
   *zoom: 1;
}

You can also use floats or absolute: position;.

http://www.impressivewebs.com/difference-block-inline-css/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants