Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    215
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Footer positioning

    Hello all. I am creating a timecard system in which a signature of some sort is needed on all timecards. How would I go about forcing a signature to print at the bottom of the page no matter how much or little information is above it? Using a table at 100% is not an option for me since the data may span multiple pages.

    Actually, let me explain this a little better. The way the system works is that it pulls all timecards to print at once, and I am using page breaks to separate each timecard for printing. So, with this, I have a feeling that CSS positioning won't work either.

    Thanks inadvance,

    Parallon
    Last edited by parallon; 03-30-2007 at 11:54 PM. Reason: Added more detail...

  • #2
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,070
    Thanks
    4
    Thanked 8 Times in 8 Posts
    if you are using asp to loop through the timecards and print them then you would add the signature at the bottom of the loop before you tell it to move to the next record

    For each loop Example
    Code:
    For each record in YourRecords
          'display your timecard
          Response.Write "the signature goes here"
    Next
    do while loop example
    Code:
    Do While Not oRs.EOF
          'display your timecard
          Response.Write "the signature goes here"
          oRs.MoveNext
    Loop

  • #3
    Regular Coder
    Join Date
    May 2005
    Posts
    215
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Thank you, and I understand this, but will it ensure that it is at the bottom of the page? Remember I am dynamically creatint the table based on the number of records, so sometimes there may be 5 records or 25 records. I would like the signature to always be the same distance from the bottom, right-hand corner.

    I hope that this makes sense,

    Parallon

  • #4
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,070
    Thanks
    4
    Thanked 8 Times in 8 Posts
    Whenever you are going to do the page break do the signature and then do the break. If you put the signature inside a div element with a CSS class that sets the absolute positioning, you should always have it in the same place.

  • #5
    Regular Coder
    Join Date
    May 2005
    Posts
    215
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Thank you. That makes total sense. I will give it a try! ;o)

    Parallon


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •