twitter bootstrap - How can I hide empty grid columns? -
i'm using bootstrap make responsive template cms. want have 3 column grid in main area, sometimes, there isn't content in 3 columns. cms add class column empty, can use hide them, can't bootstrap expand other 2 columns fill area.
so, if have 3 columns col-md-4, 1 hidden, want others become col-md-6. if 2 empty, i'd want remaining 1 col-md-12. but, haven't had luck.
any ideas?
normally you'd use php (or particular server-side language) logic apply appropriate bootstrap classes depending on whether there's content in column or not. shouldn't done css.
Comments
Post a Comment