Friday, October 1, 2010

Div Not Centering In IE - Issue Possible Fix

So I came into this recent issue where my div was not centered in IE.  I was like I do not understand.  I had the code as follows

<div style="margin:auto;width:600px;">Hello</div>

For some reason my div was not aligning in the middle.  Well then I realized I was missing the DOCTYPE code in the header.  Because in dreamweaver I just erased all code when I started to work.

Throw this guy up at the top!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Then you should be fine!

Sunday, September 26, 2010

What is the Point Of Target's in HTML

So you are building a website and you are putting links inside of our content.

Here are the only 2 important different targets you should use in coding:
  • target="_blank" - use this whenever you have outbound links
  • target="_self" - use this when you have a link going to one of your pages.
You want to use them on those circumstances.  Keeping a page open on your page when someone clicks out of your website will give the use a easy opportunity to look at your website again.  The user might not want to leave your website.