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 03:04:41

gwlco
Member
From: Pensacola, Fl.
Registered: 2012-10-24
Posts: 337
Website

frame for tray 1 and tray 2

On my HOME page http://garylittle.com/home I would like to frame and/or put a bounding box around the text. Is there a way to do this?

Last edited by gwlco (2016-07-22 03:08:44)

Offline

#2 2016-07-22 03:52:48

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

Re: frame for tray 1 and tray 2

custom css.
this is a start, it puts borders around the entire trays. Maybe not what you want

.page__tray {
border: 1px solid black
}

otherwise, you can add either inline styling or create custom classes for the content you place within a tray. Using custom css makes this easier to add to any tray content without having to write the styles every time
For example, place content for a tray in a div and give it a class name:

<div class="tray-frame">
....your content....
</div>

your content will need to be written in html (paragraph tags, anchor tags, etc.)

and in your custom css, create the class with the styling you need:

.tray-frame {
    border: 1px solid black;
    padding: 8px;
    margin: 4px;
}

Doing this you can have several "widgets" in a tray, each with the same frame around it.


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 2016-07-22 04:15:15

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

Re: frame for tray 1 and tray 2


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