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

hidden-xs causes Span to become block element #10478

Closed
geofili opened this issue Sep 5, 2013 · 2 comments
Closed

hidden-xs causes Span to become block element #10478

geofili opened this issue Sep 5, 2013 · 2 comments

Comments

@geofili
Copy link

geofili commented Sep 5, 2013

When setting .hidden-xs on a span, the span becomes a block element when visible on media, large and xlarge displays:

Example:

<span id="title">
    Mr
</span>
<span id="first_name" class="hidden-xs">
    Fred
</span>
<span id="last_name">
   Blogs
</span>

Output on mobile:
Mr Blogs

Output on tablet and desktop:
Mr
Fred
Blogs

Notice 'first_name' span has now become block level which (cause name to be split onto multiple lines)

@geofili
Copy link
Author

geofili commented Sep 5, 2013

I think the BS code should be:

span.hidden-xs {
    display: inline !important;
}

because SPAN is an inline element.

@mdo
Copy link
Member

mdo commented Sep 5, 2013

Please search next time—this is a dupe many times over. We're considering adding inline and/or inline-block toggles.

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

2 participants