Private: MY Note

Every thing you imagine, study it – know it – use it

Chrome Javascript debuging

Executing following code from the browser address bar:

javascript: console.log(3);

successfully prints message to the “JavaScript Console” in Google Chrome.

September 28, 2009 Posted by dev1 | HTML | | No Comments Yet

transparent alpha opacity

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

February 7, 2008 Posted by dev1 | HTML | | No Comments Yet

Drop shadow div (IE)

<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

February 4, 2008 Posted by dev1 | HTML, css | | No Comments Yet

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.

December 18, 2007 Posted by dev1 | CSS-xhtml, HTML, css | | No Comments Yet

Table Wizard

December 13, 2007 Posted by dev1 | HTML | | No Comments Yet