1. Those image based sliders on forms to change values, no idea how that works, anyone got any tutorials?
2. How do you get a div to expand to the right size when the content is random text so height isn't predetermined?
1. Those image based sliders on forms to change values, no idea how that works, anyone got any tutorials?
2. How do you get a div to expand to the right size when the content is random text so height isn't predetermined?
Thanks
1. You superstar that's perfect
2. Sorry I meant expand it with javascript, current content fades, div resizes (assuming it has a background colour or image) then you fade the new content back in.
I am a mootools monkey so i have no idea about jquery, but as has been previously said a div will automatically expand to include its contents. You can directly alter the contents of any element by setting its innerHTML.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.