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

Responsive classes on inline elements #9442

Closed
Grezvany13 opened this issue Aug 13, 2013 · 2 comments
Closed

Responsive classes on inline elements #9442

Grezvany13 opened this issue Aug 13, 2013 · 2 comments
Labels

Comments

@Grezvany13
Copy link

All responsive classes (both by device size and print) don't like inline elements like to be hidden and shown correctly without breaking it.

Example:

<a class="btn"><i class="glyphicon glyphicon-envelope"></i> <span class="hidden-sm">Email</span></a>

It does hide the span correctly when the screensize is below 768px, however when visible it's placed below the icon since it recieves a display:block.

Possible solution:
Add display:inline-block for elements like a, span, i, em, strong, etc when used in combination with responsive classes.

@iambateman
Copy link

I ran into this issue as well. Doing inline-block for "typically" inline elements like the a tag would be equally maddening if someone set those to display: block.

@cvrebert
Copy link
Collaborator

Duplicate of #8869.

@mdo mdo mentioned this issue Aug 16, 2013
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants