Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Creating Full Width Fluid Divs in Genesis Theme for Sales/Landing Page

February 8, 2014 11 Comments

Its colorful and long and goes on and on and on – sales landing pages.

genesis-fluid-wrap-ps-compgenesis-fluid-wrap-ps-comp2

 

To create these types of pages in a Genesis child theme you need to edit the CSS for the inner part of the page and then create some new CSS which you can add in multiple sections that expand the width of the page with the content inside being centred, pretty much like what happens in the header area.

Editing the CSS

The inner part of the page is controlled by the CSS class .site-inner which is set to be 1140px wide and centred.

genesis-site-inner

If we change this CSS rule where it appears to have no width or padding attributes in the CSS to:

.site-inner {
max-width: none;
}

@media only screen and (max-width: 1023px)
.site-inner {
padding-left: 0%;
padding-right: 0%;
}

 

We get..

genesis-site-inner-fluid

 

The content goes edge to edge – make sure you don’t change the .wrap Class as that is used elsewhere.

Adding the New HTML Mark Up Containers

For each segment on the page that is unique, the content needs to be contained in 2 div elements, the inner one to house and centre the content and the outer one to control the containing or wrapping div element that go full width of the page. Add the mark up directly onto the WordPress page.

<div class="container container1">
	<div class="content content1"></div>
</div>
<div class="container container2">
	<div class="content content2"></div>
</div>
<div class="container container3">
	<div class="content content3"></div>
</div>
<div class="container container4">
	<div class="content content4"></div>
</div>

These divs should have a common and unique class some styles are shared and others are unique.

CSS Rule

.content {
max-width:960px;
margin: 0 auto;
}

The key CSS rule is to set a width on the content div  it needs to be defined either as an absolute figure in pixels or a relative figure in percent and centered with the margin rule.

The outer div classes can be used for background colors and images

 

genesis-site-fully-wrapped
Final Site here.

Cats: CSS, fluiddiv, Theming

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Google hits back after Apple exec says AI is hurting search
  • Apple: “Hundreds of millions to billions” lost without App Store commissions
  • Matter update may finally take the tedium out of setting up your smart home
  • Cue: Apple will add AI search in mobile Safari, challenging Google
  • Apps like Kindle are already taking advantage of court-mandated iOS App Store changes

RSS mac surfer

  • Tot is new text editor for Mac, iPhone, and iPad focused on constraints and ease of use
  • TiPbITS: Google Drive Sorting Can Hide New Documents
  • How to take a screenshot on a MacBook Pro
  • How To Create Simple Animation With Mac Keynote
  • Last Week on My Mac: Virus pandemics

Donate

Copyright © 2025· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2025 · gee on Genesis Framework · WordPress · Log in