Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: Gas gauge ??

by synistar (Pilgrim)
on Jan 08, 2004 at 22:28 UTC ( [id://319971]=note: print w/replies, xml ) Need Help??


in reply to 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.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Gas gauge ??
by peterr (Scribe) on Jan 09, 2004 at 04:39 UTC
    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

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://319971]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found