SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Image Dropdown

  1. #1
    SitePoint Evangelist
    Join Date
    Oct 2005
    Posts
    415
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Dropdown

    I do not know if this is the correct place to ask this but i am in need of an image dropdown to enable users to visually select images from a dropdown and see the image preview in the actual dropdown itself.

    I need something like this http://www.jameslinden.com/2006/04/

    this does not seem to work as my icons are 64 x 64 pixels and therefore i cannot figure out how to customise this,..

    Any help would be great

    Rodent

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would've thought it's pretty obvious. He gives you the code right on the page:

    Code:
    .icon {
    height: 32px;
    width:  32px; 
    background-repeat: no-repeat;
    padding-top: 1px;
    padding-bottom: 1px;
    background-color: white;
    }

  3. #3
    SitePoint Evangelist
    Join Date
    Oct 2005
    Posts
    415
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Afraid i thought of that already smarty....

    Im not completely stupid...

  4. #4
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So how about you show us your code so we don't have to guess how your implementation differs from the example that works?

  5. #5
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    It works perfectly fine (in supporting browsers) when you increase those two values to 64px I assume you made the sensible adjustment of the select width being more the 54px too and checked the directory structure in the JavaScript and inline style URL.


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
  •