Responsive Divs are overlapping - html

I have a code at http://jsfiddle.net/N7nj5/
CSS:
/* ================================================================ Pre-footer Advert pfa =========================================================== */
#pre-footer-ad-container {
width: 95%;
height: 100px;
margin-left: 2.5%;
margin-right: 2.5%;
}
.pre-footer-ad {
width: 100%;
height: 100px;
}
/* SECTIONS */
.sectionpfa {
clear: both;
padding: 0px;
margin: 0px;
}
/* COLUMN SETUP */
.colpfa {
height: 100px;
display: block;
float:left;
margin: 1% 0 1% 1%;
background-color: #f00;
}
.colpfa:first-child { margin-left: 0; }
/* GROUPING */
.grouppfa:before,
.grouppfa:after {
content:"";
display:table;
}
.grouppfa:after {
clear:both;
}
.grouppfa {
zoom:1; /* For IE 6/7 */
}
/* GRID OF TWO */
.pfaspan_2_of_2 {
width: 100%;
}
.pfaspan_1_of_2 {
width: 49.5%;
}
/* GO FULL WIDTH AT LESS THAN 480 PIXELS */
#media only screen and (max-width: 480px) {
.colpfa {
margin: 1% 0 1% 0%;
}
}
#media only screen and (max-width: 480px) {
.pfaspan_2_of_2 {
width: 100%;
}
.pfaspan_1_of_2 {
width: 100%;
}
}
/* ================================================================ Footer Content ================================================================ */
#footer-container {
margin-top: 40px;
width: 100%;
height: auto;
background-color:#16a085;
color: #ffffff;
}
.footer {
width: 95%;
height: 300px;
margin-left:2.5%;
margin-right: 2.5%;
background-color:#16a085;
}
/* SECTIONS */
.sectionfooter {
clear: both;
padding: 0px;
margin: 0px;
}
/* COLUMN SETUP */
.colfooter {
display: block;
float:left;
margin: 1% 0 1% 2%;
}
.colfooter:first-child { margin-left: 0; }
/* GROUPING */
.groupfooter:before,
.groupfooter:after {
content:"";
display:table;
}
.groupfooter:after {
clear:both;
}
.groupfooter {
zoom:1; /* For IE 6/7 */
}
/* GRID OF THREE */
.footerspan_3_of_3 {
width: 23%;
}
.footerspan_2_of_3 {
width: 24%;
}
.footerspan_1_of_3 {
width: 49%;
}
/* GO FULL WIDTH AT LESS THAN 480 PIXELS */
#media only screen and (max-width: 480px) {
.colfooter {
margin: 1% 0 1% 0%;
}
}
#media only screen and (max-width: 480px) {
.footerspan_3_of_3 {
width: 100%;
}
.footerspan_2_of_3 {
width: 100%;
}
.footerspan_1_of_3 {
width: 100%;
}
}
HTML:
<!-- Pre-Footer Advertisement pfa -->
<div id="pre-footer-ad-container">
<div class="pre-footer-ad">
<div class="sectionpfa grouppfa">
<div class="colpfa pfaspan_1_of_2">
This is column 1
</div>
<div class="colpfa pfaspan_1_of_2">
This is column 2
</div>
</div>
</div>
</div>
<!-- Footer Content -->
<div id="footer-container">
<div class="footer">
<div class="sectionfooter groupfooter">
<div class="colfooter footerspan_1_of_3">
Testimonials
</div>
<div class="colfooter footerspan_2_of_3">
Legal
</div>
<div class="colfooter footerspan_3_of_3">
Other Links
</div>
</div>
</div>
</div>
Problem Definition:
There are two parts:
1. the columns in red color
2. the column in torquise color
They are responsive.
When I reduce the width of the screen, the red ones overlap the torquise one.
I DONT WANT THAT TO HAPPEN!!!
I want that when the site is displayed on a mobile screen, the red and torquise regions should not overlap.
Currently when i reduce the screen resolution, the red ones come one below the other, which is perfect. but the same should happen with the torquise one also.
Please Help!!!

Just clear the footer-container
#footer-container {
margin-top: 40px;
width: 100%;
height: auto;
background-color:#16a085;
color: #ffffff;
clear: both; /* <--- */
}
FIDDLE

