Redesign of SxS site in the works
David A. Bandel
david
Mon May 17 11:29:11 PDT 2004
On Mon, 01 Apr 2002 19:19:03 -0300
begin "Federico Voges" <fvoges at intrasoft.com.ar> spewed forth:
[snip]
>
> I know I might be getting a bit off topic with this, but I think it's
> worth giving it a thought.
> You can't use scripting because of the mirrors. BUT, you can still use
> scripting to generate static HTML specially articles/steps.
>
> Right now, if you want to change anything in the style of the pages,
> you have to edit ALL of them. It's a real pain.
>
> Now, if you use some kind of HTML neutral markup (be it: XML, a HTML
> subset, or whatever you like), you can use a script with a template to
> generate all the static pages. It might be even simplify the steps
> author's work.
>
This is what CSS is all about. you have a linux-sxs.css with some
declared values, like:
html.index { color: #009 ; background-color: #ffc }
body.index { color: #009 ; background-color: #ffc }
body.pananix { color: #009 ; background-color: #ffc ; text-align: left ;
background-image: url(http://www.pananix.com/images/chiricano2.gif) ;
background-position: top right ; background-repeat: no-repeat ;
background-attachment: fixed } table.index { color: #009 ; text-align:
center ; width: 100% } td.index { color: #009 ; text-align: center }
td.linkdex { color: #009 ; text-align: center ; word-spacing: 1em }
tr.index { color: #009 ; text-align: center }
h1.index { color: darkblue ; text-align: center }
h2.index { color: darkblue ; text-align: center }
h2.rtext { color: red ; text-align: center }
.pananix { color: #009; text-align: left }
.index { color: #009; text-align: center }
p.copyright { text-align: center; font-size: -8 }
p.copyright:after { content: "Copyright? 1999-2002 Pananix, SA, All Rights
Reserved." } A:link { color: #0000EF }
A:visited { color: #51188E }
A:active ( color: #36f }
Then, each page uses markups like:
<body class="pananix">
and it uses the body.pananix markup for the entire page from the above
definition.
Ciao,
David A. Bandel
--
Focus on the dream, not the competition.
-- Nemesis Racing Team motto
More information about the Linux-users
mailing list