Centering: Auto-width Margins
margin:50px 0px; padding:0px;
text-align:center;
}
#Content
{width:500px;
margin:0px auto;
text-align:left;
padding:15px;
border:1px dashed #333;
background-color:#eee;
}
css
root reference:
runat=”server” use ~/
html use ./
Style Your Image Links

Mouse over behaviors have a certain significance when we’re talking about usability. Letting users know that particular section of our website is meant to be clicked on is best achieved through mouse over effect. Those “clickable” sections certainly include content images. But what can you do with image mouseovers? Add a different border? This script will certainly help you to do a bit more than that…
Solve problem Div Height for difference Browser (ie 6, ie 7, firefox and other)
<body style=”height: 100%; width: 100%; padding: 0px; margin: 0px;”>
IE.
HTML page:
<head>
<title>my css hacked page</title>
<link rel=”stylesheet” type=”text/css” href=”styles.css” />
<!–[if lt IE 7]>
<link rel=”stylesheet” type=”text/css” href=”iehacks.css”>
<![endif]–>
<body>
<div class=”watermark”>….</div>…
styles.css
/* styles for all browsers excluding IE7. Things not for IE7 will be left out with !important */
body {
background-color: black;
background-image: url(‘images/gradient.jpg’);background-position: left top;
background-repeat: repeat-x;
} /* black background with gradient on top. */div.watermark {
background-image: url(‘images/watermark.png’); /* transparent */
background-position: left top !important; /* for all but IE */
background-position: right top; /* for IE */
background-repeat: no-repeat;
}
iehacks.css
/* for IE6 and older */
div.watermark {
background-image: url(‘images/watermark.gif’); /* here is a transparent that will be displayed better in IE6 and older */
}
Ofcourse above is just an example using semi-transparent png for all browsers but IE6 and older. Like that you’ll be able to make your website more compatible.
Setting div height=100%
body {
margin:0;
padding:0;
height:100%; /* this is the key! */
}
#header {
height: 50px;
background-color: #EAEAEA;
border:1px solid #333;
padding:4px;
}
#left {
position:absolute;
left:0;
top:80px;
padding:0;
width:200px;
height:60%; /* works only if parent container is assigned a height value */
color:#333;
background:#eaeaea;
border:1px solid #333;
}
Rounded corner CSS+JS and more
xmlHttp —————–
Even More Rounded Corners With CSS
http://www.schillmania.com/projects/dialog2/
SoundManager 2
Javascript Sound for the Web
http://www.schillmania.com/projects/soundmanager2/
http://www.schillmania.com/?theme=2005
http://www.schillmania.com/content/entries/2006/04/more-rounded-corners/
http://www.schillmania.com/content/entries/2006/04/more-rounded-corners/
http://www.schillmania.com/content/opinion/2005/10/dont-believe-the-web-20-hype/