CSS HACK

November 18, 2008

Customize Scrollbar

Filed under: General — Tags: — admin0 @ 5:32 am

Cusomizable Scrollbar (more…)

November 17, 2008

Centering web site through table with valid html and css

Filed under: General — Tags: , , , , , , , , , — admin0 @ 6:24 am

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<title>Centering site through html</title>

<style type=”text/css”>

body,html{
height:100%;
margin:0px;
padding:0px;
overflow:hidden;
}
.site{
height:100%;
background:#333;
}
.siteTd{
height:100%;
vertical-align:middle;
text-align:center;

}
.page{
margin:0 auto;
}
.pageTd{
height:400px;
}
</style>
</head>
<body>

<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″  class=”site”>
<tr>
<td   class=”siteTd”>
<table width=”1024″ border=”0″ cellspacing=”0″ cellpadding=”0″ bgcolor=”#999999″ class=”page”>
<tr>
<td  class=”pageTd”>&nbsp;</td>

</tr>
</table></td>
</tr>
</table>

</body>
</html>

Note : I have roughly include style in same page . Please make seperate css and link in this page.

Hanging banner box in centering site

Filed under: General — Tags: , , , , , — admin0 @ 2:39 am

Handin Banner in right side in centering site

Download : http://www.visitingnepal.com/csshack/zip/hangingBannerInCenterSite.zip

October 26, 2008

Word Break in FF and IE

Filed under: CSS Hack — Tags: , , , , , — admin0 @ 6:24 am

(more…)

August 5, 2008

css hack in safari 3.0

Filed under: CSS Hack — Tags: , , , , — admin0 @ 11:45 pm

@media screen and (-webkit-min-device-pixel-ratio:0){
   #uploaden{
      margin-top:-180px;
   }
}

Css comment hack for all IE browser

Filed under: CSS Hack — Tags: , , , , , , , , , — admin0 @ 11:41 pm

Through html comment we can do css comment hack in All ie brower as per needed. . Here we have code mania for css hack for IE. it is w3c validate code also.

<!--[if IE]>
conditional for Internet Explorer
<![endif]–>

<!—[if IE 5]>
Conditional comment this is Internet Explorer 5
<![endif]–>

<!–[if IE 5.0]>
Conditional comment this is Internet Explorer 5.0
<![endif]–>

<!–[if IE 5.5]>
Conditional comment this is Internet Explorer 5.5
<![endif]–>

<!–[if IE 6]>
Conditional comment this is Internet Explorer 6
<![endif]–>

<!–[if IE 7]>
Conditional comment this is Internet Explorer 7
<![endif]–>

<!–[if gte IE 5]>
Conditional comment this is Internet Explorer 5 and up
<![endif]–>

<!–[if lt IE 6]>
Conditional comment this is Internet Explorer lower than 6
<![endif]–>

<!–[if lte IE 5.5]>
Conditional comment this is Internet Explorer lower or equal to 5.5
<![endif]–>

<!–[if gt IE 6]>
Conditional comment this is Internet Explorer greater than 6
<![endif]–>

July 23, 2008

Centering Site through div

Filed under: CSS Hack — Tags: , , , — admin0 @ 1:21 am

<!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”>
<head>
<title>Vertical align</title>
<meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />

<style>

html, body {
height: 100%;
margin: 0;
padding: 0;
overflow:hidden;
background:#0000ff
}

* {
margin:0px auto;
padding:0;
}

div#shim {
visibility: hidden;
width: 100%;
height: 50%;
margin-top: -317px;
_margin-top:-318px;
float: left;
}

div#wrapper {

width: 1000px;
height: 635px;
clear: both;
background:red;

position: relative;
top: -317px;

/* IE4ever Hack: Hide from IE4 **/
position: static;
/** end hack */

}

/* Hide from IE5mac \*//*/
div#shim {
display: none;
}
html, body {
height: auto;
}
/* end hack */

/* ]]> */

</style>

</head>

<body>

<div id=”shim”></div>
<div id=”wrapper”>
content

</div>

</body>
</html>

July 17, 2008

Minimum height block for multi browser ( IE6, IE7 and FF)

Filed under: CSS Hack — Tags: , , , , , , , — admin0 @ 4:34 am

CSS code
.block{
display:block;
height:100% !important;
height:100px;
min-height:100px;
max-height:100%;
border:solid 1px green;
width:200px;
}

April 22, 2008

Hello world!

Filed under: General — admin0 @ 8:36 am

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Powered by WordPress