Solved

Container fixed and footer fullwidth in Bootstrap 3

Posted on 2014-03-29
2
2,687 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

758 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

21 Experts available now in Live!

Get 1:1 Help Now