Monday, 25 October 2010

How To Vertically Center A Site

http://webdesignpond.co.uk/wdp/tips-tutorials/how-to-vertically-center-a-site/

 

Next comes the part of code that will center the site:

view source

print?

01

#vertical {

02

   height:50%;

 

03

   width:1px;

04

   margin-bottom:-150px; /* half the wrappers height */

 

05

   float:left;

06

}

 

07

#wrapper {

08

   margin:0 auto; /* use if centering horizontally  */

 

09

   text-align:left; /* set text back to default if centering horizontally  */

10

   position:relative;

 

11

   height:300px;

12

   width:700px;

 

13

   clear:left;

14

}

This works by setting the height of the vertical div to 50% minus half the size of the wrappers height, by floating this to the left and then using the clear:left; within the wrapper, the wrapper div is then pushed down underneath the vertical div, causing it to be vertically centered.

Step Two – The HTML

view source

print?

1

<div id="vertical"></div>

2

<div id="wrapper">

 

3

    <!-- Place content here-->

4

</div>

There you have it a vertically centered site.

 

Friday, 22 October 2010

how to send html emails using PHP

$body = <<<EOF

<html><body>

<table width="100%" border="1" cellspacing="1" cellpadding="1">

  <tr>

    <th width="32%" scope="col">Q</th>

    <th width="68%" scope="col">A</th>

  </tr>

EOF;

 

$cont = "Content-Type: text/html; charset=ISO-8859-1\r\n";

 

if (mail($to, $subject, $body, $cont)) {

   echo("<p>Message successfully sent!</p>");

  } else {

   echo("<p>Message delivery failed...</p>");

  }

 

 

 

 

Free HTML form downloads

http://wufoo.com/gallery/

 

Find a template or design you like. Download the XHTML/CSS files for your workflow OR Add it to your Wufoo account to customize and use it to collect data right away

Tuesday, 19 October 2010

SEO Checklist :: SEO & SEM Infographics :: Elliance



Sent from my iPhone

how to make 301 redirects

How to create 301 redirects, good practise when renaming website pages

 

http://www.webconfs.com/how-to-redirect-a-webpage.php

 

 

PHP Redirect

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

free Captcha

Free captcha script downloads, captcha tutorials and information.
Add captcha to your website by yourself in less than 20 minutes
and no php nor HTML knowledge needed.

 

http://www.captcha.tv/

 

Google experts answer your SEO Q's

Monday, 18 October 2010

Welcome to my blog

Welcome to my Web Design note book, its a place where I can dump links
and articles related to web design so that i can find them again
later. Its also a way of adding articles to my iphone for reading on
the go via the RSS reader

feel free to subscribe & comment on my posts