dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: HELP! Accordion Functionality Support with Images of Different Sizes

  1. #1
    Join Date
    Jan 2016
    Posts
    1

    Unhappy HELP! Accordion Functionality Support with Images of Different Sizes

    Folks,

    My goal is to adapt the linked code to work with images of varying widths.

    In the current code, the images are all the same width and the width expansion is hard coded into the css.

    Is there a way I can designate the image size either dynamically or hard coded using HTML? OR maybe CSS?

    [code](www.jsfiddle.net/uw72feyy/)


    sorry if this needs to be in the CSS section

  2. #2
    Join Date
    Dec 2012
    Posts
    794
    I wasn't able to find a CSS solution but figured out something using jQuery:
    http://jsfiddle.net/uw72feyy/1/
    Works fine when hovering from above/below the images but not when hovering horizontally from one image to another. Maybe this can be fixed by additional work.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles