Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-07-22 01:37:08

Ken
Member
Registered: 2013-03-16
Posts: 314
Website

Responsive grid framework in Backlight

I used Rod's code to create a two column text layout. The only issue I see is that the two columns do not cover the width of my website. The left column/photo is indented and the right column has a lot of space on its right side.

here is the link to the page that uses two column code:

http://sweetlightgallery.com/test/photographer/

Any suggestions on how I can correct this?

Offline

#2 2016-07-22 01:47:34

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Responsive grid framework in Backlight

Do you have the three column layout enabled?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#3 2016-07-22 01:50:05

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Responsive grid framework in Backlight

looks like you've got a tray active with no content in it. Try setting your page template to the one-column layout.

The page is looking good.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2016-07-22 02:03:22

Ken
Member
Registered: 2013-03-16
Posts: 314
Website

Re: Responsive grid framework in Backlight

I set the page template to a one-column layout, which helps the text occupy the entire page, but it is still indented in from the sides. Any thoughts on how to correct this?

Offline

#5 2016-07-22 02:17:12

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Responsive grid framework in Backlight

Now it is a matter of your css settings. Here I remove the default paddings and add a new one to get some distance between the two columns:

.the__copy {
    padding: 0; 
}

@media screen and (min-width: 992px) {
  .grid_12 *[class*="col_"] {
      padding-right: 0;
      padding-left: 0;
  }
  .col_4 {
      padding-left: 24px;
  }
  .col_8 {
      padding-right: 24px;
  }
}

Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#6 2016-07-22 02:37:51

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Responsive grid framework in Backlight

The responsive grid has alpha and omega classes that will negate the built in padding on the left (alpha) and right (omega)
Apply the alpha class to the first block and the omega class to the second.
See my demo page for examples: http://backlight-rb-test.barbeephoto.co … e-grid.php

And there are some other classes you can use. I outline some here:
http://ttg-tips-and-tricks.barbeephoto. … backlight/


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2016-07-22 02:55:36

Ken
Member
Registered: 2013-03-16
Posts: 314
Website

Re: Responsive grid framework in Backlight

adding the alpha and the omega worked. A few more tweaks and I am ready to install cart.

Thanks Rod and Daniel for all of your help.

Offline

#8 2016-07-22 03:57:45

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Responsive grid framework in Backlight

The Push and Pull classes are handy too.
Say that on the desktop you want certain content on the left and other content on the right, but you want the content on the right to end up above the content on the left when the site is used on mobile devices.
http://backlight-rb-test.barbeephoto.com/push-pull.php


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB