CSS on PHP exporting to a word document

Discussion in 'CSS' started by magnon, Mar 3, 2008.

  1. #1
    I'm having problems in positioning an image and a table when im exporting an it ta a word document.

    .pos {
    top:120pt;
    left:300pt;
    position:absolute;
    }

    this is the css code that i use...
    but it does not work...
    can anyone help...
    pealse...
     
    magnon, Mar 3, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I see two major problems with the small snippet of CSS code you provided.

    1.) pt is a unit of measurement best saved for text on the printed page, so you shouldn't be using it for general positioning.

    2.) Speaking of positioning, you shouldn't be using absolute positioning for your layout anyway.

    Unfortunately I can't say much more without seeing the complete code (bear in mind I'm going to be busy with code-rewrites for the next couple days, so I may not be able to get back to you right away).
     
    Dan Schulz, Mar 3, 2008 IP