M. Gar M. Gar - 6 months ago 45
CSS Question

Assigns min-width to a bootstrap panel

I'm using one

panel panel-defaul
in my page to show some data but I need that the
of my panel be 720px if the Windows is resizing to less of 720px I need that appear a scrollX but the panel can´t be less of 720px like the use of
when I need to do something like that but using tables I do this:

<div class="example-table table-responsive">
<table id="example-table" class="table table-hover">

max-width: 720px;
min-width: 720px;

And if I use the rule
nothing happen.

How can I get the same effect in my panel?

EDIT: Ok I try this in jsfiddle and my exact problema is that no matter that I set the
min-width: 760px
the content in the
that is the two
create two rows but I need that the two
keep the same two columns and not pass to be two rows, at the first I think that was because the
but now I don´t know why this happen even when the scrollX is created.

Answer Source

So according to your updated question, you want your columns to remain inline irrespective of screen width. You can do that by changing your col-sm-6 to col-xs-6 like this:

<div class="col-xs-6">
    <strong>Something here</strong>
<div class="col-xs-6">
    <strong>Something here</strong>

jsFiddle: https://jsfiddle.net/rvzy9s5k/1/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download