Make a relative positioned 100% height div in Bootstrap - html

I'm trying to make a sidebar on the left hand side of the page with the content to the right of it. the problem I'm running into is that when I try to make the div 100% height, I have to set it to position: absolute; which causes the content to overlap the sidebar.
Here is my HTML
<div class="row">
<div class="sidebar col-sm-3">
<ul>
<li class="active">
<h3>Link</h3>
</li>
<li class="">
<h3>Link</h3>
</li>
<li class="">
<h3>Link</h3>
</li>
<li class="active">
<h3>Link</h3>
</li>
</ul>
</div>
<!-- sidebar -->
<div class="sidebar-content col-sm-9">
<ul>
<li class="active">
<h2 class="underline">Link</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum nostrum assumenda sequi praesentium aperiam. Accusamus omnis velit quos sint quas corporis inventore, facilis laborum pariatur explicabo maxime voluptas at aliquid!</p>
</li>
<li class="">
<h2 class="underline">Link</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum nostrum assumenda sequi praesentium aperiam. Accusamus omnis velit quos sint quas corporis inventore, facilis laborum pariatur explicabo maxime voluptas at aliquid!</p>
</li>
<li class="">
<h2 class="underline">Link</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum nostrum assumenda sequi praesentium aperiam. Accusamus omnis velit quos sint quas corporis inventore, facilis laborum pariatur explicabo maxime voluptas at aliquid!</p>
</li>
<li class="">
<h2 class="underline">Link</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum nostrum assumenda sequi praesentium aperiam. Accusamus omnis velit quos sint quas corporis inventore, facilis laborum pariatur explicabo maxime voluptas at aliquid!</p>
</li>
</ul>
</div>
<!-- sidebar-content -->
</div>
<!-- row -->
And my CSS
.sidebar {
background: #eee;
height: 100%;
padding-top: 100px !important;
}
.sidebar-content ul li {
display: none;
}
.sidebar-content ul li.active {
display: block;
}
.sidebar-content {
position: relative;
right: 0;
padding: 100px;
}
Can anybody tell me how to make the div relative and 100% height or a better way to go about creating a sidebar?
Fiddle: https://jsfiddle.net/3Lapzoyf/3/

