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
2
votes
3 answers

div doesn't grow in height with content

I've read almost every article on this forum about divs and growing height with its content. I don't understand what I'm doing wrong and can't figure it out. Probably it's an easy thing, but I just don't see it any more. I tried the following CSS…
Timo002
  • 3,138
  • 4
  • 40
  • 65
2
votes
5 answers

How to resize a div to clients viewport height?

Ok, so i want to have a series of divs which are the exact width and height of the user's browser window, regardless of the screen size. I can easily make the divs stretch horizontally with "width: 100%;" but i cant work out how to make the height…
tomtomthompson
  • 23
  • 1
  • 1
  • 5
2
votes
1 answer

Getting the height of the image to set modal window size

I am creating a photo gallery with thumbnails and loads the resized image into the modal window. The problem is I want to get the height and width of the image to set the height of the modal window, however the height is not being set on the modal…
Moxie C
  • 442
  • 1
  • 15
  • 32
2
votes
3 answers

Floated div, 100% height

t ***** { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 0; padding: 0; list-style: none; } #footer-gradient { position: relative; width: 100%; overflow: hidden; padding: 0 18px; margin-left: -18px; …
user2587741
  • 199
  • 4
  • 14
2
votes
4 answers

100% height for background not working (despite html and body height 100%)

I want to set my wrapper to be 100% height. But I am unable to do so despite setting the height to 100%. Currently, My main_wrapper is empty. It should give me a background color of red. My aim is to have a footer at the bottom using fixed but that…
Benson
  • 41
  • 1
  • 2
  • 8
2
votes
3 answers

100% height relatively positioned footer

I'm building a 1 column responsive blog site. I have a fixed position header with navigation, content section with x amount of blog posts (as excerpts) and a footer containing a contact form.
2
votes
3 answers

Background color does not show when setting a div height to auto! Why?

The background-color of #container does not show when I set its height to auto. But it does show when I set it to a fixed height like 1000px. I've tried "overflow:auto", but it didn't work. How can I fix it? I do want #container to vertically expand…
lei he
  • 259
  • 3
  • 8
2
votes
1 answer

Inno Setup Set TInputQueryWizardPage Height

I have installation script that is using TInputQueryWizardPage. How can I increase height of this page? For example if I have this... procedure InitializeWizard; begin MyPage := CreateInputQueryPage(wpReady, 'Some Information', 'Enter…
A.Z.
  • 69
  • 3
  • 10
2
votes
2 answers

Safari iOS | 100%-height page too high for viewport

I've got a problem with a simple webpage. It isn't quite finished but I tried this one with my iPad in Safari and there appeared a vertical scrollbar altough the document shouldn't be higher than the viewport. (only in landscape mode) In Chrome for…
fheck
  • 280
  • 1
  • 5
  • 15
2
votes
1 answer

css div height 100% problem?

I would like a div to take all the screen height, that's why I found the following links: http://www.webmasterworld.com/forum83/200.htm http://www.thefutureoftheweb.com/blog/100-percent-height-interface the tricks: make the container have a…
WilliamLou
  • 1,914
  • 6
  • 27
  • 38
2
votes
2 answers

Height check on resize causing lag

I'm using the below jquery to check and reset the height of my div on resize. However, there is a terrible freeze/lag when using the below code. The structure is just three absolutely positioned divs. One at the top, one at the bottom, and one in…
steventnorris
  • 5,656
  • 23
  • 93
  • 174
2
votes
1 answer

float left resizing images 100% whit parent

I am working on a mobile version of a website. On a certain page you have three images on the left and when you click on it, you will see the image in big on the right. When you resize the window, the three images on the left will become bigger in…
2
votes
1 answer

Retrieving width() and height()information from loaded through html()

My problem is the following: I developed a script that allows an user to zoom over an image displayed on the current page. On click, it loads through $('div#imageBox').html() a
and an . On the following, I'm retrieving pieces of…
D4V1D
  • 5,805
  • 3
  • 30
  • 65
2
votes
2 answers

Get auto height of an element without setting height to auto

I'd like to get the height of an element, if said element was currently set to height:auto;, without actually setting the elements height to auto. Pretty straight forward, but I can't figure out how to obtain the auto height value without first…
norsewulf
  • 511
  • 6
  • 21
2
votes
1 answer

Explicitly Setting Size of an Emacs Window

How do I (or try to) set the window size (not the frame size) of an Emacs window to a specific value? I know of Emacs' functions for fitting to content but none allow me to set an exact height. I'm aware of the fact that I only can do this if there…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99