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.
You are not logged in.
Pages: 1
Hi,
I am struggling to create a page that has a layout like this:
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
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
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
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.
Offline
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
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
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
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
Pages: 1