Questions tagged [outerheight]
37 questions
0
votes
0 answers
Jquery - vertically center div only works when resizing the window
I have some Divs that appears when you click on certain links. The divs with the class name "position-center" vertical centers on the screen. But the thing is that the divs is offset the center on load until you resize the window.
I tried to search…

Linus Josephson
- 77
- 4
- 14
0
votes
1 answer
JQuery - assign height of container (parent) div to child element (vertical bar)
I am new to jQuery. I have a repeating div (.containingBox) which has three internal divs (.summary0, .summary1, .summary2) which hold the data. After summary0 and before summary2 I would like to show a vertical bar. This bar's height should be set…

Jonathan
- 53
- 5
0
votes
1 answer
How to copy an element's height to another element?
I have a div that has padding only and i have another div without any css attribute.
I want to give the same height to both divs using outerHeight.
This is my test, this works but not…

Mustapha Aoussar
- 5,833
- 15
- 62
- 107
0
votes
3 answers
Div height is incorrect when font size, family and line-height are supplied
I am trying to set font size, family and line-height on a div. I then need to know the correct height of the div for some layout stuff. However, the height I am getting is wrong, and a scrollbar is appearing on the div's parent for probably the same…

pulekies
- 894
- 2
- 10
- 20
0
votes
1 answer
Trouble using outerHeight() with backbone
I am trying to create a pinterest like effect, and set the positions of the divs via wedding.reposition(). However, I think the outerHeight() function is not working as it returns 0px. I thought this was due to the image not being loaded yet, but I…

Dan Tang
- 1,273
- 2
- 20
- 35
0
votes
1 answer
jQuery - Recalculate variable on window resize and re-run function
I wrote a function that hides and toggle a top bar div:
jQuery(document).ready(function($) {
$.fn.myTopBar = function() {
var sipPosTop = 0;
var topDivHeight = $("#top").outerHeight();
…

djwd
- 315
- 2
- 5
- 15
-4
votes
2 answers
Elements added to the DOM have no width or height in jQuery?
I've added a block-level element to the DOM, such a p tag. Its dimensions should be automatically computed (e.g. auto). I cannot, however, retrieve its height with jQuery, at least initially. After some time has passed (presumably some layout…

Triynko
- 18,766
- 21
- 107
- 173