Private: MY Note


transparent alpha opacity

Posted in HTML by dev1 on the February 7, 2008
  1. div.box_background {
  2.      background-color: white;
  3.      height: 100%;
  4.      filter:alpha(opacity=75); /* IE’s opacity*/
  5.      left: 0px;
  6.      opacity: 0.75;
  7.      position: absolute;
  8.      top: 0px;
  9.      width: 100%;
  10.      z-index: 99;
  11. }

Drop shadow div (IE)

Posted in HTML, css by dev1 on the February 4, 2008

<div style=” color: White; background-color: Maroon; width: 200px; height: 200px; filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=5, OffY=5, Color=’gray’, Positive=’true’)”> xxxxxxxxxx</div>

ref: http://msdn2.microsoft.com/en-us/library/ms532985.aspx

Solve problem Div Height for difference Browser (ie 6, ie 7, firefox and other)

Posted in CSS-xhtml, HTML, css by dev1 on the December 18, 2007

<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.

Table Wizard

Posted in HTML by dev1 on the December 13, 2007