0

enter image description here

here's my codes.

<header class="top-nav">
   <div class="container">
      ....
   </div>
</header>

that container has 'width : 720px' , 'padding : 0 15px' and 'margin: 0 9px'. I think It has right width (768px) on iPad(768px x 1024px), but that isn't to fit my page. How can I solve this?

++ I work on Chrome develope tool.

container => container-fluid isn't work for me :(

after using container-fluid, width=738, padding=0 15px, I think It is right too, but It has same problem

J. Kim
  • 11
  • 2

4 Answers4

1

container-fluid will be used for 100 % screen.

<header class="top-nav">
   <div class="container-fluid">
      ....
   </div>
</header>

if its not work, then try like this, and add styles like below

.newclassname { 
  padding: 0px;
}

Lets try this,

<nav class="navbar navbar-default">
  <div class="container-fluid">
...
</div>
</nav>
G.Ashok Kumar
  • 1,649
  • 2
  • 13
  • 25
0

Use the class container-fluid instead. Example code:

 <nav class="navbar navbar-default" role="navigation">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-2">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Bootflat</a>
    </div>
  </div>
 </nav>
Vaishal Patel
  • 399
  • 4
  • 24
  • please check edited things – J. Kim Mar 28 '17 at 06:00
  • Okay. Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to padding and more, neither container is nestable. Use .container for a responsive fixed width container. Could you place the container-fluid div on the outside instead – Vaishal Patel Mar 28 '17 at 06:20
0

Please try class="container-fluid".

Rohan
  • 467
  • 2
  • 11
0

Manually you can set container width in style.css page like .container{width:1180px;}

VISHAL SINGH
  • 651
  • 1
  • 8
  • 20