treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Need a Block Level Element

  • I need a block level element that can be wrap a div. I was thinking of <frameset>

    I have never used it. But it would be like this

    <frameset><div></div></frameset>

    the idea is that I need the frameset to be a block level element so that I can call it from jquery

    would this be propper usage?
  • Can't you just use another Div? A div is a block-level element.
    It would be inappropriate use of a frameset given that it isn't a frameset ;)
  • I could use another div, but I am looking for another block lelel element that can be used inside a block level element that I can hook onto. Thsi way I can say...find all blocks and hide them
  • Use a div, and give it a class to differentiate itself. Then you can hide all divs with that class.
  • what a great idea. I get so wrapped up in code that I think the only sollution is a code sollution. So I was looking into arrays and loops and all kinds of stuff. didn't stop to consider the obvious. Thanks for the solution, Worked like a charm
  • Excellent! Simplicity FTW :)