Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Login Button similar to dropbox using images

Login Button similar to dropbox using images

Problem

I am currently trying to create a login button that is similar to that of dropbox. There is another thread available on how to do this, but I wish to do it differently. Note I tried to follow the code provided in that thread as close as I can, but it was a failed attempt.

Rather than having a link written in text, my button refers to a link through an image. Furthermore, when the button is pressed, I want another image to popup right below it.

Here is my code:

html/ jquery /php code:

echo '';

echo '';

css code:

#logbutton{
    top:50px;
    left:850px;
    position: absolute;
    background-image: url(../images/buttons/loginbutton.png);
    width:59px; 
    height:28px;   
}

#popupimage{
    top:63px;
    left:887px;
    position: absolute;
    background-image: url(../images/popupimage.png);
    visibility: hidden;
    width:400px; 
    height:600px;   
}

If possible I would also like to know if this can be done using html 5 and css only?

Thanks in advance

Problem courtesy of: Goaler444

Solution

I have managed to do this. Here is the code:

    echo '';

    echo '';

    echo '';
    echo '
Solution courtesy of: Goaler444

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Login Button similar to dropbox using images

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×