height

mPDF set Height for SetHTMLHeader

怎甘沉沦 提交于 2019-12-05 22:54:09
Exist any way to set the Height of hearder when use SetHTMLHeader function? In the first page the size by default is correct but in the next pages, the content overwrite the end part of the header. Regards, Oscar. Oscar Fernández Arcís Finally use this: $this->mpdf->mPDF('utf-8','A4','','','15','15','28','18'); When 15=margin-left , 15=margin-right , 28=margin-top , 18=margin-bottom And now works well. Regards, Oscar Sarah Trees UPDATE 2019 Since version 7 parameter set as an array: $mpdfConfig = array( 'mode' => 'utf-8', 'format' => 'A4', 'margin_header' => 30, // 30mm not pixel 'margin

How can I force an outer div to expand to height of inner div?

安稳与你 提交于 2019-12-05 22:49:27
I have data that is ajaxed in to <div class="content"> . I want the outer div to expand to the height of the inner div. I can't figure out how to do this. HTML: <div class="outer"> <div class="inner"> <div class="content">Stuff goes here</div> </div> </div> CSS: .outer { width: 740px; min-height: 250px; margin: 0 auto; position: relative; margin-bottom: 10px; } .inner { position: absolute; top: 70px; left: 10px; width: 335px; bottom: 0; } .content { font-size: 13px; margin: 0 0 7px 0; text-align: left; position: relative; } I want the outer div to expand to the height of whatever is inside

How do I bind to a RowDefinition's height?

青春壹個敷衍的年華 提交于 2019-12-05 21:12:32
In this example code, I'm trying to offset the Grid 's Canvas position by the height of one of its rows. Does anyone see what I might be doing wrong? As you can see, I tried moving the binding lower in the xaml file, just in case the RowDefinitions needed to be defined first. Either way, it doesn't seem to matter because Canvas.Top is always 0. <Canvas> <Grid Canvas.Top="{Binding ElementName=DetailsRow, Path=ActualHeight}"> <Grid.RowDefinitions> <RowDefinition x:Name="NameRow" /> <RowDefinition x:Name="DetailsRow" /> </Grid.RowDefinitions> <Button Grid.Row="0">Button</Button> <Button Grid.Row=

How can I make a div auto-adjust its height between two divs, according to window height using CSS/Javascript?

旧街凉风 提交于 2019-12-05 18:39:53
I have a div positioned at the top of the body and another div positioned at the bottom of the body Now I want to place a div between those two divs and have its height take the max space available between those two divs. The vertical space between those two divs is not fixed, meaning that when the user decreases/increases the height of the window, I want the middle div to readjust its height accordingly. More specifically : <body> <div style="position: fixed; top: 0px; left: 0px; width: 200px; height: 100%;"> <div style="float: left; height: 50px, width: 200px; background-color: green;"/>

100% height div inside a display:table-cell div

江枫思渺然 提交于 2019-12-05 18:12:54
I'm trying to put a 100% height div inside a display:table-cell div, but it doesn't seem to work in IE. Any workaround for IE? Here's my code: <div style="display:table-row;"> <div style="display:table-cell; background-color:blue; border-left:solid 1px #CCC;"> <div style="position:relative; height:100%; width:100%; background-color:red;"> </div> </div> </div> I realize this is a fairly old post, however I found myself here looking for a solution. I ended up using a little but of jQuery. ('.column' refers to my :table-cell elements) jQuery(document).ready(function($){ $('.column').each(function

How to detect if element has 'auto' height

允我心安 提交于 2019-12-05 17:29:52
问题 Both window.getComputedStyle(element).height and element.clientHeight are returning the current height of the element in pixels, regardless of the value set in the CSS. Is there any way to find out if the height was set to auto , or other units than pixels ? One solution that @pvnarula suggests through the page he linked is to temporarily change the contents of the element, then compare heights. A little bit hacky... 回答1: Update: Based on other answers and lot of online research I came up

How to get the containing div to stretch vertically to accommodate a floating image

匆匆过客 提交于 2019-12-05 17:11:39
Here's the basic problem: alt text http://img241.imageshack.us/img241/3800/problemwithfloats.png I want the div that holds the image to stretch vertically to accommodate it. give the div (nice rime) overflow:hidden Add the following CSS formatting to the container div: overflow: auto; Also, it seems that you need to specify a width for the container div if you want the solution to work correctly in Opera and IE for Windows. See http://www.quirksmode.org/css/clearing.html for more information. Steve 来源: https://stackoverflow.com/questions/992073/how-to-get-the-containing-div-to-stretch

How does css position impact element width/height?

十年热恋 提交于 2019-12-05 15:48:31
How do the various options for css position (static, relative, absolute, fixed) impact the way percentage width/height is calculated? This question may be too generic to provide a concrete answer, and it's possible that the answer is "the two are not directly related", but I'm having trouble understanding the impacts of css position on element size. Links to related questions/answers are welcome. I recommend that you read A List Apart's CSS Positioning article . It's the best article I've seen on the web. 来源: https://stackoverflow.com/questions/8455190/how-does-css-position-impact-element

Help with Jquery/Masonry, minor tweak

时光怂恿深爱的人放手 提交于 2019-12-05 14:40:24
For the life of me, I can;t figure out what the heck is going on. My lack of Jquery knowledge might have something to do with it... Take a look at this: http://jsfiddle.net/ryanjay/fgNMJ/ When the page loads, there is major gaps, height-wise, in between each photograph. When you click a photo, and it expands, the photos on the bottom fall back into place. When the photo is clicked again to collapse it, the photos fall into place as they should when the page is loaded. Make sense? Why is there a gap between the photos, height-wise, when the page is loaded? I am assuming it has something to do

How can I manage the height of android spinner items?

空扰寡人 提交于 2019-12-05 13:27:04
问题 I have an android spinner that's populated by a list of strings using an ArrayAdapter and it operates fine, however because of the way the spinner is displayed I'm running into a display height problem with the list items. At first glance it would seem that the ArrayAdapter can use a single layout for displaying options which leads to the problem I'm having. When displaying the current item in the spinner (when the user is not selecting a new item from the list) the spinner pads the text so