Use min-height for test instead height, or reset height too via your queries.
Tes with min-height: http://jsfiddle.net/N7nj5/1/

Related

How to set a css property depending on desktop or mobile view?

I would like to have 2 different margin for the same div depend on mobile and desktop view.
The code below can perform a margin-left: 70px; on desktop.
The problem arises on mobile view, it doesn't reset to margin-left: 0px;
How can I do it ?
Thanks.
.body-container {
padding-left: 0px;
padding-right: 0px;
max-width:1350px;
}
.content {
margin-left: 70px;
}
.content-collapsed {
margin-left: 0px;
}
You're not resetting margin in .content
You need to use media queries
The solution below uses non-mobile approach
body {
margin: 0;
}
.content {
background: red;
margin-left: 70px;
}
#media (max-width: 800px) { /*choose the width you prefer*/
.content {
margin-left: 0;
}
}
<div class="content">content</div>
The solution below uses mobile approach (recommended, also is the same used by bootstrap 4)
body {
margin: 0;
}
.content {
background: red;
margin-left: 0;
}
#media (min-width: 800px) { /*choose the width you prefer*/
.content {
margin-left: 70px;
}
}
<div class="content">content</div>
You can use media queries (MDN).
Example :
body {
margin: 0;
}
div {
width: 100px;
height: 100px;
border: 1px solid black;
margin-left: 0px; /* mobile*/
}
/* screen width higher than 750px */
#media screen and (min-width: 750px) {
div {
margin-left: 70px;
}
}
<div></div>
Use media query. Add:
/* For mobile*/
#media only screen and (max-width: 768px) {
div {
margin-left: 0;
}
}
This is the solution that worked the best for my case:
<style>
.body-container {
padding-left: 0px;
padding-right: 0px;
max-width:1350px;
}
.content {
margin-left: 70px;
}
##media (max-width: 800px) { /*choose the width you prefer*/
.content {
margin-left: 0px;
min-width: 100%;
}
}
</style>
Thank you. You made my day.

Columns don't act responsive even though #media is set? [duplicate]

