[pmwiki-users] Site.SiteFooter, 1px Solid Border-Top

Kathryn Andersen kat_lists at katspace.org
Thu Mar 15 20:20:19 CDT 2012


On Thu, Mar 15, 2012 at 05:19:34AM -0600, Jasyn Jones wrote:
> I have a Site.SiteFooter.
> 
> I would like to create a 1px tall #336633 border at the top of the footer (right now I've got a ---- or <hr>). I can't see that the pagefooter has any way to do this.
> 
> I tried putting some CSS in pub/css/Site.SiteFooter.css:
> 
> body {
>   border-top:1px #336633 solid;
> }
> 

This won't work for a couple of reasons:
1) Site.SiteFooter.css won't be called, because it's not a page or group
name, it's *included* into every page.
2) putting your border on the body tag won't give you what you want.

To solve the first issue, put the CSS into pub/css/local.css; that will
be included on every page.
To solve the second issue, use a div with a class in your SiteFooter,
and reference that class in the CSS.  For example...

In SiteFooter:
>>sitefooter<<
... footer content ...
>><<

In local.css:
.sitefooter {
    border-top:1px #336633 solid;
}

That should work.

K.A.
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.org>
/      \    | 
\_.--.*/    | <http://kerravonsen.dreamwidth.org/>
      v     | <http://kerravonsen.redbubble.com/>
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe



More information about the pmwiki-users mailing list