[Seaside] divWithShow:Hide:Do links style?

Avi Bryant avi at beta4.com
Tue Oct 26 13:10:25 CEST 2004


On Oct 25, 2004, at 9:37 AM, Yoel Jacobsen wrote:

> I find this method fun and usable.
> Yet, is there a way to change the style of the show and hide links? 
> The style attribute of the entire block affect only the content of the 
> <div>...

Well, if you wrap a div around the whole thing, with a specific class:

html divClass: 'foo' with:
	[html divWithShow: 'show' hide: 'hide' do: [...]]

Then, you should be able to address the links with

.foo a {...}

That will affect the show and hide links and any links inside.  If you 
want to override something for just the hide link, you can use

.foo div a {...}

And for just the links inside the hidden div,

.foo div div {...}

There are probably also ways using more complex selectors to address 
individual parts; consult your local CSS expert.  But the general point 
is that you don't need a class/id on every element, just on some 
enclosing element that you can use as a reference point in your CSS 
selectors.

Avi



More information about the Seaside mailing list