Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: images jumping to upper corner

  1. #1
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    97
    Thanks
    31
    Thanked 2 Times in 2 Posts

    Default images jumping to upper corner

    Hi,

    Something strange is happening in that the "first" or "leftmost images, code for which is highlighted, jump to the upper left corner of the screen and don't stay where they are supposed to. If I get rid of that code and those images, then the next in line ones disappear from where they are supposed to be and jump to the upper left corner of the screen.

    Here is the web.css file script:


    body {
    background: white;
    margin: 0;
    }

    body a {
    text-decoration: none;
    }

    #left {
    position: absolute;
    left: 50%;
    margin-left: -580px;
    top: 150px;
    }

    #main {
    overflow: auto;
    position: absolute;
    left: 50%;
    margin-left: -500px;
    top: 150px;
    height: 330px;
    width: 1028px;
    }


    <!-- COLORS menu rollovers - ROW 1-->

    #colorsr1c1 {
    position: absolute;
    left: 50%;
    margin-left: -500px;
    top: 150px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-acuarele.jpg);
    }
    #colorsr1c1:hover {
    background-position: bottom;
    }
    #colorsr1c1 span {
    display: none;
    }

    #colorsr1c2 {
    position: absolute;
    left: 50%;
    margin-left: -293px;
    top: 150px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-iridescent.jpg);
    }
    #colorsr1c2:hover {
    background-position: bottom;
    }
    #colorsr1c2 span {
    display: none;
    }


    #colorsr1c3 {
    position: absolute;
    left: 50%;
    margin-left: -86px;
    top: 150px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-ai.jpg);
    }
    #colorsr1c3:hover {
    background-position: bottom;
    }
    #colorsr1c3 span {
    display: none;
    }

    #colorsr1c4 {
    position: absolute;
    left: 50%;
    margin-left: 121px;
    top: 150px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-portraits.jpg);
    }
    #colorsr1c4:hover {
    background-position: bottom;
    }
    #colorsr1c4 span {
    display: none;
    }

    #colorsr1c5 {
    position: absolute;
    left: 50%;
    margin-left: 328px;
    top: 150px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-target.jpg);
    }
    #colorsr1c5:hover {
    background-position: bottom;
    }
    #colorsr1c5 span {
    display: none;
    }

    <!-- COLORS menu rollovers - ROW 2-->

    #colorsr2c1 {
    position: absolute;
    left: 50%;
    margin-left: -500px;
    top: 210px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-sketches.jpg);
    }

    #colorsr2c1:hover {
    background-position: bottom;
    }
    #colorsr2c1 span {
    display: none;
    }

    #colorsr2c2 {
    position: absolute;
    left: 50%;
    margin-left: -293px;
    top: 210px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-acuarele.jpg);
    }
    #colorsr2c2:hover {
    background-position: bottom;
    }
    #colorsr2c2 span {
    display: none;
    }


    #colorsr2c3 {
    position: absolute;
    left: 50%;
    margin-left: -86px;
    top: 210px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-acuarele.jpg);
    }
    #colorsr2c3:hover {
    background-position: bottom;
    }
    #colorsr2c3 span {
    display: none;
    }

    #colorsr2c4 {
    position: absolute;
    left: 50%;
    margin-left: 121px;
    top: 210px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-acuarele.jpg);
    }
    #colorsr2c4:hover {
    background-position: bottom;
    }
    #colorsr2c4 span {
    display: none;
    }

    #colorsr2c5 {
    position: absolute;
    left: 50%;
    margin-left: 328px;
    top: 210px;
    display: block;
    width: 200px;
    height: 53px;
    background: url(colors-acuarele.jpg);
    }
    #colorsr2c5:hover {
    background-position: bottom;
    }
    #colorsr2c5 span {
    display: none;
    }


    <!-- OVERALL MENU rollovers -->

    #menu1 {
    position: absolute;
    left: 50%;
    margin-left: -411px;
    top: 500px;
    display: block;
    width: 88px;
    height: 24px;
    background-image: url(menu-colors.gif);
    }

    #menu1:hover {
    background-position: bottom;
    }
    #menu1 span {
    display: none;
    }


    #menu2 {
    position: absolute;
    left: 50%;
    margin-left: -411px;
    top: 480px;
    display: block;
    width: 88px;
    height: 24px;
    background-image: url(menu-shapes.gif);
    }
    #menu2:hover {
    background-position: bottom;
    }
    #menu2 span {
    display: none;
    }


    #menu3 {
    position: absolute;
    left: 50%;
    margin-left: -323px;
    top: 480px;
    display: block;
    width: 85px;
    height: 24px;
    background-image: url(menu-words.gif);
    }
    #menu3:hover {
    background-position: bottom;
    }
    #menu3 span {
    display: none;
    }

    #menu4 {
    position: absolute;
    left: 50%;
    margin-left: -238px;
    top: 480px;
    display: block;
    width: 55px;
    height: 24px;
    background-image: url(menu-info.gif);
    }
    #menu4:hover {
    background-position: bottom;
    }
    #menu4 span {
    display: none;
    }


    HTML PAGE:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="web.css" />

    <title>......................................................................................................................................................... ................................................................................................................................................................ ................................................................................................................................................................ ...</title>
    </head>

    <body>

    <a id="menu1" href="colors.html"><span>COLORS</span></a>
    <a id="menu2" href="shapes.html"><span>SHAPES</span></a>
    <a id="menu3" href="words.html"><span>WORDS</span></a>
    <a id="menu4" href="info.html"><span>info</span></a>

    <a id="colorsr1c1" href="#"><span>acuarele</span></a>
    <a id="colorsr1c2" href="#"><span>iridescent</span></a>
    <a id="colorsr1c3" href="#"><span>AI</span></a>
    <a id="colorsr1c4" href="#"><span>target</span></a>
    <a id="colorsr1c5" href="#"><span>sketches</span></a>

    <a id="colorsr2c1" href="#"><span>portraits</span></a>
    <a id="colorsr2c2" href="#"><span>logos</span></a>

    </body>
    </html>

    THANK YOU MUCH!

  2. #2
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    Need to know the location of the "images" directory to be able to create a "local" test page to work it out...

    Please post a link to your page in question.
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  3. #3
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    97
    Thanks
    31
    Thanked 2 Times in 2 Posts

    Default

    Is there some public place to upload so I can keep my website private?
    THANKS!

  4. #4
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    lol, I don't know of any. Is your site "top secret"?
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  5. #5
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    i kind of thought the whole idea behind having a website was to get it recognized around the world?!

    Maybe not. I don't know.
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  6. #6
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    97
    Thanks
    31
    Thanked 2 Times in 2 Posts

  7. #7
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    I'm not seeing anything jump around and I viewed in FF3 and IE7, what browser are you using?
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  8. #8
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    Also, for SEO purposes... It's not a good idea to use images to create a text based menu. If your menu is only going to consist of "words", why not just use good old HTML and make the menu that way? Using links in an unordered list would do the same thing you're trying to do with those images.
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  9. The Following User Says Thank You to TheJoshMan For This Useful Post:

    questions (07-30-2008)

  10. #9
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    97
    Thanks
    31
    Thanked 2 Times in 2 Posts

    Default

    I want to use that particular font which doesn't exist on the web. Anyway. The images don't jump around. They are just not present. The ones highlighted in red "appear" as small image icons at the top left corner in Dreamweaver but they are invisible otherwise, probably off the page. If I take those out then the next ones in "horizontal line" move up to that corner.


    <body>

    <a id="menu1" href="colors.html"><span>COLORS</span></a>

    <a id="menu2" href="shapes.html"><span>SHAPES</span></a>
    <a id="menu3" href="words.html"><span>WORDS</span></a>
    <a id="menu4" href="info.html"><span>info</span></a>

    <a id="colorsr1c1" href="#"><span>acuarele</span></a>

    <a id="colorsr1c2" href="#"><span>iridescent</span></a>
    <a id="colorsr1c3" href="#"><span>AI</span></a>
    <a id="colorsr1c4" href="#"><span>target</span></a>
    <a id="colorsr1c5" href="#"><span>sketches</span></a>

    <a id="colorsr2c1" href="#"><span>portraits</span></a>
    <a id="colorsr2c2" href="#"><span>logos</span></a>

    </body>
    </html>


    THANKS!

  11. #10
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    97
    Thanks
    31
    Thanked 2 Times in 2 Posts

    Default

    It has some 12 errors, maybe that's what's wrong...
    http://validator.w3.org/check?uri=ht...Inline&group=0

Bookmarks

Posting Permissions

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