Solution:
Add a height of 100vh (which is a length unit representing 1% of the viewport height). This will result in a sidebar that has a height of 100% of the viewport height. Also make sure you have your row(s) inside a .container or .container-fluid when you are using Twitter Bootstrap (if you didn't do that already).
HTML:
<div class="container-fluid">
<div class="row">
<div class="sidebar col-sm-3">
<ul>
<li class="active">
<h3>Link</h3>
</li>
<li class="">
<h3>Link</h3>
</li>
<li class="">
<h3>Link</h3>
</li>
<li class="active">
<h3>Link</h3>
</li>
</ul>
</div><!-- sidebar -->
<div class="sidebar-content col-sm-9">
<ul>
<li class="active">
<h2 class="underline">Link</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum nostrum assumenda sequi praesentium aperiam. Accusamus omnis velit quos sint quas corporis inventore, facilis laborum pariatur explicabo maxime voluptas at aliquid!</p>
</li>
<li class="">
<h2 class="underline">Link</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum nostrum assumenda sequi praesentium aperiam. Accusamus omnis velit quos sint quas corporis inventore, facilis laborum pariatur explicabo maxime voluptas at aliquid!</p>
</li>
<li class="">
<h2 class="underline">Link</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum nostrum assumenda sequi praesentium aperiam. Accusamus omnis velit quos sint quas corporis inventore, facilis laborum pariatur explicabo maxime voluptas at aliquid!</p>
</li>
<li class="">
<h2 class="underline">Link</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum nostrum assumenda sequi praesentium aperiam. Accusamus omnis velit quos sint quas corporis inventore, facilis laborum pariatur explicabo maxime voluptas at aliquid!</p>
</li>
</ul>
</div><!-- sidebar-content -->
</div><!-- row -->
</div>
CSS:
.sidebar {
background: #eee;
height: 100vh;
padding-top: 100px;
}
.sidebar-content ul li {
display: none;
}
.sidebar-content ul li.active {
display: block;
}
.sidebar-content {
padding: 100px;
position: relative;
right: 0;
}
Fiddle: https://jsfiddle.net/3Lapzoyf/4/

Related

Keep slider elements on the same row with position relative

I have a slider with 3 slides for now. I want those 3 slides to be on the same rows or to be moved to the same row without position: absolute.
Live fiddle: https://jsfiddle.net/5z167ypt
HTML:
<div class="slider">
<div class="slide active-slide">
<h2>Slide 1</h2>
<img src="https://place-hold.it/100">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae reiciendis maiores quia excepturi doloribus fugit nemo in inventore quidem at modi quasi rerum nulla ut, ab libero adipisci sint dolores.</p>
</div>
<div class="slide slide-right">
<h2>Slide 2</h2>
<img src="https://place-hold.it/100">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae reiciendis maiores quia excepturi doloribus fugit nemo in inventore quidem at modi quasi rerum nulla ut, ab libero adipisci sint dolores.</p>
</div>
<div class="slide slide-right">
<h2>Slide 3</h2>
<img src="https://place-hold.it/100">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae reiciendis maiores quia excepturi doloribus fugit nemo in inventore quidem at modi quasi rerum nulla ut, ab libero adipisci sint dolores.</p>
</div>
</div><!-- .slider -->
<div class="controlers">
<button id="next">Next</button>
<button id="previous">Previous</button>
</div><!-- .controlers -->
CSS:
.slider,
.controlers{
width: 80%;
margin: auto;
overflow: hidden;
}
.slide{
position: relative;
width: 100%;
float: left;
transform: translateX(0);
transition: 1s transform ease-in-out;
text-align: center;
}
.slide-left{
transform: translateX(-100vw);
}
.slide-right{
transform: translateX(100vw);
}
jQuery:
//On clicking #next button
$('#next').click(function(){
var current = $('.active-slide'),
next = $('.active-slide').next();
//Move current active slide to the left & remove active class
current.removeClass('active-slide').addClass('slide-left');
//Add active class to nect slide to be in the center & remove slide classes
next.addClass('active-slide').removeClass('slide-right slide-left');
});
//On clicking #previous button
$('#previous').click(function(){
var current = $('.active-slide'),
previous = $('.active-slide').prev();
//Move current active slide to the right & remove active class
current.removeClass('active-slide').addClass('slide-right');
//Add active class to previous slide to be in the center & remove slide classes
previous.addClass('active-slide').removeClass('slide-right slide-left');
});
For now, The 3 slides are divided into 3 rows. Each slide is moving right and left in a separate row. I want all the 3 slides to be moving in the same row.
You can use plugin for slider. Like Slick Slider
<script src="https://code.jquery.com/jquery-3.6.0.min.js"/>
<script src="https://cdn.jsdelivr.net/npm/slick-carousel#1.8.1/slick/slick.min.js"/>
$('.slider').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
dots: true,
});
<div class="slider">
<div class="slide active-slide">
<h2>Slide 1</h2>
<img src="https://place-hold.it/100">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae reiciendis maiores quia excepturi doloribus fugit nemo in inventore quidem at modi quasi rerum nulla ut, ab libero adipisci sint dolores.</p>
</div>
<div class="slide slide-right">
<h2>Slide 2</h2>
<img src="https://place-hold.it/100">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae reiciendis maiores quia excepturi doloribus fugit nemo in inventore quidem at modi quasi rerum nulla ut, ab libero adipisci sint dolores.</p>
</div>
<div class="slide slide-right">
<h2>Slide 3</h2>
<img src="https://place-hold.it/100">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae reiciendis maiores quia excepturi doloribus fugit nemo in inventore quidem at modi quasi rerum nulla ut, ab libero adipisci sint dolores.</p>
</div>
</div>

