The Behaviour of Top: Auto; Bamboozles Me

Irritating behaviour of positioning: absolute

Add a top property to the side bar

.right-sidebar {
position: absolute;
right: 0;
top: 0;
width: 50px;
height: 100%;
background-color: #abcdef;
}

When position absolute is specified you are expected to position the element, meaning you must set its top, bottom, left and right properties to the values you desire. If one of these properties is not set the browser positions them, since they will be set to auto.

Absolutely positioned child's top edge pinned to the bottom edge of its parent that has unknown height?

This usually does it for me...but without your CSS it's hard to be sure it will work in your instance.

li {
position:relative;
}

li > ul {
position:absolute;
left:0;
top:100%;
}

Why can't Excel load the excel-dna addin?

Yes - this is exactly the behaviour you get when an .xll add-in has the wrong 'bitness' for the Excel process. For Excel-DNA you need to use a copy of ExcelDna.xll for 32-bit Excel versions (running on 32-bit or 64-bit Windows), and a copy of ExcelDna64.xll for the 64-bit version of Excel 2010.

Note that on all versions of Windows (both 32-bit and 64-bit) the recommended and default installation of Office is the 32-bit version.



Related Topics



Leave a reply



Submit