This question already has answers here:
Why media queries has less priority than no media queries css
(2 answers)
Understanding CSS selector priority / specificity
(4 answers)
Closed 2 years ago.
I've created these to text boxes and want to add responsiveness to them, however, adding the #media doesn't work for some reason. I want the the right box move under the left box when the screen size is under x pixels.
/* CSS Document */
* {
box-sizing: border-box;
}
#fullbodybg {
margin-top: 20%;
}
/* Create two unequal columns that floats next to each other */
.column {
float: left;
padding: 10px;
height: auto;
/* Should be removed. Only for demonstration */
}
#media screen and (max-width: 1000px) {
.column {
width: 100%;
}
}
.left {
margin-left: 10%;
width: 25%;
}
.right {
margin-right: 10%;
width: 55%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
.row {
font-family: lato;
font-style: normal;
font-weight: 100;
font-size: 15px;
text-align: left;
}
<div class="row">
<div class="column left">
<h2>Angaben gemäß § 5 TMG</h2>
<p>Max Muster<br>Musterweg<br>12345 Musterstadt<br><br>Vertreten durch:<br>Max Muster<br><br>Kontakt:<br>Telefon: 01234-789456<br>Fax: 1234-56789<br>E-Mail: max#muster.de<br><br>Umsatzsteuer-ID:<br>Umsatzsteuer-Identifikationsnummer gemäß
§27a Umsatzsteuergesetz: Musterustid.<br><br>Wirtschafts-ID:<br>Musterwirtschaftsid<br><br>Aufsichtsbehörde:<br>Musteraufsicht Musterstadt</p>
</div>
<div class="column right">
<h2>Haftungsausschluss:</h2>
<p>Zweck einverstanden.</p>
</div>
</div>
It is about how css prioritizes, you can google and read it. there are some
rules.
In your case, you can either put the #media query below your left and right CSS (media at the bottom is best). Or add important to the CSS in the media query (which not a good practice but will do the job).
Solution 1.
* {
box-sizing: border-box;
}
#fullbodybg {
margin-top: 20%;
}
/* Create two unequal columns that floats next to each other */
.left {
margin-left: 10%;
width: 25%;
}
.right {
margin-right: 10%;
width: 55%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
.row {
font-family: lato;
font-style: normal;
font-weight: 100;
font-size: 15px;
text-align: left;
}
.column {
float: left;
padding: 10px;
height: auto;
/* Should be removed. Only for demonstration */
}
#media screen and (max-width: 1000px) {
.column {
width: 100%;
}
}
<div class="row">
<div class="column left">
<h2>Angaben gemäß § 5 TMG</h2>
<p>Max Muster<br>Musterweg<br>12345 Musterstadt<br><br>Vertreten durch:<br>Max
Muster<br><br>Kontakt:<br>Telefon: 01234-789456<br>Fax: 1234-56789<br>E-Mail:
max#muster.de<br><br>Umsatzsteuer-ID:<br>Umsatzsteuer-Identifikationsnummer gemäß §27a
Umsatzsteuergesetz:
Musterustid.<br><br>Wirtschafts-ID:<br>Musterwirtschaftsid<br><br>Aufsichtsbehörde:<br>Musteraufsicht
Musterstadt</p>
</div>
<div class="column right">
<h2>Haftungsausschluss:</h2>
<p>Zweck einverstanden.</p>
</div>
</div>
Solution 2.
/* CSS Document */
* {
box-sizing: border-box;
}
#fullbodybg {
margin-top: 20%;
}
/* Create two unequal columns that floats next to each other */
.column {
float: left;
padding: 10px;
height: auto; /* Should be removed. Only for demonstration */
}
#media screen and (max-width: 1000px) {
.column {
width: 100% !important;
}
}
.left {
margin-left: 10%;
width: 25%;
}
.right {
margin-right: 10%;
width: 55%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
.row {
font-family: lato;
font-style: normal;
font-weight: 100;
font-size: 15px;
text-align: left;
}
<div class="row">
<div class="column left">
<h2>Angaben gemäß § 5 TMG</h2>
<p>Max Muster<br>Musterweg<br>12345 Musterstadt<br><br>Vertreten durch:<br>Max
Muster<br><br>Kontakt:<br>Telefon: 01234-789456<br>Fax: 1234-56789<br>E-Mail:
max#muster.de<br><br>Umsatzsteuer-ID:<br>Umsatzsteuer-Identifikationsnummer gemäß §27a
Umsatzsteuergesetz:
Musterustid.<br><br>Wirtschafts-ID:<br>Musterwirtschaftsid<br><br>Aufsichtsbehörde:<br>Musteraufsicht
Musterstadt</p>
</div>
<div class="column right">
<h2>Haftungsausschluss:</h2>
<p>Zweck einverstanden.</p>
</div>
</div>
Your main issue is actually the order of your styles. What happens is that your style in .left and .right overrides your #media style. This should be a quick fix:
/* CSS Document */
* {
box-sizing: border-box;
}
#fullbodybg {
margin-top: 20%;
}
/* Create two unequal columns that floats next to each other */
.column {
float: left;
padding: 10px;
height: auto; /* Should be removed. Only for demonstration */
}
.left {
margin-left: 10%;
width: 25%;
}
.right {
margin-right: 10%;
width: 55%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
.row {
font-family: lato;
font-style: normal;
font-weight: 100;
font-size: 15px;
text-align: left;
}
#media screen and (max-width: 1000px) {
.column {
width: 100%;
}
}
I simply moved #media at the end to make sure it overrides all other styles when it meets the requirements you've set.

Centering table with more rows

