File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Div layout problems

 
Justin Fox
Ranch Hand
Posts: 802
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I have three sections (divs) to my page, title,navigationbar,body, and they are centered on the page, and relative.

I have a nested div inside the navigationbar section, and I want it to "dropdown" when I click on it, but when I do the following:



Not only does my button get longer, but so does the outer div, and the button get WAY bigger, not just 200 bigger?!

what am I doing wrong, and how do I make the button extend, but on top of all the other divs, do I need to mess with it's z-index?

Thanks,

Justin Fox
[ April 15, 2008: Message edited by: Bear Bibeault ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you alert currheightnum, what is the value you are seeing?

Eric
 
Justin Fox
Ranch Hand
Posts: 802
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fixed it, sorry,

and yes i was accidently "+=" two strings, it was 25200 lol

but I rearranged the layout a bit, I moved the navigation bar
inside the body and made the "homemade" dropdown absolute inside the
body, but ontop of the navigation, this worked perfect.

You can look at the layout at www.buddyboysbullyfarm.com/hello.html

Justin Fox
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic