in reply to Re: Re: Re: Re: Gas gauge ??
in thread Gas gauge ??

Just a quick side note. The layer tag is an old proprietary Netscape tag. It did not make it into HTML 4 or XHTML so it should be avoided. Most of what it did can be done with CSS instead. However there are ways to support old pages using the layer tag by using Javascript here is an example

Thanks for the tips on using layers. I notice the URL you supplied mentioned the "DIV" tag also. Some neat tricks with JS. I would hope I don't have to rely on JS to change the "DIV" contents for testing this. Surely objects, properties, etc can be changed by Perl instead of Javascript ? :)

Peter

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Gas gauge ??
by synistar (Pilgrim) on Jan 16, 2004 at 14:31 UTC

    Actually you should be able to do most of what was possible with the layer tag with CSS. Plus, CSS does a whole lot more.

    You can effectively use Perl to handle just plain HTML content and use CSS to do all your layout and effects. If done carefully you can re-skin/re-design your site by only changing the CSS (never having to touch the Perl or HTML again).

    Take a look at these sites:

    The first two have lots of tips and examples on CSS layout. The last one is a showcase of layouts all using exactly the same HTML code (the only thing different from page to page is the CSS).

    If you really wanted to get wild you could set up a perl script to dynamically generate your CSS. (But that defeats one of the speed advantages of CSS - local caching).

      Hi,

      Thanks very much for those links to CSS, very interesting indeed. The site does use a CSS now, so I will see how it an all fit together.

      Peter