Category Archives: HTML

Dreamweaver Fails Conditional Comments

Comments (2)

If you create Dreamweaver templates for yourself or clients and have pages in multiple subdirectories, you’ll notice Dreamweaver fails to update the relative path to the IE stylesheets if you use conditional comments for them. Because they’re comments, Dreamweaver ignores them. Luckily, Dreamweaver has a plethora of parameters to get around almost any problem, so […]

Conditional Comments Fix IE Bugs

Comments (2)

As pointed out in some earlier comments, there’s a great way to fix IE bugs without hacks or relying on one browser bug to solve another one. I present to you conditional comments.

<!–[if IE 6]><link rel=”stylesheet” href=”stylesheets/ie6.css” type=”text/css” media=”all” /><![endif]–>

Yes, you read that correctly. If the browser is IE6, apply these styles. It’s that simple.
Other […]

Using an image for a submit button

Comments (2)

It’s pretty easy, you just have to use type=”image” in your <input /> tag:

<input type=”image” src=”http://i.bnet.com/images/200806/btn-submit-CAST-182×24.gif” />

CSS hack for Firefox only

Comments (10)

I have been in a few situations (very few) where I want a page to look different in Firefox. Here’s a little snippet of how you could code it. Please note that this CSS will not validate but will work perfectly fine.

/*”className” is your class or ID*/
/*FireFox 2 */
.className, x:-moz-any-link {font-weight:bold;}

/*FireFox 3*/
.className, x:-moz-any-link, x:default […]

Blank XHTML Template

Comments (17)

You can’t get very far with CSS unless you have some standard HTML. My favorite flavor of hypertext markup is XHTML 1.0 Transitional. Here is a fresh template:

<!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" xml:lang="en" lang="en">
<head>
<title>Blank XHTML 1 Transitional Page</title>
</head>
<body>
[…]

vpn service