How do I place a footer after many absolute DIVs ???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pamelafluente@libero.it

    #1

    How do I place a footer after many absolute DIVs ???

    Dears,

    I'd like to know the cleanest solution for the following problem.
    I want to insert some CSS/htm after a long vertical column
    of DIVs absolutely positioned.

    Since this code is generated automatically by a streamwriter, I am
    looking for the cleanest and simplest solution possible.

    I would like:
    - No reference to external stylesheet
    - No solution where I have to write something "before and after" some
    other code. The code should be in on place only, possibly at the end of
    the page.

    Thank you very much,

    Pam

    ----------------------------------------------------------------------------------

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    <html>

    <head>
    <meta http-equiv="content-type" content="text/html;charset=UT F-8">
    <style type="text/css" media="screen">
    ..c0bg{position :absolute...
    ..c0fg{position :absolute...

    ..... A lot DIVs here in a long vertical column ...
    .... All DIVs absolutely positioned

    <div class=c3bg style="top:...
    <div class=c3bg style="top:...


    Q. How do I place the following at the bottom of the page ?

    <br><p><b><fo nt face="Tahoma" size="2" color="#99CCFF" >Page
    automatically generated on ... </font></a></font></b></p>

    </body>
    </html>

  • David Dorward

    #2
    Re: How do I place a footer after many absolute DIVs ???

    pamelafluente@l ibero.it wrote:
    I'd like to know the cleanest solution for the following problem.
    I want to insert some CSS/htm after a long vertical column
    of DIVs absolutely positioned.
    Then you've go problems - unless you know the height of the column (and can
    absolutely position the other content), then you've no way of knowing
    where "after" is.
    <div class=c3bg style="top:...
    <div class=c3bg style="top:...
    On the subject of which - how do you know where "after" is for the second of
    those divs? (Hint: The user might change their font size).

    --
    David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    • pamelafluente@libero.it

      #3
      Re: How do I place a footer after many absolute DIVs ???

      Hi David,

      As to fonts, No the user cannot change sizes. Everything is done
      absolutely with pixel precision. Fonts are fixed defined in pixels.
      This is a very precise layout (enterprise report). User cannot change
      it. User can only interact with it with some onclick onmousedown
      events.

      I thought that with a mix of Javascript (to retrieve the end of the
      document)
      and CSS this could be done.

      (I could keep track of the last pixel written programmaticall y, but, if
      possible, I would like to avoid that complication.)

      I would prefere something self contained based on CSS (and possibly
      javascript, if necessary)

      -Pam


      David Dorward ha scritto:
      pamelafluente@l ibero.it wrote:
      >
      I'd like to know the cleanest solution for the following problem.
      I want to insert some CSS/htm after a long vertical column
      of DIVs absolutely positioned.
      >
      Then you've go problems - unless you know the height of the column (and can
      absolutely position the other content), then you've no way of knowing
      where "after" is.
      >
      <div class=c3bg style="top:...
      <div class=c3bg style="top:...
      >
      On the subject of which - how do you know where "after" is for the second of
      those divs? (Hint: The user might change their font size).
      >
      --
      David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
      Home is where the ~/.bashrc is

      Comment

      • Chris F.A. Johnson

        #4
        Re: How do I place a footer after many absolute DIVs ???

        On 2006-08-20, pamelafluente@l ibero.it wrote:
        Hi David,
        >
        As to fonts, No the user cannot change sizes. Everything is done
        absolutely with pixel precision.
        That is almost always a mistake.
        Fonts are fixed defined in pixels. This is a very precise layout
        (enterprise report). User cannot change it. User can only interact
        with it with some onclick onmousedown events.
        The user can always change it, unless you have some way of
        absolutely controlling the users' browser and environment.

        --
        Chris F.A. Johnson <http://cfaj.freeshell. org>
        =============== =============== =============== =============== =======
        Author:
        Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

        Comment

        • Nije Nego

          #5
          Re: How do I place a footer after many absolute DIVs ???

          On 20 Aug 2006 03:17:54 -0700, pamelafluente@l ibero.it wrote:
          User cannot change
          it.
          You'd be suprised!

          --
          buy, bought, bye

          Comment

          • pamelafluente@libero.it

            #6
            Re: How do I place a footer after many absolute DIVs ???

            As to fonts, No the user cannot change sizes. Everything is done
            absolutely with pixel precision.
            >
            That is almost always a mistake.
            Agree with that from the perspective of a web artist. My perspective is
            that
            of a document prepared in a page setter (like quark Xpress) and
            outputted to web.
            There are many other things (pictures, label, text) to match: so
            precision is a feature.
            Fonts are fixed defined in pixels. This is a very precise layout
            (enterprise report). User cannot change it. User can only interact
            with it with some onclick onmousedown events.
            >
            The user can always change it, unless you have some way of
            absolutely controlling the users' browser and environment.
            That I have just tried. Changing the font size from the menu has no
            effects (tried with IE).

            Thanks for the advice. If all of you experts think there is no clean
            solution in js/css, I will resort
            to compute the last div position programmaticall y. Let me know...

            -Pam

            Comment

            • pamelafluente@libero.it

              #7
              Re: How do I place a footer after many absolute DIVs ???


              Nije Nego ha scritto:
              On 20 Aug 2006 03:17:54 -0700, pamelafluente@l ibero.it wrote:
              >
              User cannot change
              it.
              >
              You'd be suprised!
              eh? I do not want surprises. Tell me if there is anything I should take
              care of :)

              -Pam
              >
              --
              buy, bought, bye

              Comment

              • David Dorward

                #8
                Re: How do I place a footer after many absolute DIVs ???

                pamelafluente@l ibero.it wrote:

                Don't top post.
                As to fonts, No the user cannot change sizes.
                Wrong. The user can always change the font sizes.
                Everything is done absolutely with pixel precision.
                Almost always a mistake on the WWW.
                Fonts are fixed defined in pixels.
                Which will stop the user from resizing the text ... if (and only if) they
                use Internet Explorer ... and if (and only if) they don't use a custom
                style sheet ... and if (and only if) they don't tell their browser to
                ignore font size information from websites ... and if (and only if) they
                don't have a bookmarklet to zap font size information ... and ... and ...
                and.


                --
                David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
                Home is where the ~/.bashrc is

                Comment

                • pamelafluente@libero.it

                  #9
                  Re: How do I place a footer after many absolute DIVs ???

                  David Dorward ha scritto:
                  pamelafluente@l ibero.it wrote:
                  >
                  Don't top post.
                  Do not understand the meaning of "top post". What does that mean?
                  Sorry if I have done something wrong (I use Google to post).
                  >
                  As to fonts, No the user cannot change sizes.
                  >
                  Wrong. The user can always change the font sizes.
                  >
                  Everything is done absolutely with pixel precision.
                  >
                  Almost always a mistake on the WWW.
                  Answered above.
                  >
                  Fonts are fixed defined in pixels.
                  >
                  Which will stop the user from resizing the text ... if (and only if) they
                  use Internet Explorer ... and if (and only if) they don't use a custom
                  style sheet ... and if (and only if) they don't tell their browser to
                  ignore font size information from websites ... and if (and only if) they
                  don't have a bookmarklet to zap font size information ... and ... and ...
                  and.
                  Good to know that. The pages are web rendering that try to clone
                  pages made with a page setter. The user should not have interest to
                  spoil
                  his layout work, done on the page setter.

                  By the way is there some tag I can insert to avoid some of these
                  problems?
                  >
                  >
                  --
                  David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
                  Home is where the ~/.bashrc is
                  -Pam

                  Comment

                  • David Dorward

                    #10
                    Re: How do I place a footer after many absolute DIVs ???

                    pamelafluente@l ibero.it wrote:
                    David Dorward ha scritto:
                    >pamelafluente@l ibero.it wrote:
                    >>
                    >Don't top post.
                    >
                    Do not understand the meaning of "top post". What does that mean?
                    http://www.google.com/search?q=%22top%20post%22 - first hit
                    Good to know that. The pages are web rendering that try to clone
                    pages made with a page setter. The user should not have interest to
                    spoil his layout work, done on the page setter.
                    But they might have interest in having the text large enough to read. Or
                    they might have a minimum font size set.
                    By the way is there some tag I can insert to avoid some of these
                    problems?
                    No.


                    --
                    David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
                    Home is where the ~/.bashrc is

                    Comment

                    • pamelafluente@libero.it

                      #11
                      Re: How do I place a footer after many absolute DIVs ???

                      Do not understand the meaning of "top post". What does that mean?Ah I see. That stuff "David Dorward ha scritto:" is inserted
                      automatically by Google. Perhaps they want all posters to look "idiot".


                      As to the definition:
                      "This term is generally used pejoratively with the implication that the
                      offending person is a newbie, a Microsoft addict (Microsoft mail tools
                      produce a similar format by default), or simply a
                      common-and-garden-variety idiot.",

                      I would be curious to know in which category I could fall according to
                      your opinion :)
                      But they might have interest in having the text large enough to read. Or
                      they might have a minimum font size set.
                      They can be set it in the Designer. There are many elements whose
                      position cannot
                      be jeopardized (like a magazine page) otherwiae the report become a
                      mess. It's not an artistic web page, it's a precisely designed
                      enterprise report.
                      >
                      By the way is there some tag I can insert to avoid some of these
                      problems?
                      >
                      No.
                      :(

                      By the way, nice blog. I feel honored to be helped by someone
                      contributing to the css3 spec.

                      Ciao,

                      -Pam

                      Comment

                      • Nije Nego

                        #12
                        Re: How do I place a footer after many absolute DIVs ???

                        On 20 Aug 2006 04:22:16 -0700, pamelafluente@l ibero.it wrote:
                        Nije Nego ha scritto:
                        >
                        >On 20 Aug 2006 03:17:54 -0700, pamelafluente@l ibero.it wrote:
                        >>
                        >>User cannot change
                        >>it.
                        >>
                        >You'd be suprised!
                        >
                        eh? I do not want surprises. Tell me if there is anything I should take
                        care of :)
                        >
                        -Pam
                        >
                        >>
                        >--
                        >buy, bought, bye
                        When it comes to www - the only way to protect your design (in graphic
                        point of view), is to upload it as graphic file.

                        This goes for font sizes as well.

                        And, even so, user has the last word, he can choose not to view images.

                        --
                        buy, bought, bye

                        Comment

                        • Stephen Poley

                          #13
                          Re: How do I place a footer after many absolute DIVs ???

                          On 20 Aug 2006 04:37:02 -0700, pamelafluente@l ibero.it wrote:
                          >Good to know that. The pages are web rendering that try to clone
                          >pages made with a page setter. The user should not have interest to
                          >spoil his layout work, done on the page setter.
                          >
                          >By the way is there some tag I can insert to avoid some of these
                          >problems?
                          If you have a genuinely good reason for maintaining a completely fixed
                          layout (it does happen occasionally - I can't judge from your post
                          whether this is the case here) then the best approach is probably to
                          provide a PDF document to the reader.

                          Or you might provide two versions: a flexible HTML layout for easy
                          on-screen reading and a PDF for producing nice printed copies.

                          --
                          Stephen Poley

                          Deze pagina bestaat niet of is niet meer beschikbaar. Oude XS4ALL-homepages zijn soms nog terug te vinden via webarchieven.

                          Comment

                          • pamelafluente@libero.it

                            #14
                            Re: How do I place a footer after many absolute DIVs ???

                            If you have a genuinely good reason for maintaining a completely fixed
                            layout (it does happen occasionally - I can't judge from your post
                            whether this is the case here) then the best approach is probably to
                            provide a PDF document to the reader.
                            We already do. But enterprises want web pages mostly.
                            >
                            Or you might provide two versions: a flexible HTML layout for easy
                            on-screen reading and a PDF for producing nice printed copies.
                            The relative positioning is not possible in my specific context, where
                            the precise relative position of several items of different nature is
                            crucial.

                            I know that if you could see all the code generated you would have some
                            tons of criticism, but I have to balance a lot of other things and
                            considerations. This is not a page manually created, but an attempt to
                            render as close as possible a design made in a composer.

                            There are also interactivity problem as I have to handle the click on
                            each cell. and there could be thousands of cell arranged in any
                            possible layout, not necessarily "tables".

                            Cells can have pictures and alarms inside. There can be label
                            superposed precisely on charts,... So a mess.

                            I am always trying to do the best compromise between many factors.

                            You are like artists. It's more less like telling Michelangelo to go
                            buy a paint at a shop. But most people are not Michelangelo, ... and
                            they do have to go buy it to the shop...

                            I bet 95% of you (in this group) would throw Front Page directly in the
                            dubstin, but nevertheless it's an indispensable tool to million of
                            persons who focus their life on other things (like money for instance).

                            I understand all the instances of you artists, and I try to get as
                            close as possible, because I admire you, but on the other hand must do
                            fight with a lot of other factors...

                            -Pam

                            Comment

                            • David Dorward

                              #15
                              Re: How do I place a footer after many absolute DIVs ???

                              pamelafluente@l ibero.it wrote:
                              Do not understand the meaning of "top post". What does that mean?
                              >>
                              >http://www.google.com/search?q=%22top%20post%22 - first hit
                              >
                              Ah I see. That stuff "David Dorward ha scritto:" is inserted
                              automatically by Google. Perhaps they want all posters to look "idiot".
                              Yes, but there isn't any need to put the entire response above it.
                              As to the definition:
                              "This term is generally used pejoratively with the implication that the
                              offending person is a newbie, a Microsoft addict (Microsoft mail tools
                              produce a similar format by default), or simply a
                              common-and-garden-variety idiot.",
                              >
                              I would be curious to know in which category I could fall according to
                              your opinion :)
                              Newbie (to Usenet), in a non-pejorative fashion.
                              >But they might have interest in having the text large enough to read. Or
                              >they might have a minimum font size set.
                              >
                              They can be set it in the Designer.
                              I mean set in their browser (and it would apply to all websites).
                              There are many elements whose position cannot be jeopardized (like a
                              magazine page) otherwiae the report become a
                              mess. It's not an artistic web page, it's a precisely designed
                              enterprise report.
                              Perhaps, but HTML/CSS isn't a very good tool for achieving that type of
                              result.

                              --
                              David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
                              Home is where the ~/.bashrc is

                              Comment

                              Working...