Posts

Showing posts from March, 2017

How to do responsive images in HTML & CSS

Image
This is the need of the hour as more and more people are using mobiles for accessing web pages. How to make sure that the image you inserted in HTML is adapting to the mobile view is very crucial in accessibility point of view. You can do it using simple CSS codes. You can do it in two way. First one is by shrinking the image in a mobile. The second one is by swapping the image with a smaller image in a mobile. You can see both in the example below. Here is the desktop view  Here is the mobile view Code for both shrinking the image and swapping the image in a mobile <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Automatic resizing of image in mobile view</title> <STYLE ...

Database server is not available - in 1&1 cloud server

This could happen when you install many programmes like Joomla, Wordpress, osClass, opencart etc. You have a configuration file where you put everything correctly, but you get the error message 'database server is not available'.  This is a situation you may encounter when using 1&1 cloud server where you configure everything yourself.  You put database host name (server name) - usually it is 'localhost:3306'. You get this from the very top line of phpMyAdmin Or you may get it from the server control panel like this. "Host name: service.gb-12.abcd-abcd.net" You put database name - you can create a database using phpMyAdmin and put the same name here You put database user name - you will get it from the server control panel - usually it is user1234 (user with four numbers) or 'root' You put database password for user . You will get it from the server control panel. Click 'show password' to reveal it.  But still it is not w...