Page 1 of 1

(Work in progress) Box Madness

Posted: Sat May 05, 2007 12:56 am
by ormus7577
Hi...

I'm working on a new theme called 'Box Madness'. Surprisingly it uses loads of boxes ;)

I hope it's ok to open a new thread, because I pretty sure will end up with some questions. I got basic understanding of css, i'm more of a coder.. So here's the first one:

Is it possible to style the sidebar entries (especially the titles) different for both sidebars?

A very (read VERY) early version can be seen at my old blog (which is my test installation nowadays) http://blog.loben.net/

Posted: Sat May 05, 2007 6:35 pm
by judebert
Yes, certainly. Check out your index.tpl to see how it's done (if your template doesn't have one, it defaults to the one in the templates/default/ directory).

By default, the left sidebar is in a container with id "serendipityLeftSideBar", and the right is in a container with id "serendipityRightSideBar".

Posted: Sat May 05, 2007 8:00 pm
by ormus7577
I guess I misphrased that one...

I've noticed the serendipityRightSideBar/LeftSideBar IDs. Is there a way to style the serendipitySideBarTitle different for both bars? This is probably more of a css than a s9y question... Basically I wonder if I can adress nested IDs in css.

*edit* Ah, I figured it out. Missed the fact, that those titles are class (obviously, as they appear multiple times in a document)

Posted: Sat May 05, 2007 11:04 pm
by stm999999999
something like

Code: Select all

.serendipityLeftSideBar .serendipitySideBarTitle {...}
.serendipityRightSideBar .serendipitySideBarTitle {...}
should work, I think.