[thelist] Linking to CSS files (not) within the BODY element

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Wed Jun 7 01:21:01 CDT 2006


Hi,

includes somewhere in the BODY section. It works, but it's not
> correct XHTML. As I am willing to follow the standards, I would like
> to change the situation, but I don't know how.



You can split the header further. Let us assume you have a web form (.net)
and you have split it as follows:

Default.aspx
- header.ascx
- contents
- footer.ascx

You can further split header.ascx to

Header.ascx
- clientstyles.ascx (for importing different styles for each page)
- clientscripts.ascx (for importing different js for each page)
- metacontent.ascx (for setting a different title for each page)

Then give every page a unique enumeration number and pass this enum to
header, footer, clientstyle, clientscript, and metacontent subcomponents.

Although my example uses .net, it can be easily achived with classic asp,
jsp, php or any other server-side technology.

HTH,
-- 
Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/cre8/blog/
+> Going solo in Turkish: http://www.volkanozcelik.com/donkisot/
+> My projects/studies/trials/errors : http://www.sarmal.com/
+> Sardalya JavaScript Library: http://www.sarmal.com/sardalya/



More information about the thelist mailing list