This topic is locked

vAlign

9/19/2012 2:32:55 PM
PHPRunner General questions
W
wildwally author

I've tried adding vAlign to the <tr>, <td>, <P>, <DIV> and the table created by the phpsnippet continues to be centered. I want it aligned to the top of the cell. looks like the class is forcing/overriding everything i do.
suggestions? I want the class because the formating matches everything else.

C
cgphp 9/20/2012
W
wildwally author 9/20/2012



Check this article: http://webdesign.abo...sfaqimportn.htm


Ok, which confirms what should happen - that is not.
<TR class="runner-row style1 runner-b-viewfields" vAlign=top>

<TD class=runner-cl></TD>

<TD class="runner-cc runner-cc1" vAlign=top colSpan=2>
<P

align=center>{$event DJR_Function_Section}</P></TD>

<TD class="runner-cc runner-cc1" vAlign=top colSpan=2>
<P align=center vAlign="top">{$event DJR_employee_section}</P></TD>

<TD class="runner-cr alt"></TD></TR>
This should over ride and allow the php_Snippets created tables align to the top; however, they are aligned in the center.

Sergey Kornilov admin 9/20/2012

What Cristian says is that you need to use CSS instead of vAlign. Using !important CSS attribute you can override any CSS property.

W
wildwally author 9/21/2012



What Cristian says is that you need to use CSS instead of vAlign. Using !important CSS attribute you can override any CSS property.


Ok, this is something new to me - can you show a working example of how to impliment in PHPR?

C
cgphp 9/21/2012