Keep aspect ratio image CSS?

Here is a good code for having your images to keep their aspect ratio, very useful for optimizing your website for mobile devices.

f8972d89036c85b3e28941be597b3fcb004

All the ...


Strip new lines in php?

Use this code:

f8972d89036c85b3e28941be597b3fcb009

Something like this:

f8972d89036c85b3e28941be597b3fcb010

This will remove all the weird unwanted new lines from ...


Htaccess folder rewrite (subfolder)

Here is how you can rewrite pages that are inside a folder. It also works in wordpress.

f8972d89036c85b3e28941be597b3fcb011

In the example, “phones” is the folder. ...