I have three numbers in a div element that is set to display table. I need to center numbers when they are divided in more rows for better experience on narrow devices.
Please run code snippet at full page and then reduce screen size (356px for example).
What I want:
case1: margin|div|div|div|margin
--------------------------------
case2: margin|div|div|margin
margin|div| |margin
--------------------------------
case3: margin|div|margin
margin|div|margin
margin|div|margin
Solved! ...added code + eddited snippet, feel free to try :)
Edit1: There´s aboutqi class which is set to display: table and margin: auto. On wide screen there is only one row and margin works perfect = it´s centered. But when there are 2 or 3 rows margin stop works and aboutqiitems are not centered.
.aboutqi {
margin: auto;
display: table;
}
.aboutqiitems {
float: left;
}
.aboutqiitem {
float: left;
margin-right: 0px;
margin-bottom: 30px;
width: 200px;
}
.aboutqiitem-inner {
width: 100%;
margin: auto;
}
.num {
margin: 0px;
margin-bottom: 20px;
padding-left: 13px;
font-size: 48px;
font-weight: bold;
color: #014493;
}
.num-center {
margin: auto;
display: table;
}
.num-center-last {
margin: auto;
display: table;
position: relative;
left: -7px;
}
/* My solution */
.aboutqiitems-solved {
float: left;
}
#media screen and (max-width: 616px) {
.aboutqiitems-solved {
max-width: 100%;
clear: both;
padding-left: calc((100% - 400px)/2);
}
}
#media screen and (max-width: 416px) {
.aboutqiitems-solved {
max-width: 100%;
clear: both;
padding-left: calc((100% - 200px)/2);
}
}
#media screen and (max-width: 216px) {
.aboutqiitems-solved {
max-width: 100%;
clear: both;
padding-left: 0px;
}
}
<div class="aboutqi">
<p>Hello, need to center numbers when there is more than 1 row.</p>
<div class="aboutqiitems">
<div class="aboutqiitem">
<div class="aboutqiitem-inner">
<div class="num-center"><p class="num">1</p></div>
</div>
</div>
<div class="aboutqiitem">
<div class="aboutqiitem-inner">
<div class="num-center"><p class="num">2</p></div>
</div>
</div>
<div class="aboutqiitem last">
<div class="aboutqiitem-inner">
<div class="num-center-last"><p class="num">3</p></div>
</div>
</div>
</div>
</div>
</br>
</br>
<!-- My Solution -->
<div class="aboutqi">
<p>How I solve it. Fell free to change page width :)</p>
<div class="aboutqiitems-solved">
<div class="aboutqiitem">
<div class="aboutqiitem-inner">
<div class="num-center"><p class="num">1</p></div>
</div>
</div>
<div class="aboutqiitem">
<div class="aboutqiitem-inner">
<div class="num-center"><p class="num">2</p></div>
</div>
</div>
<div class="aboutqiitem last">
<div class="aboutqiitem-inner">
<div class="num-center-last"><p class="num">3</p></div>
</div>
</div>
</div>
</div>
Example: http://www.dcit.sk/ ... almost at the bottom of the page
You should use media queries in your CSS sheet to help with this. It looks like your numbers are splitting onto 2 rows around 616px, so you want to do something along the following lines:
#media screen and (max-width: 616px) {
.aboutqiitems {
width: 100%;
}
.aboutqiitem {
display: block;
clear: both;
width: 100%;
}
}
Here is a jsfiddle that shows the extra code and how it works: https://jsfiddle.net/4be1k4jr/
You can read more about media queries and how to use them here:
http://www.w3schools.com/cssref/css3_pr_mediaquery.asp
If you're looking to keep the boxes at 200px instead of 100% (in case you have images or something) you can use the following media query. It's a little less clean, but works if you absolutely must keep 200px.
#media screen and (max-width: 616px) {
.aboutqiitems {
width: 100%;
}
.aboutqiitem {
display: block;
clear: both;
width: 200px;
position: relative;
left: 50%;
margin-left: -100px;
}
}
From what I'm taking from this question, you want to change the css when the screen width gets to a certain width. The easiest way to do this is with an #media tag.
Here's my css solution to this problem.
<style>
.aboutqi {
margin: auto;
display: table;
}
.aboutqiitems {
float: left;
}
.aboutqiitem {
float: left;
margin-right: 0px;
margin-bottom: 30px;
width: 200px;
}
.aboutqiitem-inner {
width: 100%;
margin: auto;
}
.num {
margin: 0px;
margin-bottom: 20px;
padding-left: 13px;
font-size: 48px;
font-weight: bold;
color: #014493;
}
.num-center {
margin: auto;
display: table;
}
.num-center-last {
margin: auto;
display: table;
position: relative;
left: -7px;
}
#media only screen and (max-width: 615px){
.aboutqiitem{
width: 100%;
}
.aboutqiitems{
width: 100%;
}
.num{
padding: 0;
}
.num-center-last {
left: 0;
}
}
</style>
Keep in mind that you also need to set a viewport width with a meta tag in your head tag.
<meta content="width=device-width" name="viewport">
This would also work:
#media only screen and (max-width: 615px){
.aboutqiitems{
float: none;
}
.aboutqiitem{
float: none;
margin: auto;
}
.num-center-last{
position: inherit;
}
}

