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.


All the ...

Strip new lines in php?

Use this code:


Something like this:


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.


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