css print

Posted on 2011-10-26
Last Modified: 2012-06-27

i wont to print a html page (it can be 1-20 paegs)  i hve 1 line that need to be on the top on each page i can use siv span center how i make it repite
Question by:yairab
    LVL 11

    Accepted Solution

    Check out this example:

    Is that what you're looking for? Note: This example places the text at the footer, so you could change bottom: 0; to top: 0;

    Author Comment


    thanks for replay

    i tray to do :       aString = aString &  "@media print {div.divFooter {position: fixed; top: 0;}}"

    <div class='divFooter'>xxxxxx</div>

    i dont know way it dosn't work for my i work with ie8 & FF (probly the last vertion)

    LVL 42

    Assisted Solution

    by:Rob Jurd, EE MVE
    try changing

    position: fixed


    position: absolute

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now