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 2014-08-28 03:03:00

Crizz
Member
From: the Netherlands
Registered: 2013-03-26
Posts: 101
Website

Working in table mode

Hi,

I am struggling to create a page that has a layout like this:


temp.png


Image on the left, text on the right and text on the right, image on the left
How is heavens name could I create a layout like this in TTG? Tables? Or is there another and better solution?

Thanks!

Last edited by Crizz (2014-08-28 03:04:18)

Offline

#2 2014-08-28 03:19:03

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

Re: Working in table mode

use html and float the image either left or right. Be sure to clear each subsequent section.

to make it responsive, you may wish to use the Responsive Grid Framework. The documentation is in the CE3 section of the wiki but all the classes are present in CE4.

each section would be wrapped in a div with the "container_12" class

so for the first and third section, on the inner divs you would use "grid_8" class for the text and "grid_4" class for the image.
for the second section, on the inner divs just reverse the order and use "grid_4" class for the timage and "grid_8" class for the text.

Last edited by rod barbee (2014-08-28 03:20:17)


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

Offline

#3 2014-08-28 03:34:23

Crizz
Member
From: the Netherlands
Registered: 2013-03-26
Posts: 101
Website

Re: Working in table mode

Thanks Rod! I will give it a try..and see what I can come up with in my design.

Offline

#4 2014-08-28 03:43:38

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

Re: Working in table mode

I really like using the Responsive Grid for all sorts of layouts. And it looks good on smaller devices too


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

Offline

#5 2014-08-28 12:30:14

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Working in table mode

I'd use CSS pseudo selectors (:even, :odd) to float the image left or right.

Then use media queries to undo your code for small displays, which would probably just require setting float:none on the same elements.


Matt

The Turning Gate, http://theturninggate.net

Offline

#6 2014-10-22 00:02:59

Crizz
Member
From: the Netherlands
Registered: 2013-03-26
Posts: 101
Website

Re: Working in table mode

Ok, I got it sorted out in same way using the codes.
Although now I want the images to drop a shadow the way I have that in my gallery.

How can I implant that?

My table looks like this:

<div class="container_12 clearfix" style="font-size: normal;">

<div class="grid_8 gutter_12px collapse clearfix">
<p>'QUOTE'</p>
</div>

<div class="grid_4 gutter_12px collapse clearfix">
<p><img src="/photos/testimonial1.jpg" alt="" style="width:300px;height:200px"></p>
</div>

Here is the page I am talking about: http://www.aimhigh.nl/testimonials/

Offline

#7 2014-10-22 00:20:54

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

Re: Working in table mode

you can either add the box shadow css to the existing styles you have for each image, or add a class to each image and then create that class with the box-shadow parameters in custom css.

<p><img src="/photos/testimonial1.jpg" alt="" style="width:300px;height:200px; box-shadow: 10px 10px 5px #000000;"></p>

and set the size, blur, and color parameters to match your other images.

or

<p><img src="/photos/testimonial1.jpg" alt="" style="width:300px;height:200px;" class="your-image-shadow"></p>

then in your custom.css file:

.your-image-shadow {
  box-shadow: 10px 10px 5px #000000;
}

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

Offline

#8 2014-10-22 00:37:29

Crizz
Member
From: the Netherlands
Registered: 2013-03-26
Posts: 101
Website

Re: Working in table mode

Thanks Rod! Do you know the standard values and color for the default drop shadow in TTG pages?
I mean the values what I get when checking the "Drop shadow" box in TTG pages and gallery.

I do not get the same shadows as in my gallery, and those are set default bij checking the box.

Last edited by Crizz (2014-10-22 00:39:38)

Offline

#9 2014-10-22 00:51:18

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

Re: Working in table mode

you can use the inspector to find out what those are.

looks like it's:
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);


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

Offline

#10 2014-10-22 02:58:46

Crizz
Member
From: the Netherlands
Registered: 2013-03-26
Posts: 101
Website

Re: Working in table mode

Yeah! That worked out just the way I wanted. THANKS! Rod!

Offline

Board footer

Powered by FluxBB