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

Display:inline-block and whitespace in your html #23

Closed
tevko opened this issue Mar 24, 2014 · 5 comments
Closed

Display:inline-block and whitespace in your html #23

tevko opened this issue Mar 24, 2014 · 5 comments

Comments

@tevko
Copy link

tevko commented Mar 24, 2014

2 side by side elements at 50% width will not float next to each other unless there is no whitespace in the HTML http://codepen.io/tevko/pen/dsKjf/

@jbkkd
Copy link

jbkkd commented Mar 25, 2014

wtf, html

@klepas
Copy link

klepas commented Mar 25, 2014

Wat.

@tevko
Copy link
Author

tevko commented Mar 25, 2014

This is an intended behavior (inline block is supposed to account for whitespace around it) but it seems antiquated as layout other than DOM order should be almost entirely up to css. It also makes for a lot of freaking out when your basic code isn't working

@danburzo
Copy link

Also here: #1 :-)

@mdo
Copy link
Owner

mdo commented Mar 25, 2014

Closing as dupe of #1.

@mdo mdo closed this as completed Mar 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants