Questions tagged [height]

The property which determines the size of an object on the Y-axis. Please don't use this tag, it has no taxonomic value in your post.

The property which determines the size of an object on the Y-axis. Most likely, it has no taxonomic value in your post, and you should not be using it. Consider e.g. , or .

6209 questions
105
votes
9 answers

How to set height property for SPAN

I need to make following code stretchable with predefined height This is title But since span is inline element, "height"…
Kelvin
  • 8,813
  • 11
  • 38
  • 36
103
votes
1 answer

Height 100% on flexbox column child

I'm having troubles with a flexbox column in that children of the flex'd element don't respond to height in percentages. I've only checked this in Chrome, and from what I understand it's a Chrome only problem. Here's my example: HTML
CourtDemone
  • 5,772
  • 6
  • 23
  • 25
100
votes
4 answers

Get height of div with no height set in css

Is there any way to get the height of an element if there is no CSS height rule set for the element I cannot use .height() jQuery method because it need a CSS rule set first? Is there any other way to get the height?
Samuel Lopez
  • 2,360
  • 6
  • 29
  • 39
95
votes
6 answers

Get width height of remote image from url

So the alert gives undefined values for the width and height. I think the w and h values of the image from the img.onload calculation is not being passed to the values to return, or it may be returning w and h before the onload calculates…
Wonka
  • 8,244
  • 21
  • 73
  • 121
94
votes
4 answers

Get the visible height of a div with jQuery

I need to retrieve the visible height of a div within a scrollable area. I consider myself pretty decent with jQuery, but this is completely throwing me off. Let's say I've got a red div within a black wrapper: In the graphic above, the jQuery…
JacobTheDev
  • 17,318
  • 25
  • 95
  • 158
93
votes
11 answers

jquery get height of iframe content when loaded

I have a Help page, help.php that I am loading inside an iframe in main.php How can I get the height of this page once it has loaded in the iframe? I am asking this because I can't style the height of to iframe to 100% or auto. That's why I think I…
FFish
  • 10,964
  • 34
  • 95
  • 136
89
votes
8 answers

How to fill 100% of remaining height?

+--------------------+ | | | | | | | | | 1 | | | | | | | | …
Bhojendra Rauniyar
  • 83,432
  • 35
  • 168
  • 231
87
votes
7 answers

What is the height of iPhone's onscreen keyboard?

The height in portrait and the height in landscape measured in points.
Erik B
  • 40,889
  • 25
  • 119
  • 135
78
votes
8 answers

How do I change UIView Size?

I have trouble with modifying my UIView height at launch. I have to UIView and I want one to be screen size * 70 and the other to fill the gap. here is what I have @IBOutlet weak var questionFrame: UIView! @IBOutlet weak var answerFrame: UIView! …
SKYnine
  • 2,708
  • 7
  • 31
  • 41
77
votes
6 answers

Image stretching in flexbox in Safari

This is only an issue in Safari and looks like a Safari bug to me. Here is a fiddle with a simplified version of the issue. When an image is in a nested flexbox element with a width set and height: auto it is being stretched... the auto height is…
Brian
  • 795
  • 1
  • 5
  • 7
76
votes
24 answers

Change UITabBar height

I use UITabBarController as a root view and app supports iOS 6 and above. Project class hierarchy is as below. UITabBarController - tab1 - UINavigationController - UIViewController - UIViewController . . - tab2 -…
Geek
  • 8,280
  • 17
  • 73
  • 137
70
votes
2 answers

What is the height of Navigation Bar in iOS 7?

I 've just created a simple iOS 7 app using the default Master Details template. In the MasterViewController.m, viewDidAppear method, I logged…
onmyway133
  • 45,645
  • 31
  • 257
  • 263
69
votes
3 answers

Issue when centering vertically with flexbox when heights are unknown

My layout has a container flex-container and a child. HTML:
text
The container and the child have an unknown height. And the goal is: If the child has a lower height than the container, it appears…
cespon
  • 5,630
  • 7
  • 33
  • 47
68
votes
11 answers

How might I force a floating DIV to match the height of another floating DIV?

My HTML code is just dividing the pages into two columns, 65%,35% respectively.
venkatachalam
  • 102,353
  • 31
  • 72
  • 77
68
votes
3 answers

Height of parent div is zero even if it has child with finite heights

I have a website whose layout has been shown in the diagram. The body consists of a main container, which comprises of header, parent div and footer. The parent div further contains several child div as shown. The problem being height of all the…
Prashant Singh
  • 3,725
  • 12
  • 62
  • 106