Online gallery using div instead of table for page layout
Our online gallery up until previous post, used tables for setting layout for our gallery pages. Tables are primarily designed for tabulating data, not to layout page content. To define layout we should be using div tag. Our home page code shown below is modified to use div. To use div we should first get familiarized with CSS. <html> <head> <title>Gallery| Home</title> <link rel="stylesheet" type = "text/css" href = "style/style.css"> </head> <body> <div style="width:20%; float:left;"> <!-- this is left space--> </div>