[pmwiki] [Pmwiki-users] Webmenu, FlexLayout, and CSS.
Bernhard.Weichel@t-online.de
Bernhard.Weichel
Fri Aug 15 03:00:18 CDT 2003
Robin wrote:
> Hey there, I've been playing with the layout of my wiki site, and have
> run into a few small issues with the use of FlexLayout and CSS. I
> don't know if these are inherent to the way things work, or if it is
> my quite limited understanding of CSS and HTML.
>
> Anyway, I'm thinking that it would be nice if we didn't have to have
> tables to do all the layout, but used CSS instead. The site that I am
> using as my guide tends to use <div> tags as its group forming things,
> and the CSS specifies in detail where those groups go. This allows for
> the effect I'm looking for, of a repeating background under the boxes.
> Hmm, this may not be so clear, have a look here: http://tony.rocks.cc
This site is really cool. I am not sure if position=absolute works on
any browser. But using <div> to group blocks is really great.
> I'm trying to acheive a similar effect, but can't do things such as
> specify where exactly things such as 'webmenu' and 'wikitext' go in
> order to ensure the background works OK.
In this case, you probably should keep the entire layout in hardcoded
php-files, which then can be included in the proper format strings:
$HandleBrowseFmt = array (
"headers:",
&$HTMLStartFmt,
&$HTMLTitleFmt,
&$HTMLBodyFmt,
&$PageHeaderFmt,
"file:Main_Browse.php"
&$PageFooterFmt,
&$HTMLEndFmt
);
The file Main_Browse.php may look like:
<div id="mypage"
<div id="wikimenu">
<?php PrintFmt($pagename, "wiki:\$Group.WebMenu Main.WebMenu");?>
</div>
<div id="textpage">
<?php PrintFmt($pagename, "function:PrintText");?>
</div>
</div>
Does that help in the right direction?
PmWiki is amazingly flexible in the approaches ...
Bernhard
More information about the pmwiki-users
mailing list