[support] Custom menu theming

Jean Gazis jgazis at gmail.com
Wed Sep 19 17:23:11 UTC 2007


How do I figure out which of the style sheets I need to modify for any given
element and in what order they are applied? My theme (aberdeen) has several
and some elements have bits of css on more than one style sheet. I made
changes in one place and they don't always seem to "take."

Should I need to modify the system.css and others or just the style.css?
Will it cause problems if I modify the system.css or others?

Jean



On 9/19/07, Vasileios Lourdas <lourdas_v at yahoo.gr> wrote:
>
> On Wednesday 19 September 2007 16:07:05 sander-martijn wrote:
> > It depends on what styling you need to do.  You can do a lot with css
> > and should try that route first.  You can figure out which css to add or
> > alter by viewing source and seeing which classes and ids are being
> > used.  You likely only have to edit functions if the menu is showing the
> > wrong elements, for example if it is showing children that you don't
> > want shown.  If it's presnting the correct elements but in the wrong way
> > you can probably fix it with css.
>
> OK, thanks for your suggestions. Drupal renders the code like this:
>
> <ul class="menu">
> <li class="leaf"><a href="...">Schools</a></li>
> <li class="leaf"><a href="...">Parents</a></li>
> ...
> </ul>
>
> So, I have to edit the menu and leaf classes in css. However, if I want to
> go
> further, how do I have access to the menu structure through PHP?
> --
> # Vasileios Lourdas,
> # Informatics Engineer, Thessaloniki (Greece)
> # http://www.lourdas.name
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Jean Gazis
www.jeangazis.com
www.boxofrain.us

"Believe those who are seeking the truth; doubt those who find it." - André
Gide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20070919/7197bf9a/attachment.htm 


More information about the support mailing list