What are .tpl files? PHP, web design

That looks like Smarty to me. Smarty is a template parser written in PHP. You can read up on how to use Smarty in the documentation. If you can’t get access to the CMS’s source: To view the templates in your browser, just look at what variables Smarty is using and create a PHP file that populates the used … Read more

How to darken a background using CSS?

Just add this code to your image css Reference: linear-gradient() – CSS | MDN UPDATE: Not all browsers support RGBa, so you should have a ‘fallback color’. This color will be most likely be solid (fully opaque) ex:background:rgb(96, 96, 96). Refer to this blog for RGBa browser support.

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