CSS LINK DYNAMIC

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manu

    CSS LINK DYNAMIC

    Hello,
    i ve again a little problem with my dynamic web site...

    i need to insert a dynamic link (css) into my body ! Why ? because i've a
    html template and i insert into the body a dynamic contains. And this
    contain i knowless about it. So when i ve a web page with a module need a
    css for it, il insert it in the body because the other part of my template
    is locked in write.

    look :
    (...)
    <head>
    (...)
    <link rel='stylesheet ' href='"dwtdata/general/template.css' type='text/css'>
    </head>
    <body>
    (...)
    <link rel='stylesheet ' href='"dwtdatad yn/module002/template.css'
    type='text/css'>
    <!-- I need to insert it now, in the body is not possible ! -->
    (...)
    <table> etc etc
    (...)
    <link rel='stylesheet ' href='"dwtdatad yn/module015/template.css'
    type='text/css'>
    <!-- I need to insert it now, in the body is not possible ! -->
    (...)
    <table> etc etc
    (...)
    </body>
    </html>

    someone have a solution ?

    manu




  • Stephen Poley

    #2
    Re: CSS LINK DYNAMIC

    On Mon, 11 Aug 2003 12:16:06 +0200, "Manu" <manu@cyklades. com> wrote:
    [color=blue]
    >i need to insert a dynamic link (css) into my body ! Why ? because i've a
    >html template and i insert into the body a dynamic contains. And this
    >contain i knowless about it. So when i ve a web page with a module need a
    >css for it, il insert it in the body because the other part of my template
    >is locked in write.[/color]

    You don't say what technology you're using. Obvious possibilities:

    - include links to all your CSS stylesheets in the header. If you're
    using unique class names that shouldn't be a problem, though rendering
    might get a bit slow if you have a large number of them.

    - write your header to one buffer, the body to another, and write both
    buffers out at the end.

    --
    Stephen Poley


    Comment

    Working...