Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   How can change the justification of a column?, posted by fabio vitale on Mon Jan 30 17:52:20 2017 
    icon2.gif   Re: How can change the justification of a column?, posted by Stefan Ritt on Mon Jan 30 17:58:11 2017 
       icon2.gif   Re: How can change the justification of a column?, posted by fabio vitale on Mon Jan 30 18:30:30 2017 
          icon2.gif   Re: How can change the justification of a column?, posted by Andreas Luedeke on Tue Jan 31 08:42:54 2017 
          icon2.gif   Re: How can change the justification of a column?, posted by Stefan Ritt on Tue Jan 31 09:20:07 2017 
             icon2.gif   Re: How can change the justification of a column?, posted by fabio vitale on Tue Jan 31 18:10:29 2017 
                icon2.gif   Re: How can change the justification of a column?, posted by Stefan Ritt on Tue Jan 31 21:38:44 2017 
Message ID: 68570     Entry time: Tue Jan 31 21:38:44 2017     In reply to: 68568
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Request  OS: Windows  ELOG Version: 3.1.2 
Subject: Re: How can change the justification of a column? 

This is currently not possible.

/Stefan

fabio vitale wrote:

Thank you Stefan: it worked!

Now I am wondering if there is some syntax to force this behaviour at the attribute level in elog.cfg, without the need to modify the css, I mean simply based on the attribute name (not its content). The syntax Style <attribute> <value> = <style> can modify the style but it applies to the whole line in the list, so all the cells in that line are affected. Also it apply *only if* the content of the cell equals <value>.

In other words, an overridden version for Style: Style <attribute> = <style> that will be applied *regardless* of the cell content _AND_ only to the cell specified in <attribute>

What do you think?

 

 

Stefan Ritt wrote:

The CSS class for the list display table "listframe". If you want the second column to be left-aligned, you put following into elog.css:

.listframe td:nth-child(2) {
   text-align:left;
}

that should do the trick. Replace the "2" with the column you would like to change.

Stefan

 

fabio vitale wrote:

I need to set text-align:left but only for an attribute in the List mode, For example, say that FirstName column must be left justified in list view. What is the name of the cell content in the default elog.css?

Stefan Ritt wrote:

You can do that chaning the CSS of the underlying theme. But you need some experience with CSS.

fabio vitale wrote:

It is possible to change the justification for a column/attribute in the list mode (left-aligned, centered, right-aligned)?

Right now Elog treats each colum of a list as centered,

 

thank you

 

 

 

 

 

ELOG V3.1.5-3fb85fa6