Archive for the 'html' Category

Live web page edit

Jul 09, 2008 in Webdev, html

Paste this into the browser address bar, on the site you want to edit.
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

xhtml webpage startup

Apr 23, 2008 in html

<?xml version="1.0" encoding="UTF-8"?>
<!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></title>
<meta name="author" content=""/>
<meta name="date" content=""/>
<meta name="copyright" content=""/>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
<meta http-equiv="content-style-type" content="text/css"/>
<meta http-equiv="expires" content="0"/>
<style type="text/css">

</style>
<script type="text/javascript">

</script>
</head>
<body>

</body>
</html>

css hacks

Mar 17, 2008 in html

Selectors
.context_bar_form_field
{
height: 15px;
#height: 15px;
_height: 21px;
}

The first setting will apply to all browsers,
The second setting will only apply to Microsoft Internet Explorer browsers
The third setting will only apply to IE browsers 6.0 and older

no onClick in strict XHTML

Nov 08, 2007 in html

All elements and attributes must be in lower case in XHTML.

Write it as onclick and you should find it validates.

Border disapears in ie6?

Nov 05, 2007 in html

Make sure you use a relative position on your bordered div.

That should be it!