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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Problem with zooming

    Hi guys. Im having this problem that if i zoom in or out of of the browser, the division inside the division does not move along with the image. here is my code
    Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="style/style.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    <div id = "aw">
    <div id="apDiv2">
    <h2>Login</h2>
    <?php
    
      if(isset($_REQUEST['error']))
      {
        echo '<script type="text/javascript">alert("Invalid Username or Password");</script>';
      }
    ?>
    <form action="check.php" method="post" name="login">
    
    Username <input type="text" name="user" /><br/>
    Password <input type="password" name="pass"/><br/>
    <input type="submit" value="login" /><br/>
    
    </form>
    </div>
    <div id="apDiv3">
      <p> some text here</p>
    </div>
    </div>
    <div id="apDiv1">
    <img src="image/hope page.jpg"/>
    </div>
    </body>
    </html>
    and this is the css
    Code:
    #apDiv1 {
    	text-align: center;
    }
    #apDiv2 {
    	text-align: center;
    	left: 827px;
    	top: 284px;
    	width: 178px;
    	position: absolute;
    	
    }
    #apDiv3 {
    	position:absolute;
    	text-transform: uppercase;
    	text-align: center;
    	left: 301px;
    	top: 546px;
    	height: 318px;
    	width: 621px;
    	
    }
    any help would be appreciated. xD

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Probably going to need a link to your site, since you have that image as part of the issue.

    But I would point out that the use of absolute positioning might be the culprit.
    Teed


  •  

    Posting Permissions

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