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 forces display: block; #9733

Closed
HTMLGuyLLC opened this issue Aug 17, 2013 · 7 comments
Closed

hidden-xs forces display: block; #9733

HTMLGuyLLC opened this issue Aug 17, 2013 · 7 comments

Comments

@HTMLGuyLLC
Copy link

I'm trying to use display: inline-block until it needs to be hidden, but it seems that's not possible right now unless I fight the !important. I took out all the display: block(s) and it hid the div. I guess you're doing the reverse of what I would have assumed. You're just hiding all, and forcing it to show on certain widths. That doesn't make sense to me...Can you think of a fix, justify your reasoning, and let me know what you're doing for the future on this. Thank you.

@HTMLGuyLLC
Copy link
Author

Ah, just went back and noticed this "Responsive utilities are currently only available for block-level toggling, meaning display: none; or display: block;. Use with inline and table elements is currently not supported."

@juthilo
Copy link
Collaborator

juthilo commented Aug 17, 2013

In fact, you can actually use the responsive utilities on table elements now, just not inline elements (see mixins.less#L508-510). Support for toggling inline elements is planned, not guaranteed for Bootstrap 3.1 (#9397).

@mdo mdo closed this as completed Aug 17, 2013
@Juuro
Copy link

Juuro commented Sep 6, 2013

I would like to ay, that I would appreciate it if support for toggling inline elements makes its way into Bootstrap. :-)

@michael-langford
Copy link

+1

Use case: A button that has text and icon on a large screen just needs icon in mobile view

@GrupoWebex
Copy link

That is custom CSS i use for it.
You can change 'a' and 'span' tag.

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

@media (max-width: 768px) { 
    a span.hidden-xs {display:none !important;}
}

@wmayner
Copy link

wmayner commented Nov 19, 2013

+1

Another use-case: A label within a header that gives extra information if there's enough screen real estate.

EDIT: My bad, thanks for the link.

@cvrebert
Copy link
Collaborator

This issue is dead. See #8869.

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

8 participants