Vertical Alignment

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
bluttman
Profound User
Posts: 35
Joined: Mon Feb 20, 2012 6:45 pm
First Name: Brian
Last Name: Luttman
Company Name: BEPCO, Inc.
Contact:

Vertical Alignment

Post by bluttman »

Is it possible to control Vertical alignment as well as horizontal alignment?
Specifically would like to control on Grid headers.

Thanks!
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: Vertical Alignment

Post by Brian »

Typically vertical alignment is handled by the placement of the widget. As for the Grid Headers, they are centered vertically by default. I assume you would like to override this behavior.

If so, you will need to override this behavior in a custom css file. You would need to set the vertical-align property to something other than middle. This is set on each grid type so for example, if you wanted to override this to be top aligned for the Simple Grid your custom CSS file would contain the following:

Code: Select all

.simple-grid .header-cell {
  vertical-align: top;
}
bluttman
Profound User
Posts: 35
Joined: Mon Feb 20, 2012 6:45 pm
First Name: Brian
Last Name: Luttman
Company Name: BEPCO, Inc.
Contact:

Re: Vertical Alignment

Post by bluttman »

OK, but it doesn't appear I can do multiple CSS classes on the grid properties-misc?

Thanks!
bluttman
Profound User
Posts: 35
Joined: Mon Feb 20, 2012 6:45 pm
First Name: Brian
Last Name: Luttman
Company Name: BEPCO, Inc.
Contact:

Re: Vertical Alignment

Post by bluttman »

I can see now where it is effecting the screen in the external css properties.

However, it is not able to override what is at the "element.style {" level.

Forgive me if I'm not clear. I'm a novice at this css stuff! ;-)
bluttman
Profound User
Posts: 35
Joined: Mon Feb 20, 2012 6:45 pm
First Name: Brian
Last Name: Luttman
Company Name: BEPCO, Inc.
Contact:

Re: Vertical Alignment

Post by bluttman »

Update:

Got it to work:

Code: Select all

.crystal-grid .header-cell div{
top: 20% !important;
}
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: Vertical Alignment

Post by Brian »

Great. Glad I could help.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests