Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Expanable Content Box

  1. Jun 13, 2007 #1
    I posted in the programming forum.. Not sure if that was the right place. But this script I am using that I got from fooble confuses me. The first box acts how its suppose to but the other 2 don't collapse properly or causes the first box to act different than how its suppose to.

  2. jcsd
  3. Jun 13, 2007 #2
    If there is an easier way to implement this sort of design please feel free to tell me. I was wondering if you could make one using css but probably not.
  4. Jun 25, 2007 #3
  5. Jun 25, 2007 #4


    User Avatar
    Science Advisor

    Well, first of all, you have two body tags. Second of all, the second body tag is not within an html tag, and third when you added the second box you didn't change its id to be different then the first box (two elements with the same ID is bad).

    Correct the html structure of the document, then replace every exp1159471379 that you find with exp1159471380, for example.
  6. Jun 26, 2007 #5
    I am sorry that I posted the wrong code there.. I had updated one that I named differently. The exp works and makes sense.. I don't know why I didn't see it till you helped me. Thanks alot ^_^
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Expanable Content Box
  1. Content farms websites (Replies: 4)