AngularJS ngClass conditional

Your first attempt was almost right, It should work without the quotes. Here is a plnkr. The ngClass directive will work with any expression that evaluates truthy or falsey, a bit similar to Javascript expressions but with some differences, you can read about here. If your conditional is too complex, then you can use a function that … Read more

Changing image sizes proportionally using CSS

This is a known problem with CSS resizing. Unless all images have the same proportion, you have no way to do this via CSS. The best approach would be to have a container, and resize one of the dimensions (always the same) of the images. In my example I resized the width. If the container … Read more

HTML Width Percentage

max-width — the maximum width an element can reach width the width of the element Your code indicates that the #wrapper is to be 98% of the viewport but it should never be wider than 1080px. If 98% of the window width is greater than 1020px, the #wrapper will not get any wider! Please comment if you don’t understand 🙂