ee92 Posted February 3, 2009 Report Posted February 3, 2009 (edited) Hi, I got an open source accordion text box script from the internet. It works perfectly for me, however I've been trying for some time to get something to work with it. * I need to put an image link in the textbox that expands. This is proving to be difficult because any image I put in the the Accordion Textbox paragraph in the .html files displays outside the accordion textbox. Here is a part of my .html file: Click on one of the following boxes to choose your method in booking a procedure. From then on follow the prompts. Edited February 3, 2009 by ee92 Quote
PicnicTutorials Posted February 3, 2009 Report Posted February 3, 2009 (edited) Try adding overflow hidden to the accordion container (whatever is holding the image). If that doesn't fix it, also try giving the image position absolute. Edited February 3, 2009 by Eric Quote
ee92 Posted February 3, 2009 Author Report Posted February 3, 2009 I tried the absolute positioning of the image - didn't work . I tried adding the overflow but I'm not sure I got it correctly - can you show me? Thanks Quote
PicnicTutorials Posted February 3, 2009 Report Posted February 3, 2009 On second thought. Were is the image? In the html or as a background image in the CSS? Putting it in the CSS as a background image should fix that. Quote
ee92 Posted February 3, 2009 Author Report Posted February 3, 2009 It's in the CSS file. I did try using it as a background image but I couldn't find a way to change the image when the pointer hovered over it - is that possible? That would be so much easier. Quote
ee92 Posted February 3, 2009 Author Report Posted February 3, 2009 Also how would I position the image? Thanks Eric Quote
PicnicTutorials Posted February 3, 2009 Report Posted February 3, 2009 It's in the CSS file. I did try using it as a background image but I couldn't find a way to change the image when the pointer hovered over it - is that possible? That would be so much easier. Here we go! I worked up a little demo for you (and me). This shows both ways I was describing. Although, your accordian containers probably don't have a fixed width on them - right? Therefore the overflow hidden method would not work. But I put it in there anyways. http://www.visibilityinherit.com/forums/overflow.html And here is how to do the linked image swap. Let me know if you get stuck... http://www.visibilityinherit.com/code/linked-image-swap.php Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.