How center div with percentage width on responsive page?

I have a responsive page which can be resized to fit a desktop, tablet or phone. The phone and tablet css is ok but I have problem with the desktop. The difference is the main div which holds all the content.
For the phone and tablet, the main div width is 100% of the screen but for the desktop it should be fixed at 900px and also centered on the screen.
When I have it centered, the main div won't adjust its height depending on the content in it but it will for the other screen sizes. When I add a float: left; to the main div, it floats to the right and then the height follows the content in it
It's probably a really simple fix but I have tried everything I know and googled without finding the solution.
Thanks guys!
body {
background-color: #f1f1f1;
margin: 0;
}
#main {
background-color: #0000ff;
color: #222222;
float: left;
height: auto;
width: 100%;
}
/* Home Big
/*************************/
#home-big {
height: auto;
width: 100%;
}
#home-big h1 {
background-color: #1eaccc;
color: #ffffff;
margin: 0;
padding: 7px;
}
/* Home Big Content
/*************************/
.home-big-content {
float: left;
height: auto;
margin-top: 10px;
width: 100%;
}
/* Home Big Left
/*************************/
.home-big-left {
background-color: #ffff00;
float: left;
height: auto;
width: 50%;
}
.home-big-left img {
height: auto;
width: 100%;
}
/* Home Big Right
/*************************/
.home-big-right {
float: left;
height: auto;
margin-left: 0;
width: 50%;
}
/* TABLET SIZE
/*****************************************************************************/
#media all and (min-width: 600px) {
#main {
background-color: #00ff00;
float: left;
height: initial;
padding: 10px 0;
}
#home-big {
margin: 0 10px;
width: initial;
}
.home-big-left {
background-color: #ffff00;
}
}
/* DESKTOP SIZE
/*****************************************************************************/
#media all and (min-width: 900px) {
#main {
background-color: #ff0000;
float: initial;
margin: 0 auto;
width: 900px;
}
#home-big {
margin: 0;
width: initial;
}
.home-big-left {
background-color: #ffff00;
}
}
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="stylesheet.css" type="text/css">
</head>
<body>
<section id="main">
<article id="home-big">
<h1>Headline</h1>
<div class="home-big-content">
<div class="home-big-left">
Left
</div>
<div class="home-big-right">
Right
</div>
</div>
</article>
</section>
</body>
</html>
When you float stuff, you have to clear it or use overflow: hidden
Try:
.clearfix:after {
content: "";
display: table;
clear: both;
}
Apply clearfix class to all containers that contain floated elements, or use overflow: hidden;
You need to clear the floats that are with your #main element. I use the micro clearfix.
Use as follows:
<section id="main" class="cf"></section>
.cf:before,
.cf:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.cf:after {
clear: both;
}

CSS Responsive Mobile Issue - Foundation Front-end framework ( ZURB)

