jege Posted August 28, 2011 Share Posted August 28, 2011 Hi! Im sorry if i post this in wrong section. but anyways I want to make an box which expands when I click an button, i got no idea how i could do this. I got 2 screenshots so you got an idea what i mean and: so basicly it just expands alot an displays the data inside. This aint only css i think Quote Link to comment Share on other sites More sharing options...
Frank P Posted August 28, 2011 Share Posted August 28, 2011 Hi, Its is a perfectly normal question, but where did you see it? Must have been on a website, but why didn't you look in the source code of that page? If you don't know how to do that or how to read source code, it will be impossible for your to implement any code that we would give you here. Because it indeed is a combination of javascript and css, called dynamic html (DHTML). Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted August 28, 2011 Share Posted August 28, 2011 You're correct, it requires a combination of JavaScript and CSS. These days people tend to lean towards using a JavaScript library, such as jQuery. This allows for easy animating of elements and more. Quote Link to comment Share on other sites More sharing options...
Frank P Posted August 29, 2011 Share Posted August 29, 2011 These days people tend to lean towards using a JavaScript library, such as jQuery. They indeed do, but jQuery would be a humongous overkill here. Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted August 29, 2011 Share Posted August 29, 2011 These days people tend to lean towards using a JavaScript library, such as jQuery. They indeed do, but jQuery would be a humongous overkill here. Of course. Unless there will be more JS usage across the website. Quote Link to comment Share on other sites More sharing options...
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.