[Moin-user] remove 'Settings' links from MoinMoin

Rick Vanderveer rick.vanderveer at gmail.com
Sat Feb 21 11:34:37 EST 2009


On Sat, Feb 21, 2009 at 12:26 AM, David M. Besonen <davidb at panix.com> wrote:
> On 2/19/2009 9:26 AM, Christopher MacMinn wrote:
>
>> You want to hide just the "settings" link, meaning the one
>> that sits between the username link and the "Logout" link?
>> This is an anchor (<a>) with id="userprefs", so try adding
>> a CSS rule in common.css (or screen.css) that looks like
>> this:
>>
>> a#userprefs { display: none; }
>
> thanks Christopher.  that worked great.
>
> what's the difference between adding this CSS rule to either
> common.css or screen.css (and is there a reason i would or
> would not want to add this rule to both files)?
>
> also, does it matter where in the .css file i place this rule
> (is the whole .css file interpreted prior to it being
> "executed")?
>
>  -- david


Hey David,
Honestly, as long as it works, it doesn't really matter which css file
you put it in.  The 'C' in CSS is for 'Cascading', and is designed to
be flexible; you can have multiple files (as you see in your theme,
and they're chained together). The only caveat is that a style later
on in the chain can override a similar style higher in the chain.
This can have interesting repercussions when laying out a page (when
some style element doesn't do what you expect it to do).

As you get into css, there are a few really nice tools to help you.
One of the most popular is the Web Developer" plugin for Firefox
(https://addons.mozilla.org/en-US/firefox/addon/60).  Once installed,
select "View Style Information" from the the 'CSS' menu, then mouse
over elements on your page, and you can see what style is applying to
that particular element.

Hope this helps...

-Rick




More information about the Moin-user mailing list