Solved

Container fixed and footer fullwidth in Bootstrap 3

Posted on 2014-03-29
2
2,708 Views
Last Modified: 2014-03-30
Hello, I'm using Bootstrap 3.1.1 and I need to make the row marked in orange fixed and fullwidth, and the rows marked in green fullwidth. How can I do this?

I would also like to use the rows in green as footer. Should I use <footer> tags?

This is the site http://blue-ware.net/ap/

Thanks in advance.
0
Comment
Question by:ivanblue
2 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 250 total points
ID: 39965178
to position the orange box, apply the following rules to it:

position: fixed;
right: 0;
left: 0;
z-index: 1020;
top: 70px;

Open in new window


then, adjust the padding top of the body tag:
body {
  padding-top: 270px;
  padding-bottom: 30px;
}

Open in new window


You don't have to do anything to the "footer". You can wrap it in a footer tag if you want to be "semantically correct", but it doesn't matter except for maybe certain accessibility cases, screen readers, etc...
0
 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 250 total points
ID: 39965324
You can just make both areas a container class but make sure they are either above or below the main content.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now