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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2005
    Location
    Fairbanks, Alaska
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Need Help: Image to Browser Project

    Here's the original plans:

    The image to browser project, while sounding simple, is anything but. It will require a lot of hours of coding the nearly identical tags over and over again, a countless numer of times (if you want to get technical…480,000 times). I’ll be surprised if I have fingers left when I’m done.

    So, what’s plan, you ask. Simple (or sounds it). I have an 800×600 resolution image of my good friend Skuld’s brand new SuSe desktop. The plan is to use 480,000 HTML div tags and 480,000 HTML style attributes (using only the width, height, and background-color styles) to recreate that image on a webpage, without using HTML’s img tag.

    Now the tools. I’m going to use a great open source everything editor called Notepad++, Fireworks MX 2004 to pull the hex for the color I need to code next, and last but not least, Firefox to monitor my progress.

    The task seems daunting yes, but in the end, I think it will be an acheivement of what a little time and hardwork can do.
    Okay, so I got around to start and I when I coded the first seven or so tags, they were vertical. I've messed around with them before and if I recall correctly, the only way to get the to go horizontal is through floating, but you can't float 800 times (at least I don't think you can), so I was wondering if anyone knew a better way to do this.

    I know this sounds really crazy, but I'm wanting to do this and I know it's possible, it will just take a lot of hard work and effort.

    If anyone has a suggestion, I'd appreciate it.

    As for the pic:

    http://jonathan.delphyfanclub.net/wp...etobroswer.png

    That's the link.

    Thanks again to anyone who can help!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    lol what exactly is the point of this project? You could use absolute positioning I guess, but who says you can't float 800 times? that would mean each div would be like 1px in width.

  • #3
    New to the CF scene
    Join Date
    May 2005
    Location
    Fairbanks, Alaska
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Erm...there really isn't a point...I just want to do it.

    And I have no idea what absolute postioning is.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Looks like you need to learn CSS, you could use a table if you wanted to i guess.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.01 transitional//EN"
    "http://www.w3.org/tr/html4/loose.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    #absolutely1 {
    width:300px;
    height:300px;
    border:1px solid #000000;
    position:absolute;
    top:200px;
    left:400px;
    }
    #absolutely2 {
    width:300px;
    height:300px;
    border:1px solid #000000;
    position:absolute;
    top:0;
    right:400px;
    }
    -->
    </style>
    </head>
    
    <body>
    <div id="absolutely1"></div>
    <div id="absolutely2"></div>
    </body>
    </html>

  • #5
    New to the CF scene
    Join Date
    May 2005
    Location
    Fairbanks, Alaska
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks! I'll try that and get back to you.


  •  

    Posting Permissions

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