Can CSS specify generic content?

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

    Can CSS specify generic content?

    Is there any way to code an external style sheet to ensure that all pages
    opening with a reference to that style sheet include generic content such as
    headers, logos, taglines, universal navigation links, etc...?

    While limiting the unique content of the page making the external style
    sheet reference to a relatively sized cell that includes a scrollbar when
    the content overflows the bounds of the cell...?

    Thanks in Advance...

    =~=
    Timothy Casey
    South Australia
    worloq@iprimus. com.au

    Formerly:
    casey@smart.net .au

    Phenomenal Speed Comprehension:
    Discover the World's most advanced speed reading application at:



  • brucie

    #2
    Re: Can CSS specify generic content?

    in post: <news:40b44e4f_ 1@news.iprimus. com.au>
    Timothy Casey <worIoq@iprimus .com.au> said:
    [color=blue]
    > Is there any way to code an external style sheet to ensure that all pages
    > opening with a reference to that style sheet include generic content such as
    > headers, logos, taglines, universal navigation links, etc...?[/color]

    possible but with limited browser support and thats not what CSS is for.
    CSS is for attaching style to structured documents.

    use your favorite server side language to stick common goodies into each
    requested page before it gets sent to the visitor.
    [color=blue]
    > a relatively sized cell that includes a scrollbar when the content
    > overflows the bounds of the cell...?[/color]

    you can do it but you really need to think about if you should. browsers
    already have two scrollbars built in.

    --
    b r u c i e


    Comment

    • Andrew Thompson

      #3
      Re: Can CSS specify generic content?

      On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
      [color=blue]
      > Sub: Can CSS specify generic content?[/color]

      No. You need server-side scripting for that.

      --
      Andrew Thompson
      http://www.PhySci.org/ Open-source software suite
      http://www.PhySci.org/codes/ Web & IT Help
      http://www.1point1C.org/ Science & Technology

      Comment

      • Timothy Casey

        #4
        Re: Can CSS specify generic content?

        Well, here's the thing, I would rather not have the extra scroll bar, so;
        It would be great if we could get the browser's scrollbar to move all the
        unique content instead of duplicating scrollbars as seen in frames - while
        all the generic content remains static and unmoved by scrolling....

        This can be done with images in CSS by setting the background-attachment
        property to "fixed". However, embedding text and Menus just doesn't work in
        this case. Fixing an SSI within an absolute span seems like the go here, but
        I'd rather minimise duplicated code if possible...

        As for favourite server side language - I'd have one if there were any that
        can be read by a WYSIWYG HTML editor and applied to test view. Any
        suggestions?

        Thanks in Advance...

        =~=
        Timothy Casey
        South Australia
        worloq@iprimus. com.au

        Formerly:
        casey@smart.net .au

        Phenomenal Speed Comprehension:
        Discover the World's most advanced speed reading application at:




        "brucie" <shit@bruciesus enetshit.info> wrote in message
        news:2hj20kFdf2 saU1@uni-berlin.de...[color=blue]
        > in post: <news:40b44e4f_ 1@news.iprimus. com.au>
        > Timothy Casey <worIoq@iprimus .com.au> said:
        >[color=green]
        > > Is there any way to code an external style sheet to ensure that all[/color][/color]
        pages[color=blue][color=green]
        > > opening with a reference to that style sheet include generic content[/color][/color]
        such as[color=blue][color=green]
        > > headers, logos, taglines, universal navigation links, etc...?[/color]
        >
        > possible but with limited browser support and thats not what CSS is for.
        > CSS is for attaching style to structured documents.
        >
        > use your favorite server side language to stick common goodies into each
        > requested page before it gets sent to the visitor.
        >[color=green]
        > > a relatively sized cell that includes a scrollbar when the content
        > > overflows the bounds of the cell...?[/color]
        >
        > you can do it but you really need to think about if you should. browsers
        > already have two scrollbars built in.
        >
        > --
        > b r u c i e
        >
        >[/color]


        Comment

        • brucie

          #5
          Re: Can CSS specify generic content?

          in post: <news:40b4784c$ 1_1@news.iprimu s.com.au>
          Timothy Casey <worIoq@iprimus .com.au> said:
          [color=blue]
          > Well, here's the thing,[/color]

          heres another thing:

          How am I supposed to post my replies in a newsgroup?:

          [color=blue]
          > I would rather not have the extra scroll bar,[/color]

          then don't put one in with css. the browser scrollbars will appear if
          needed. try to avoid a horizontal scrollbar as long as you can.
          [color=blue]
          > It would be great if we could get the browser's scrollbar to move all the
          > unique content instead of duplicating scrollbars as seen in frames - while
          > all the generic content remains static and unmoved by scrolling....[/color]

          use position:fixed. not supported by IE but there is a workaround:

          [color=blue]
          > This can be done with images in CSS by setting the background-attachment
          > property to "fixed". However, embedding text and Menus just doesn't work in
          > this case.[/color]

          position:fixed applies to all elements, not just images.
          [color=blue]
          > Fixing an SSI within an absolute span seems like the go here, but
          > I'd rather minimise duplicated code if possible...[/color]

          not really an issue if you're using SSIs to stick common markup in
          before sending and the size of the markup is usually (but not always) a
          lot less than the other page content such as images. you can further
          reduce the size before sending it by gziping. caching directives can
          suggest not asking for it again.

          --
          b r u c i e


          Comment

          • brucie

            #6
            Re: Can CSS specify generic content?

            in post: <news:40b4784c$ 1_1@news.iprimu s.com.au>
            Timothy Casey <worIoq@iprimus .com.au> said:
            [color=blue]
            > This can be done with images in CSS by setting the background-attachment
            > property to "fixed". However, embedding text and Menus just doesn't work in
            > this case.[/color]

            i think i misread this bit in my previous reply. if you're talking about
            sticking in content using CSS then don't. it is not a solution.

            --
            b r u c i e


            Comment

            • Mikko Rantalainen

              #7
              Re: Can CSS specify generic content?

              Andrew Thompson / 2004-05-26 11:27:[color=blue]
              > On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
              >[color=green]
              >>Sub: Can CSS specify generic content?[/color]
              >
              > No. You need server-side scripting for that.[/color]

              It's also possible to use XHTML (or come up with your own XML
              markup!) and XSLT, if you want to go with client-side solution, but
              that is supported only by Mozilla and MSIE. Opera didn't have XSLT
              support last time I checked. In addition, XSLT has a bit steep
              learning curve.

              --
              Mikko

              Comment

              • Wolfgang Wildeblood

                #8
                Re: Can CSS specify generic content?

                Mikko Rantalainen <mira@st.jyu.fi > wrote:
                [color=blue]
                > Andrew Thompson / 2004-05-26 11:27:[color=green]
                > > On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
                > >[color=darkred]
                > >>Sub: Can CSS specify generic content?[/color]
                > >
                > > No. You need server-side scripting for that.[/color]
                >
                > It's also possible to use XHTML (or come up with your own XML
                > markup!) and XSLT, if you want to go with client-side solution, but
                > that is supported only by Mozilla and MSIE. Opera didn't have XSLT
                > support last time I checked. In addition, XSLT has a bit steep
                > learning curve.[/color]

                No need for learning XSLT just to do simple inclusions with XML. In
                theory, you can do it by defining a few entities. Implementation may
                not match theory.

                Comment

                • Timothy Casey

                  #9
                  Re: Can CSS specify generic content?


                  "Wolfgang Wildeblood" <wolfgangwildeb lood@yahoo.com. au> wrote in message
                  news:a9f17fcb.0 405262055.4082a 573@posting.goo gle.com...[color=blue]
                  > Mikko Rantalainen <mira@st.jyu.fi > wrote:
                  >[color=green]
                  > > Andrew Thompson / 2004-05-26 11:27:[color=darkred]
                  > > > On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
                  > > >
                  > > >>Sub: Can CSS specify generic content?
                  > > >
                  > > > No. You need server-side scripting for that.[/color]
                  > >
                  > > It's also possible to use XHTML (or come up with your own XML
                  > > markup!) and XSLT, if you want to go with client-side solution, but
                  > > that is supported only by Mozilla and MSIE. Opera didn't have XSLT
                  > > support last time I checked. In addition, XSLT has a bit steep
                  > > learning curve.[/color]
                  >
                  > No need for learning XSLT just to do simple inclusions with XML. In
                  > theory, you can do it by defining a few entities. Implementation may
                  > not match theory.[/color]

                  Can all this be set up to run server-side?

                  =~=
                  Timothy Casey
                  South Australia
                  worloq@iprimus. com.au

                  Formerly:
                  casey@smart.net .au

                  Phenomenal Speed Comprehension:
                  Discover the World's most advanced speed reading application at:



                  Comment

                  Working...