You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Paul Spencer <pa...@apache.org> on 2002/03/18 23:14:04 UTC

Re: How do I change the cellpadding in the column.vm?

Chris,
Look at the style referenced by skin parameter controller-style-class in 
the style sheet. See the skin "orange-red-Bordered".  The css properties 
are padding, padding-top, padding-bottom, padding-left, and padding-right.

Paul Spencer


Chris Kimpton wrote:

> Hi,
> 
> This is not meant to be a trick question...
> 
> I want to change this value and the way I have found to do this now
> is by having my own version of column.vm.
> 
> I have looked at the CSS settings - but the CSS padding attribute
> does not affect cellpadding - is there anyway to set this with CSS -
> that would be the best...
> 
> My next option is to amend the PortletSkin et al classes to have some
> new setters/getters - setControllerCellPadding - but this seems to be
> going to quite a bit of detail for a simple change.  I am tempted to
> put in some generic get/set accessors that directly return the
> contents of the skin.xreg file - but I guess that is bad, as it
> directly ties it to the implementation...
> 
> Chris
> 
> =====
> http://wc2002.kimptoc.net - someone has got to win...
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How do I change the cellpadding in the column.vm?

Posted by Paul Spencer <pa...@apache.org>.
Chris Kimpton wrote:

> Hi,
> 
> --- Paul Spencer <pa...@mikon.com> wrote:
> 
>>Chris,
>>Support for properties may be incomplete for version of IE <5.5 and
>>
>>Netscape <6.
>>
>>
> 
> Thanks for that - I am testing with 5.5, but did not notice a subtle
> feature - the CSS style only seems to take effect when a CELLPADDING=
> attribute is entered ????
> 
> I have attached a sample file showing the problem - at least for
> IE5.5 and Mozilla 0.9.8 ... for Netscape 6 (6.01) and Opera 6.01 the
> style has no effect on the layout.
> 
> So - I plan to do the following, change CELLPADDING=2 to 0 in
> column.vm and put padding:2 in the ControllerStyleClass - this should
> achieve the current affect, but allow us to override it.
> 
> Is this ok?


This should be implemented in column.vm and multicolumn.vm.  Also if the 
ControllerStyleClass does NOT exist, them the CELLPADDING=2 should be 
used.  That said +1

> 
> I know it is a specific requirement for my app - but at least gives
> control of the padding to style (sometimes) and hence users of
> jetspeed do not need to amend column.vm etc.
> 
> Regards,
> Chris
> 
> =====
> http://wc2002.kimptoc.net - someone has got to win...
> 


Paul Spencer



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How do I change the cellpadding in the column.vm?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Paul Spencer <pa...@mikon.com> wrote:
> Chris,
> Support for properties may be incomplete for version of IE <5.5 and
> 
> Netscape <6.
> 

Thanks for that - I am testing with 5.5, but did not notice a subtle
feature - the CSS style only seems to take effect when a CELLPADDING=
attribute is entered ????

I have attached a sample file showing the problem - at least for
IE5.5 and Mozilla 0.9.8 ... for Netscape 6 (6.01) and Opera 6.01 the
style has no effect on the layout.

So - I plan to do the following, change CELLPADDING=2 to 0 in
column.vm and put padding:2 in the ControllerStyleClass - this should
achieve the current affect, but allow us to override it.

Is this ok?

I know it is a specific requirement for my app - but at least gives
control of the padding to style (sometimes) and hence users of
jetspeed do not need to amend column.vm etc.

Regards,
Chris

=====
http://wc2002.kimptoc.net - someone has got to win...

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

Re: How do I change the cellpadding in the column.vm?

Posted by Paul Spencer <pa...@mikon.com>.
Chris,
Support for properties may be incomplete for version of IE <5.5 and 
Netscape <6.

Paul Spencer

Chris Kimpton wrote:

> Hi,
> 
> --- Paul Spencer <pa...@apache.org> wrote:
> 
>>Chris,
>>Look at the style referenced by skin parameter
>>controller-style-class in 
>>the style sheet. See the skin "orange-red-Bordered".  The css
>>properties 
>>are padding, padding-top, padding-bottom, padding-left, and
>>padding-right.
>>
>>
> 
> I tried playing with those - but they seem to relate to padding of
> other elements, like P, SPAN and DIV - not tables.  I don't believe
> they affect CELLPADDING.
> 
> TIA,
> Chris
> 
> =====
> http://wc2002.kimptoc.net - someone has got to win...
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How do I change the cellpadding in the column.vm?

Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,

--- Paul Spencer <pa...@apache.org> wrote:
> Chris,
> Look at the style referenced by skin parameter
> controller-style-class in 
> the style sheet. See the skin "orange-red-Bordered".  The css
> properties 
> are padding, padding-top, padding-bottom, padding-left, and
> padding-right.
> 

I tried playing with those - but they seem to relate to padding of
other elements, like P, SPAN and DIV - not tables.  I don't believe
they affect CELLPADDING.

TIA,
Chris

=====
http://wc2002.kimptoc.net - someone has got to win...

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>