[Mediawiki-l] Help controlling styles on top tabs

Samuel Richardson sam at richardson.co.nz
Thu Apr 17 09:50:48 UTC 2008


A quick look at the monobook template and it appears that the li and
the a tags are set to display : inline; (li's by a rule, a's by
default) so width/height won't have any effect on them (or it will be
unpredictable across many browsers)

If you're trying to add more vertical spacing above and below the text
you could try playing around with line-height, margin left and right
does apply to inline elements so you could use that to increase
horizontal spacing)

On Thu, Apr 17, 2008 at 5:16 PM, Tim Ware <tim at hyperarts.com> wrote:
>
>  On Apr 16, 2008, at 11:36 PM, Samuel Richardson wrote:
>
>  > Tim,
>  >
>  > You might have some luck if you install Firebug for Firefox. I've been
>  > developing a custom theme for MediaWiki myself (see it in action
>  > here: http://www.melpedia.com.au
>  > ) and Firebug has been invaluable for tracking down rogue styles.
>  >
>  > Thanks,
>  >
>  > Samuel Richardson
>  >
>  > T: (0405) 472 748
>  >
>  > richardson.co.nz
>  >
>  > On 17/04/2008, at 4:29 PM, Tim Ware wrote:
>
>  I am using Firebug (great tool!), but still no luck at all. It's weird
>  because this CSS rule:
>
>  #p-cactions li a { .... }
>
>  controls everything else with those tabs, but I can't control the
>  width or height.
>
>  Help!
>
>  Thanks.
>
>  Tim
>
>
>
>  >
>  >
>  >> Using MW v.1.12
>  >>
>  >> How can I style the top tabs on the wiki, the ones with the boxes
>  >> around them (eg page, discussion)?
>  >>
>  >> I need to set the widths and margins and can't find the style that
>  >> controls them in main.css.
>  >>
>  >> Thanks!
>  >>
>  >> Tim
>  >>
>  >>
>  >>
>  >>
>  >>
>  >> ......................................................... ! .............................................................
>  >> Tim Ware .. HyperArts .. 201 4th Street, Ste 404 .. Oakland CA 94607
>  >>       t: (510) 339-6084 .. f: (510) 339-6086 .. e: tim at hyperarts.com
>  >> http://www.hyperarts.com
>  >> Map
>  >>
>  >>
>  >>
>  >> _______________________________________________
>  >> MediaWiki-l mailing list
>  >> MediaWiki-l at lists.wikimedia.org
>  >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>  >
>  >
>  > _______________________________________________
>  > MediaWiki-l mailing list
>  > MediaWiki-l at lists.wikimedia.org
>  > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
>  _______________________________________________
>  MediaWiki-l mailing list
>  MediaWiki-l at lists.wikimedia.org
>  https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



-- 
Samuel Richardson
Freelance Web Developer
www.richardson.co.nz | 0405 472 748



More information about the MediaWiki-l mailing list