Page Layout Snippets

27 March, 2013   

CSS code for table-layout property using an example code in html page.

This is a short way of positioning display objects in a grid layout. It makes use of the modulo operator (%) to position each display object along the x axis and the floor method of the Math class for the y position. This example creates 20 instances of a custom display object called MyDisplayObject positioning each instance in a grid 5 columns...

Basic XHTML 1.0 layout which includes basic layout structure and is prepared for jQuery. On load a 'js' class is added to the root element in order to nicely handle graceful degradation if JS is disabled and prevent flickering if JS is enabled.

Makes it extremely easy to integrate code igniter and smarty as well as provide layout capabilites.

05 December, 2016   

Stop IE Page Load Flicker Html code Snippet by Chris Coyier

09 April, 2011   

On form, insert a Page Break after the first group of fields. This creates two "pages" in the form, which can be toggled using a command button on each.

Removes an item from the page, without affecting page flow or causing scrollbars. Much better than display: none; or even visibility: hidden;

Place the following code where you would like the button to appear.

09 November, 2013   

Just like your browser's back button, the following script allows the user to press a button to returns the user to the previous page. Paste the following code where you want the button to appear on your page:

09 March, 2011   

Default XHTML start code for designing a layout or template for your website. Great for working on several clients/projects and do not want to retype this code over and over again.

27 August, 2012   

HTML code for Top & Bottom Halves Layout

PHP & Mysql based code to Print table with client-side sorting function.

Normally index.html or index.php is the default page a server serves up when visiting a directory without specifying a file name. You can change this with .htaccess:

18 September, 2012   

Get the current title of the page using javascript and store it into a variable

16 June, 2012   

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.

11 February, 2011   

Center DIV with Dynamic Height

21 February, 2011   

Centering a Website

You may create a back button like your browser has. The following script allows the visitor to press a button and returns the him to the previous page.

17 April, 2013   

This code only works in Firefox and Chrome

13 April, 2011   

Connecting to a MySQL database to make the data from the database available in your Web application, can be done in many different ways. Here are two often used methods.