height

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

我是研究僧i 提交于 2020-01-04 21:33:11
问题 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 is off topic. But it will be good if someone could give a link for position fixed. <html> <head runat="server"> </head> <body class="body"> <form id="form1" runat="server"> <div id="main_wrapper"> </div> <div class="clear"></div> </form> </body> <

Fluid video height

…衆ロ難τιáo~ 提交于 2020-01-04 18:13:07
问题 I found fluidvids.js and am using that on my site, but it only accounts for width. I have some users who have more of a panoramic, narrow height viewport for their browser, and can't see the controls on my video because the window is so wide (900px) that the video width doesn't scale for the height. I'd like to have responsive height, and have looked at several posts on AListApart, etc, and can't find the obvious solution. Let me know if you have any tips or see the glaring thing I'm missing.

Height 100 percent under display: table-cell in IE

只愿长相守 提交于 2020-01-04 14:00:32
问题 I would like to have a child element under a div with "display: table-cell" take up the whole height of the parent div. Does anybody have any idea why the following snippet works like a charm in Chrome and FF, and it breaks under IE, including 10? HTML: <body> <div class="table"> <div class="table-cell"> this normally has 100% </div> <div class="table-cell"> <div> this should get height 100% too </div> </div> </div> </body> CSS: .table { display: table; height: 100%; } .table > div:first

Set button height equal to the button width

社会主义新天地 提交于 2020-01-04 04:38:06
问题 I've seen this question a lot on the internet, but all solutions didn't work for me.. So this is the problem. I want a button that has 50% width of the screen (that works fine). But now I want it to have the same height the as the width. Somehow this doesn't work: Button button1 = (Button) findViewById(R.id.button1); int btnSize = button1.getLayoutParams().width; button1.setLayoutParams(new LinearLayout.LayoutParams(btnSize, btnSize)); See this for the code: Activity1.java: package nl.jesse

How to give a child div width/height 100% if the parent's div is also 100% width/height

核能气质少年 提交于 2020-01-04 02:43:17
问题 I want two divs having the width and height 100%. I know that the child div won't work because the parents div has not a specific height but is there a way to fix this? HTML: <div class="container"> <div class="child-container"> </div> </div> CSS: body { width: 100%; height: 100; } .container { position: relative; min-width: 100%; min-height: 100%; background-image: url('http://www.earthbusinessdirectory.com/web/images/london.jpg'); } .child-container { position: relative; min-width: 100%;

How do I get the height of the screen in Android?

坚强是说给别人听的谎言 提交于 2020-01-03 15:30:49
问题 How can I get the available height of the screen in Android? I need to the height minus the status bar / menu bar or any other decorations that might be on screen and I need it to work for all devices. Also, I need to know this in the onCreate function. I know this question has been asked before but I have already tried their solutions and none of them work. Here are some of the things I have tried: This does not take into account the status bar / menu bar: Display display = getWindowManager(

how to fill div with full height of page in css? (page is taller than 100%) for ajax loading gif background

我是研究僧i 提交于 2020-01-03 12:35:49
问题 ok there are several similar questions but not quite anything that I want. I have few ajax requests on page and I want to show the image in the center of the screen, and its all working OK. Just to make it look more prominent, I wanted to place that image on a div with translucent background, so its more obvious for the end users. Now comes the tricky part. I made the div with css like this: .divLoadingBackground { filter: Alpha(Opacity=40); -moz-opacity:0.4; opacity: 0.4; width: 100%; height

how to fill div with full height of page in css? (page is taller than 100%) for ajax loading gif background

不问归期 提交于 2020-01-03 12:35:17
问题 ok there are several similar questions but not quite anything that I want. I have few ajax requests on page and I want to show the image in the center of the screen, and its all working OK. Just to make it look more prominent, I wanted to place that image on a div with translucent background, so its more obvious for the end users. Now comes the tricky part. I made the div with css like this: .divLoadingBackground { filter: Alpha(Opacity=40); -moz-opacity:0.4; opacity: 0.4; width: 100%; height

Android: Layout height in percentage of screen resolution

女生的网名这么多〃 提交于 2020-01-03 09:08:37
问题 I'm quite new in Android, so it'll probably be a stupid question, but here it goes. I have a RelativeLayout of Activity. In this layout I have another Layout at bottom of a screen. Sometimes I hide it or make it visible, this matters not. Is it possible to make the another layout's height lets say 27% of total screen height? The idea is to keep the other content, except this layout on screen. Have anyone tried something like this? 回答1: LinearLayout can handle this via android:layout_weight .

get div height after div content load

℡╲_俬逩灬. 提交于 2020-01-03 09:02:41
问题 I am trying to set the height of one div equal to another. I will call them left and right divs. The right div content is not always the same and is loaded with jQuery. It is a filter so each time you click a filter, the content change and also the parent div height. This is my code: jQuery(document).ready(function($) { $(window).resize(function() { location.reload(); }); var Height = $("#archive").outerHeight(); $('.recursos-sidebar').css("height", Height); }); The problem is that the left