Fixed width div on left, fill remaining width div on right

Try removing the float:left and width:100% from .header-right — the right div then behaves as requested. .header { float: left; background: #efefef; background-repeat: no-repeat; width: 240px; height: 100px; } .header-right { overflow: hidden; background-color: #000; height: 100px; } <div class=”header”></div> <div class=”header-right”></div>

overflow:hidden on inline-block adds height to parent

I had this issue when building a horizontal slider. I fixed it with vertical-align:top on my inline-block elements. ul { overflow-x: scroll; overflow-y:hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; } ul&::-webkit-scrollbar { display: none; } li { display: inline-block; vertical-align: top; width: 75px; padding-right: 20px; margin:20px 0 0 0; }

CSS Right Margin Does Not Work Inside a Div With Overflow Scroll

TL;DR: Margins are for moving an element in from the wrapper, not expanding the wrapper outwards. The long explanation: This behavior is consistent with specifying a width in addition to a horizontal margin anywhere in the document. To break it down, consider the following snippet, where I specificity a wrapper without an overflow property, and … Read more

IE8 overflow:auto with max-height

This is a really nasty bug as it affects us heavily on Stack Overflow with <pre> code blocks, which have max-height:600 and width:auto. It is logged as a bug in the final version of IE8 with no fix. http://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=408759 There is a really, really hacky CSS workaround: http://my.opera.com/dbloom/blog/2009/03/11/css-hack-for-ie8-standards-mode /* SUPER nasty IE8 hack to deal … Read more

-webkit-overflow-scrolling: touch; breaks in Apple’s iOS8

I had a similar problem with a (quite complex) nested scrollable div which scrolled fine in iOS 5, 6 and 7, but that intermittently failed to scroll in iOS 8.1. The solution I found was to remove all the CSS that tricks the browser into using the GPU: -webkit-transform: translateZ(0px); -webkit-transform: translate3d(0,0,0); -webkit-perspective: 1000; By … Read more

Why do C++ streams use char instead of unsigned char?

Possibly I’ve misunderstood the question, but conversion from unsigned char to char isn’t unspecified, it’s implementation-dependent (4.7-3 in the C++ standard). The type of a 1-byte character in C++ is “char”, not “unsigned char”. This gives implementations a bit more freedom to do the best thing on the platform (for example, the standards body may … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)