Yes but then it'll apply the style to all the columns that the frame
has. If I have a Velocity 3 columns and if i give id to a fragment and
change its style with js, it'll apply it to all of the 3 div's that
layout has. I want to apply it to a single one depending on where I
put my portlet.

Elif

On 10/3/06, Jacek Wiślicki <[EMAIL PROTECTED]> wrote:
Wiadomosc od Elif Guner z 2006-10-03 22:13 brzmiala:

> Is there a way to get the portlet fragment's parent and give it a
> style dynamicaly within the portlet?
> Such as: when I add a portlet it's put inside a <div> like : <div
> class="portal-layout-cell portal-layout-cell-ThreeColumns-0-0" >
> What I'd like to do is style this <div> within my portlet. As in, make
> its style float:left, or clear: left etc.
> Is this possible? I tried to use the ContentFragment but it doesn't
> have a method to get the parent.
> Any help?
Modify a portlet decorator and add some id attribute to a fragment's
containing element (e.g. a fragment id in PSML). Then access this
element with JavaScript (document.getElementById(...)) and modify its
style.

--
pozdrawiam,
     Jacek Wislicki

[EMAIL PROTECTED]
http://www.nauka-biznes.org.pl/jetspeed/portal/
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to