html - Footer is not displaying in full page width using Bootstrap 3 -
i checked bootstrap.min.css , width:100% not mentioned navbar, navbar-inverse , navbar-fixed-top classes still displaying 100% width header section.
<nav class="navbar navbar-inverse navbar-fixed-top" > <div class="container"> <div > <h3>free area</h3> </div> </div> </nav>
similarly want display footer in 100% width according page width. used below css , html code not displaying 100% width footer. how can make footer displays in entire width of page?
css
footer { margin: 0px 0; background:#006699; }
html
<footer> <div class="container"> <div class="row "> <div class="col-md-6 col-sm-6"> <h3>section area 01</h3> <ul> <li><a href="#">link1</a></li> <li><a href="#">link2</a></li> <li><a href="#">link3</a></li> </ul> </div> <div class="col-md-6 col-sm-6"> <h3>section area 02</h3> <ul> <li><a href="#">link1</a></li> <li><a href="#">link2</a></li> </ul> </div> </div> </div> </footer>
as requested op, issue op facing is, having either <footer>
or <header>
confined width
of .container
of bootstrap framework. 1 best solution put elements directly under body.
so, solution be, replacing (probably) old code:
<body> <div class="container"> <div class="row"> <div class="col-md-12"> <header> <!-- contents --> </header> <!-- body --> <footer> <!-- contents --> </footer> </div> </div> </div> </body>
to out of .container
, limits width
, placing directly under <body>
this:
<body> <header> <!-- contents --> </header> <div class="container"> <div class="row"> <div class="col-md-12"> <!-- body --> </div> </div> </div> <footer> <!-- contents --> </footer> </body>
Comments
Post a Comment