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
0 answers

C# XAML Using Converter to set the Height

I have created a converter called AspectRatioConverter which I want to use to set the Height of my MediaElement, but the converter is called only once at the start of the program and no longer during the program. Height="{Binding…
TheQuestioner
  • 427
  • 1
  • 7
  • 23
2
votes
5 answers

margin-top:percentage; not bound to parent height?

I have a
that's 100px tall (for demonstration purposes). Inside that
is another that's 60% tall with a margin-top of 20%. I expect the result to be a 60px tall
with a margin-top of 20px. Unfortunately, that isn't the case and I…
henryaaron
  • 6,042
  • 20
  • 61
  • 80
2
votes
3 answers

Div containing other divs does not have proper height

I have a 'frame' containing two divs which are respectively aligned on the left and on the right. Unfortunately, the main div does not have the proper height to englobe the inner divs. Here is the HTML:
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
2
votes
2 answers

Sidebar height 100% on div not extending to bottom of page

I've seen several similar questions/answers to this problem on SO but none of the answers that I've checked have helped me. I'm attempting to have a "Side-Bar" extend from 10px less than the top of the page, all the way to the bottom. However (when…
Linuxmint
  • 4,716
  • 11
  • 44
  • 64
2
votes
2 answers

Stretching tab content

I need to stretch .v-tabs-cont. Image perfectly describes my intentions. I don't want to stretch whole div.col only the v-tabs-cont height to .vtabs height. Fiddle Temporary solution: $("div.v-tabs-cont").css("min-height", $("ul.vtabs").height() +…
Macko Tarana
  • 175
  • 11
2
votes
1 answer

Making a StackPanel scrollable in Windows Phone 8

I have a list of controls, put into a stackpanel. These controls are Hubtiles, that are added programatically after a user creates it - a list essentially. I need to make the StackPanel in which they are added, scrollable - what would be the best…
Erik
  • 799
  • 2
  • 15
  • 27
2
votes
2 answers

Java: Find Height of N-ary Tree

There's lots on finding the height of binary trees; how can the height of a n-ary tree be found in Java? Would it involve traversing it and keeping track of max depth or something like that?
Cartesian Theater
  • 1,920
  • 2
  • 29
  • 49
2
votes
5 answers

Determining how big an element will be in Javascript

I need to position an element in the exact centre of the page (using fixed positioning) and need to calculate the expected size. For example I would add HTML like this:

Title

DisgruntledGoat
  • 70,219
  • 68
  • 205
  • 290
2
votes
1 answer

div always on top of page and random image automatically fit that div

Excuse my ignorance and let me explain. I would like a div to be always fully visible in a web-page. Its a div that contains a random picture and after that is a "Read more" button . So it would be nice if the image fits the div and the div and…
slevin
  • 4,166
  • 20
  • 69
  • 129
2
votes
2 answers

Limit Height LinearLayout with ListView And Button

I have a LinearLayout like bellow
Anaisthitos
  • 199
  • 1
  • 3
  • 18
2
votes
2 answers

2 divs that "should" have equal height, but one appears to be a pixel larger than the other

EDIT again: They appear to look the same at certain zoom levels, but zooming in and out reveals the discrepancy. FF's default zoom makes them look incorrect, Chrome's default looks OK but the discrepancy is revealed after zooming in. EDIT: here is a…
chiliNUT
  • 18,989
  • 14
  • 66
  • 106
2
votes
1 answer

WPF - Getting Image Width/Height from internet URL

I've managed to get an image's width/height if its stored in my computer with the following code:(Fullpath is the file's full location) var bitmapFrame = BitmapFrame.Create(new Uri(FullPath), BitmapCreateOptions.DelayCreation,…
Oranges
  • 193
  • 1
  • 2
  • 16
2
votes
0 answers

increase keyboard height by setting XML dimen variables dynamically

Hi i am working on soft keyboard where i need to set height of keyboard dynamically. My normal keyboard view before increasing height is like shown below, So as per requirement user can increase height of keys so after setting key's height…
Aniket
  • 2,204
  • 5
  • 34
  • 51
2
votes
1 answer

Child divs not taking parent height

I want height of children div .cell to take up 100% height of parent. But it is not happening. HTML:
header
codingrose
  • 15,563
  • 11
  • 39
  • 58
2
votes
2 answers

Make multiple links in a row the same dynamic height

I have a web page with multiple links that contain a medium-sized image and a short descriptive text underneath. While all images have the same size (for now), the text comes from a translation and may span a variable number of lines, depending on…
ygoe
  • 18,655
  • 23
  • 113
  • 210