My website uses a Foundation Front-end framework for my website, so it's a responsive design for mobile devices.
I have an issue, with how the data is displayed on my website when used on a mobile.
I would like the sidebar widget contents on my website to display above the items (health clubs) on the mobile version of the website. See my sidebar widget has a filter section, So I really need that displayed before the (health clubs).
Question: What do I need to change to display the sidebar widget on top? Apologises I'm ok at CSS but this is pretty advanced for my skill level.
Here is the website: (PC version)
http://s10.postimg.org/cl1n43w95/website.png
Here is how the website is displayed on the mobile. Note How my items are all above the sidebar. I'd like the sidebar widget above the items:
http://s27.postimg.org/8adw402gz/screenshot2_sidebarunder_items.png
Here is the foundation code I believe I need to change:
/* #Foundation Style
================================================== */
.row .column, .row .columns{ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.container{ margin: 0px auto; max-width: 960px; padding: 0px 20px; }
.container.wrapper{ margin: 0px auto; max-width: 1000px; padding: 0px; }
.row { width: 1140px; max-width: 100%; min-width: 727px; margin: 0 auto; }
.row .row { width: auto; max-width: none; min-width: 0; margin: 0 -10px; }
.column, .columns { float: left; min-height: 1px; padding: 0 10px; position: relative; margin-bottom: -12px; }
.row .one { width: 8.333%; }
.row .two { width: 16.667%; }
.row .three { width: 25%; }
.row .four { width: 33.333%; }
.row .five { width: 41.667%; }
.row .six { width: 50%; }
.row .seven { width: 58.333%; }
.row .eight { width: 66.667%; }
.row .nine { width: 75%; }
.row .ten { width: 83.333%; }
.row .eleven { width: 91.667%; }
.row .twelve { width: 100%; }
.row .one-fifth{ width: 20%; }
.row .one-sixth{ width: 16.667; }
img{ max-width: 100%; height: auto; }
img { -ms-interpolation-mode: bicubic; }
object, embed { max-width: 100%; }
/* #Foundation Mobile Size
================================================== */
#media only screen and (max-width: 767px) {
body { -webkit-text-size-adjust: none; -ms-text-size-adjust: none;
width: 100%; min-width: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.container{ margin: 0px auto; max-width: 420px; }
.container.wrapper{ margin: 0px auto; max-width: 460px; padding: 0px; }
.row { width: auto; min-width: 0; margin-left: 0; margin-right: 0; }
.row .column, .row .columns { width: 100%; float: none; }
.column:last-child, .columns:last-child { float: none; }
[class*="column"] + [class*="column"]:last-child { float: none; }
.column:before, .columns:before, .column:after, .columns:after { content: ""; display: table; }
.column:after, .columns:after { clear: both; }
}
/* #Custom Style
================================================== */
/*--- header area ---*/
.header-wrapper .responsive-menu-wrapper{ display: none; }
/* #Custom Mobile size
================================================== */
#media only screen and (max-width: 767px) {
/*--- header area ---*/
.header-wrapper .logo-wrapper{ float: none; }
.header-wrapper .navigation-wrapper{ display: none; }
.header-wrapper .responsive-menu-wrapper{ display: block; }
.header-wrapper .top-search-form{ display: none; }
div.logo-right-text{ float: none !important; text-align: center !important;
padding-top: 0px !important; padding-bottom: 20px; }
div.feedback-wrapper{ display: none; }
div.top-navigation-left, div.top-navigation-right{ text-align: center; float: none; }
div.social-wrapper { float: none; display: inline-block; margin-top: 5px; }
/*--- single page ---*/
div.single-portfolio .port-media-wrapper { max-width: 100%; width: 100%; float: none; margin-bottom: 20px; }
div.single-portfolio .port-content-wrapper { overflow: visible; }
div.single-portfolio .port-nav .port-prev-nav, div.single-portfolio .port-nav .port-next- nav { margin-bottom: 15px; }
/*--- page item ---*/
div.gdl-blog-medium .blog-media-wrapper { margin-right: 0px; width: 100%; }
div.gdl-blog-medium .blog-context-wrapper { overflow: visible; }
div.price-item{ margin-bottom: 20px; }
div.column-service-row{ border-left-width: 0px; }
/*--- shortcode ---*/
.shortcode1-4, .shortcode1-4.last,
.shortcode1-3, .shortcode1-3.last,
.shortcode1-2, .shortcode1-2.last,
.shortcode2-3, .shortcode2-3.last,
.shortcode3-4, .shortcode3-4.last,
.shortcode1-5, .shortcode1-5.last,
.shortcode2-5, .shortcode2-5.last,
.shortcode3-5, .shortcode3-5.last,
.shortcode4-5, .shortcode4-5.last{ width: 100%; }
/*--- slider ---*/
.flex-caption{ display: none !important; }
.nivo-caption{ display: none !important; }
.anythingSlider{ display: none !important; }
/*--- footer ---*/
div.copyright-left, div.copyright-right{ float: none; text-align: center; }
}
Thanks Guys, Sorry if i'm not very clear.
With the foundation grid you can change the order of columns, which is probably what you are looking for.
http://foundation.zurb.com/docs/components/grid.html
Look for "Source Ordering"
That should guide you on the right path. Otherwise it would be helpful if you post the relevant markup.
second attempt
If you look at the source of your second page http://goo.gl/ijZ1JF you find three elements:
<div class="row single page"> ...
<div class="eight column columnopaddingright"> ...
<div class="four column columnopaddingleft"> ...
Do you get the desired result if you modify them for testing purpose like this?
<div class="row single page" style="display: table;">
<div class="eight column columnopaddingright" style="display: table-footer-group;">
<div class="four column columnopaddingleft" style="display: table-header-group;">