[Pmwiki-users] CSS layout in pmwiki-0.6

John Rankin john.rankin
Thu Jan 15 16:36:57 CST 2004


On Friday, 16 January 2004 12:13 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
On Fri, Jan 16, 2004 at 11:42:23AM +1300, John Rankin wrote:
> On Friday, 16 January 2004 4:32 AM, Patrick R. Michaud wrote:
> > The basic page layout is handled by tables--all of the cells described in
> > my previous message are table cells, except for "wikitext" which is a 
> > <div>.  However, none of the <table> or <td> tags have width 
> > attributes in them--the layout relies on the CSS to provide that 
> > information.
>
> Lead me by the hand a little, please.
> 
> 1. What is your reason for using a table cell for the left and right 
> menu spaces, rather than <div>?

Pm's weak reply:
  ...because most other commercial internet sites still use table cells
and I trust that more browsers will be able to "do the right thing" with them.

The real truth:
  ...because I couldn't figure out how to get a <div> to do what I wanted
it to do--namely to appear correctly on either the left or right with
the text wrapping appropriately.  But if someone wants to lead me by the
hand a little we can change it.  :-)

===
I think you need something like:

div#leftmenu {
  float: left;
  width: 120px;
}
div#body {
  margin-left: 150px;
}
div#footer {
  clear: left;
}
===

> 2. Is it possible to set, say, a $SideWidth once in local.php and have the
> style sheet use it in all the places it needs to? I tried to do this once and
> couldn't get the variable value to "take".

I'm not sure exactly what you want to accomplish with $SideWidth, but 
$BodyWidth and $BodyLeft are both eliminated in the new layout scheme, 
leaving it to the CSS files to specify these values if desired.  
(These really only appeared in the CSS sheet anyway.)  Maybe if you
can tell me what you want $SideWidth to accomplish, I can tell you how
it can (or cannot) be done in the new layout scheme.

===
Assuming your $BodyLeft is the width of the side menu, then both it and
$BodyWidth are used in many places in the layout, to define table or 
column widths. The tables and columns might have other different layout
attributes, and hence use different styles, in different places

So I don't understand how to define once "this is how wide the body is,
this is how wide the side menu is" and have it change all the affected
layout elements. Of course, that's what styles are for, I just can't see
how to do it right now.

OTOH, amybe I ought to wait and look when you release the beta... then
if necessary ask a question :)

JR
===

Pm

--
Pmwiki-users mailing list
Pmwiki-users at pmichaud.com
http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com






More information about the pmwiki-users mailing list