What I have to do that menu will be on the top side of slider?

I have a problem concerning my mobile menu and slider. I want the menu will on the top side of the slider. But when I'm clicking on the menu icon, the menu isn't shown. I tried in many ways but I still not solved the problem. Thank you in advance.
`
lorem
<body>
<header>
<nav>
<input type="checkbox" id="check">
<label for="check">
<i class="fas fa-bars" id="btn"></i>
<i class="fas fa-times" id="cancel"></i>
</label>
<img src="/img/logo.svg" alt="logo">
<ul>
<li class="el1">lorem</li>
<li class="el1">lorem</li>
<li class="el1">lorem</li>
<li class="el1">lorem</li>
</ul>
</nav>
</header>
<div class="container">
<div class="slider">
<div class="slide slide1">
<div class="caption">
<h2>Slide1</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio corrupti nemo incidunt deserunt obcaecati vero dolor explicabo tempore, rem quas cum vitae magni dolores. Delectus voluptatem dicta quam assumenda est.</p>
</div>
</div>
<div class="slide slide2">
<div class="caption">
<h2>Slide2</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio corrupti nemo incidunt deserunt obcaecati vero dolor explicabo tempore, rem quas cum vitae magni dolores. Delectus voluptatem dicta quam assumenda est.</p>
</div>
</div>
<div class="slide slide3">
<div class="caption">
<h2>Slide3</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio corrupti nemo incidunt deserunt obcaecati vero dolor explicabo tempore, rem quas cum vitae magni dolores. Delectus voluptatem dicta quam assumenda est.</p>
</div>
</div>
<div class="slide slide1">
<div class="caption">
<h2>Slide1</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio corrupti nemo incidunt deserunt obcaecati vero dolor explicabo tempore, rem quas cum vitae magni dolores. Delectus voluptatem dicta quam assumenda est.</p>
</div>
</div>
</div>
</div>
</body>
Code: https://codepen.io/FilipoV/pen/ExNowKM
you will be use z-index:1; in your css.
nav ul {
float: right;margin-right: 25px;
z-index: 1;
}

How to solved error setting sidebar using fixed-top

I am using Bootstrap 4 and I am making use of the CSS class called fixed-top to leave my sidebar landline while I go down with the scroll, this works perfect, but it happens that what I have inside container-fluid which is a table, is below sidebar, as I show it in The following example:
Keep in mind that I also use one sidebar Toggle to contract or not the sidebar, likewise the table is below the
I leave the class fixed-top and class code container-fluid
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
.container-fluid {
width: 100%;
padding-right: 0.75rem;
padding-left: 0.75rem;
margin-right: auto;
margin-left: auto;
}
UPDATE:
Add HTML code
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="shortcut icon" href="/Content/favicon.png">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion toggled fixed-top" id="accordionSidebar">
<!-- Sidebar - Brand -->
<a class="sidebar-brand d-flex align-items-center justify-content-center">
<div class="sidebar-brand-icon rotate-n-15">
</div>
</a>
<!-- Divider -->
<hr class="sidebar-divider">
<!-- Nav Item - Dashboard -->
<li class="nav-item">
<a class="nav-link" href="#Url.Action("Index", "TicketForm")">
<i class="fa fa-paper-plane"></i>
<span>Abrir un ticket</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#Url.Action("Index", "Tickets")">
<i class="fa fa-bars"></i>
<span>Listado de Tickets</span>
</a>
</li>
<!-- Nav Item ties Collapse Menu -->
<li class="nav-item">
<a class="nav-link" href="#Url.Action("Index", "Service")">
<i class="fa fa-cogs"></i>
<span>Gestionar servicios</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#Url.Action("Index", "Report")">
<i class="fa fa-table"></i>
<span>Reportes</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#Url.Action("Index", "Dashboard")">
<i class="fa fa-line-chart"></i>
<span>Dashboard</span>
</a>
</li>
<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
</div>
</ul>
</body>
</html>
$(document).ready(function() {
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("menuDisplayed");
});
});
/* Sidebar */
#sidebar-wrapper {
z-index: 1;
position: fixed;
width: 150px;
height: 100%;
overflow-y: hidden;
background: #5b4282;
opacity: 0.9;
transition: all 0.5s;
}
/* Main Content */
#page-content-wrapper {
width: 100%;
position: absolute;
padding: 15px;
padding-left: 150px;
transition: all 0.5s;
}
#menu-toggle {
transition: all 0.3s;
font-size: 2em;
display: block;
text-align: center;
}
/* Change the width of the sidebar to display it*/
#wrapper.menuDisplayed #sidebar-wrapper {
width: 250px;
}
#wrapper.menuDisplayed #page-content-wrapper {
padding-left: 250px;
}
/* Sidebar styling */
.sidebar-nav {
padding: 0;
list-style: none;
transition: all 0.5s;
width: 100%;
text-align: center;
}
.sidebar-nav li {
line-height: 40px;
width: 100%;
transition: all 0.3s;
padding: 10px;
}
.sidebar-nav li a {
display: block;
text-decoration: none;
color: #ddd;
}
.sidebar-nav li:hover {
background: #846bab;
}
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li>Home</li>
<li>About</li>
<li>Contact</li>
</ul>
<span class="fa fa-bars"></span>
</div>
<!-- Page Content -->
<div id="page-content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="text-center">Sidebar</h1>
<h2 class="small text-center">Second Header</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium perferendis maiores velit ad id delectus nisi eligendi doloremque officia necessitatibus, repellendus alias omnis, natus nam voluptates dolor vel minus ab?</p>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<!DOCTYPE html>
</body>
</html>
You need to divide the page in two sections first. Then distribute them as content section and sidebar section. That should solve your overlapping issue. like below snippet
<body>
<div id="wrapper">
<div id="sidebar">
dashboard menu (that nav tag and its childs)...
make this div fixed and sticky
</div>
<div id="content">
Contents
</div>
</div>
</body
This is just div distribution without css.

How to fix element at top in CSS?

I have problem with position on CSS.
I create 3 elements: a menu navbar, a category bar (to filter content), and content.
It looks like this:
*Menu `navbar`*
Home About US
*Category bar*
Category 1 Category 2
*Content*
Lorem ipsum dolor sit amet consectetur adipisicing elit
When scrolling down, the menu show is hidden, and category bar will be fixed on top.
Screenshot:
When I add CSS code to fix category bar at top:
ul#filters {
overflow: hidden;
background-color: #333;
position: fixed;
width: 100%;
}
ul#filters li {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
It looks like:
I expected output is:
When loading page success, like the first image in my answer. When the user scrolls down, menu hidden, category bar fix top, content at below category bar.
Like this:
Note: change menu bar to category bar
Here is my code:
ul#filters {
overflow: hidden;
background-color: #333;
position: fixed;
width: 100%;
}
ul#filters li {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<nav class="navbar navbar-fixed green child-nav">
<div class="container-fluid">
<div class="container">
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse ">
<ul class="nav navbar-nav navbar-right">
<li class="active">Home</li>
<li>About US</li>
</ul>
</div><!-- /.navbar-collapse -->
</div>
</div>
</nav>
<div class="container">
<ul id="filters" class="loaiduan clearfix">
<li class="li-selected">
Category 1
</li>
<li class="li-selected">
Category 2
</li>
</ul>
<div id="container" class="list">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit temporibus cumque impedit repellendus vero, modi voluptatem id dignissimos assumenda quis fuga suscipit provident ab fugiat dolores at numquam dolorem adipisci?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit temporibus cumque impedit repellendus vero, modi voluptatem id dignissimos assumenda quis fuga suscipit provident ab fugiat dolores at numquam dolorem adipisci?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit temporibus cumque impedit repellendus vero, modi voluptatem id dignissimos assumenda quis fuga suscipit provident ab fugiat dolores at numquam dolorem adipisci?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit temporibus cumque impedit repellendus vero, modi voluptatem id dignissimos assumenda quis fuga suscipit provident ab fugiat dolores at numquam dolorem adipisci?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit temporibus cumque impedit repellendus vero, modi voluptatem id dignissimos assumenda quis fuga suscipit provident ab fugiat dolores at numquam dolorem adipisci?</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit temporibus cumque impedit repellendus vero, modi voluptatem id dignissimos assumenda quis fuga suscipit provident ab fugiat dolores at numquam dolorem adipisci?</p>
</div>
</div>
Just use bootstrap class (navbar-fixed-top)
Example:
<nav class="navbar navbar-fixed-top green child-nav">
Hope to help!
I'd use Bootstrap's navbar.
You can make stick it on top with just one parameter, plus it's responsive.
Let me know if it works for you.

Full width footer with Foundation framework

I am trying to make my footer panel go across the page but it seems to just stick in the middle. My header has filled across the page. Am I doing something wrong. I am basically trying to make both of the panel at the bottom go across the full width of the page.
HTML
<body>
<header>
<div class="large-12">
<div class="panel">
<h1 class="nowrap text-center">Header</h1>
</div>
</div>
<br><br>
</header>
<div class="large-4 columns">
<div class="panel">
<h3>Sidebar</h3>
<h5>lorem</h5>
<ul class="text-left ">
<!-- # used as placeholder -->
<li>link 1</li>
<li>link 2</li>
<li>link 3</li>
<li>link 4</li>
<li>link 5</li>
</ul>
</div>
</div>
<div class="large-8 columns">
<div class="panel">
<h1>Call To Action</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium quas quasi perspiciatis unde cumque nesciunt nisi eveniet natus nemo quia, sequi non, ab, beatae aliquam. Dolore accusamus quos esse similique architecto, aut consequatur ratione placeat, veritatis ea sit tempore corporis cupiditate voluptas? Nesciunt rem vel corporis consectetur perferendis hic perspiciatis amet totam quod, impedit reiciendis suscipit aperiam, eum ex dolorem fugit repellendus sit. Non, facere labore, veritatis nobis corporis sapiente dignissimos dolore ex maxime a quia ipsum recusandae, quos velit atque perferendis quibusdam, deserunt eius? Modi facilis impedit dolorem saepe, nobis eius voluptatibus perspiciatis iste, quis at, amet ex cum?</p>
</div>
<div class="row">
<div class="columns large-6">
<p class="panel columns">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum tempora, ipsam. Quos, hic reprehenderit perferendis ut illo minus. Quae odit laborum excepturi inventore consequuntur deserunt rerum dolorum optio, sit. Maiores.</p>
</div>
<div class="columns large-6">
<p class="panel columns">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio possimus unde labore delectus quia asperiores adipisci magni molestias libero in et modi assumenda nesciunt sapiente, error, necessitatibus, sed accusantium itaque.</p>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="panel">
<h1>Website in no time</h1>
</div>
<footer>
<div class="large-12">
<div class="panel">
<h1 class="nowrap text-center">Footer</h1>
</div>
</div>
</footer>
The problem is that your footer is inside a row. So it will be restricted to Foundations max-width which is around 960px the last time I checked. When I used foundation I would make the footer 100% width and then wrap the content with the row.
CSS
footer {
width: 100%;
margin: 0;
padding: 0;
}
HTML
<header>
<!-- header content-->
</header>
<div>
<!-- you can wrap your content however you want -->
</div>
<!-- but do not wrap footer if you want it to fill the entire width of the page -->
<footer>
<div class="large-12">
<div class="panel">
<h1 class="nowrap text-center">Footer</h1>
</div>
</div>
</footer>
Foundation has following CSS
.row {
width: 100%;
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
max-width: 62.5rem;
}
What you can try to do is
footer.row {
max-width: none
}
Hope it helps