#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    1
    Rep Power
    0

    Reposition div in media=print css


    In the media=print style sheet I want to change the location
    of the div containing the material to be printed.
    Using this in the print style sheet does not move the div.
    #divname {position: absolute; left:50px; top:100px; width:200px;}

    Can a div be moved with a new style sheet.
  2. #2
  3. No Profile Picture
    The Forest
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    321
    Rep Power
    13
    Code:
    @media print {
    #divname {
    	position: absolute;
    	left: 50px;
    	top: 100px;
    	width: 200px;
    }
    }
    My guess is you're not importing the stylesheet correctly. The above is an alternate solution that goes in the stylesheet.

    Hope that helps!

    Happy coding!

IMN logo majestic logo threadwatch logo seochat tools logo