Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Spry.Widget.MenuBar height?

Posted on 2010-11-10
3
Medium Priority
?
272 Views
Last Modified: 2012-05-10
I am using  Dreamweaver . I have  Spry.Widget.MenuBar which is horizontal.

How can I know the height of the menu bar?
Reason is I am calculating the height of the total container and doing some math to get a image.
I see that when I do size of container I get size including the Spry menu.
Because of this my image is exceeding.

Can you pl tell me a function with which I can know the size of spry?
0
Comment
Question by:vkchaitu82
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Expert Comment

by:remorina
ID: 34116743
Hi vkchaitu82,

Try document.getElementById('YourContainerID').scrollHeight, this should return the actual height being rendered regardless of the overflow content.
0
 

Author Comment

by:vkchaitu82
ID: 34118060
Thanks. is there any thing like that in Jquery also?
0
 
LVL 22

Accepted Solution

by:
remorina earned 1000 total points
ID: 34118164
You can try $("#element").outerHeight();

http://api.jquery.com/outerHeight/
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question