+ Reply to Thread
Results 1 to 2 of 2

Thread: making it all proportionate

  1. #1
    bunglebrown is offline x10 Sophmore bunglebrown is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    157

    Exclamation making it all proportionate

    My page is made up of a series of small images (25x25) and I would like to make everything proportional to the page. I have done that using this (found on-line but altering slightly);

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script type="text/javascript">
    </script>
    <link href="Index.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="bg"><img src="Image.jpg" width="`2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""></div>
    
    <div id="bg2"><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""><img src="Image.jpg" width="2%" height="4%" alt=""></div>
    
    </body>
    
    </html>
    index.css
    Code:
    @charset "utf-8";
    /* ITB Style Sheet Suthor bo 2008*/
    
    <style type="text/css">
    /* pushes the page to the full capacity of the viewing area */
    html {height:100%;}
    body {height:100%; margin:0; padding:0;}
    /* prepares the background image to full capacity of the viewing area */
    #bg {position:relative; top:0; left:0; width:100%; height:100%; align:center}
    #bg2 {position:relative; top:25; left:0; width:100%; height:100%;}
    #bg3 {position:relative; top:50; left:0; width:100%; height:100%;}
    /* places the content ontop of the background image */
    #content {position:relative; z-index:1;}
    </style>
    <!--[if IE 6]>
    <style type="text/css">
    /* some css fixes for IE browsers */
    html {overflow-y:hidden;} {overflow:-x:hidden;}
    body {overflow-y:hidden;} {overflow-x:hidden;} 
    #bg {position:relative; top:0; left:0; z-index:-1;}
    #bg2 {position:relative; top:25; left:0; z-index:-1;}
    #bg3 {position:relative; top:50; left:0; z-index:-1;}
    #content {position:relative;}
    </style>
    <![endif]-->
    It works in Firefox perfectly but in Internet Explorer (at least IE7) and Safari it shifts some images to the next row. How can I get it to act the same as FF??
    Edit:
    I should add that at full screen for all browsers I want the pixels of each image to be 25x25 but to reduce with the window size.
    Last edited by bunglebrown; 08-27-2008 at 08:58 AM. Reason: Automerged Doublepost

  2. #2
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: making it all proportionate

    i noticed this
    Code:
    <div id="bg"><img src="http://forums.x10hosting.com/programming-help/Image.jpg" width="`2%" height="4%"
    there's a ` in the width property (could cause it to display differently in internet explorer.
    Last edited by xPlozion; 08-27-2008 at 06:14 PM.

+ Reply to Thread

Similar Threads

  1. Making Avatars
    By Conmiro in forum The Marketplace
    Replies: 6
    Last Post: 05-26-2008, 09:15 AM
  2. Money Making Sites
    By dWhite in forum Earning Money
    Replies: 9
    Last Post: 05-09-2008, 03:14 AM
  3. Making Money Idea 2 ways in one.
    By admintwo in forum Earning Money
    Replies: 6
    Last Post: 12-29-2007, 08:04 PM
  4. The Better Money Making Tutorial-Part1
    By nitekazap in forum The Marketplace
    Replies: 4
    Last Post: 10-24-2007, 09:03 AM
  5. Webdesign Xenon is making for me.
    By echo_unlimited in forum Graphics & Webdesign
    Replies: 5
    Last Post: 05-14-2006, 08:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers