Wml & CSS
Alvise Belotti <[email protected]> Wed, 14 Apr 2004 11:28:05 +0200
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I've encountered some troubles while using wml for writing css based pages.
The problem is that some wml modules don't support the ':a:' construct and
therefore don't permit the insertion of the class (or id) attribute.
For instance if you use the <page> tag there isn't a way to have <body
id="id">.
The same is valid for <grid>. As I wrote some time ago, it is not possible to
insert a class definition if you use <grid>, because wml strips attributes it
doesn't recognize when writing html pages
I wonder if it's possible to add the scheme used in wml::des::navbar to other
modules?
Example:
#use wml::std::page
#use wml::std::grid
<page color=none id="bd">
<grid>
<cell class="foo"><a href="bar">baz</a></cell>
</grid>
<grid>
<cell :a:class="foo"><a href="bar">baz</a></cell>
</grid>
<page_end>
<html>
<head>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" summary="">
<tr>
<td align="left" valign="top"><a href="bar">baz</a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" summary="">
<tr>
<td align="left" valign="top"><a href="bar">baz</a></td>
</tr>
</table>
</body>
</html>
Ciao, Alvise
--
+------------------------------------------------------------+
| Alvise Belotti [email protected] http://laventa.it |
| «La vera casa dell'uomo non è una casa, è la strada. |
| La vita stessa è un viaggio da fare a piedi». (B. Chatwin) |
| PGP Key = AD 85 93 92 A9 9C 93 14 9C 6B 3B 15 52 79 B8 BD |
+------------------------------------------------------------+
_____________________________________________________________________
Website META Language (WML) http://thewml.org
User Support Mailing List [email protected]
Automated List Manager [email protected]