CSS z-index and stacking context.

Sam Rueby CSS 0 Comments

It may be shocking to find out for beginners that don’t know, that CSS’s z-index property isn’t global. The z-index property is relative to the current stacking context. Put even more simply: You can’t set an element’s z-index to a smaller number than another element’s z-index and have it appear under that other element, if your element has any ancestor …

How to Activate Your MSDN Pluralsight Benefit

Sam Rueby .NET Tips, Software Development 4 Comments

Update 5/25/17 It’s a bit easier to activate the benefit now. As John Henckel pointed out in comments, all you need to do now is go to https://my.visualstudio.com and click on the Pluralsight logo. Done!   I found it pretty un-Googleable to figure out how to get your recently-announced Pluralsight subscription through your MSDN subscription. (I had to watch a video to …

Using CSS to prevent the user from scrolling

Sam Rueby Web Development 3 Comments

I was creating a mobile menu for a project today. The normal, click-the-hamburger, expose a drawer with menu items, etc. I mocked this up in JsFiddle. I darkened the background by making a simple overlay:

But I noticed that on mobile, you can still scroll the page (i.e. the body) even when the overlay was over the content. That’s …

How to fix ReSharper’s bad ToDo item color in Visual Studio.

Sam Rueby Uncategorized 2 Comments

Excuse me as I continue to post fixes to trivial but nevertheless annoying problems that I run into. So after updating to the new ReSharper EAP, this happened: I totally can’t read the NOTE in my source code. What gives ReSharper? But if you go into the Visual Studio settings, Todo items should be colored a lighter, readable blue. Alexander Kurakin …