Sunday, 17 July 2011

Using Max & Min width in IE6

Min & Max width are both great tools to have in your design arsenal, but unfortunately they don’t work in IE6, so what do we do?
We usually lock down the width of our site instead of creating the ideal fluid layout we want, sacrificing user experience for
out of date browsers.

Luckily, we can use a short JavaScript command targetting IE to accomplish a nice fluid layout with max & min widths in IE6:

#page-wrap
{
min-width:800px;
max-width:1000px;
width:expression(document.body.clientWidth < 800? "800px" : document.body.clientWidth > 1000? "1000px" : "auto");
}


In the above example, you can see that the smallest width for this page is 800px, and the largest is 1000px; not much of a flex,
but the concept can be applied to any element.

And if you only wanted to use min-width:

#page-wrap
{
min-width:800px;
width:expression(document.body.clientWidth < 800? "800px": "auto" );
}

adn also can try this-one


.with_minheight {
  min-height:550px;
  height:auto !important;
  height:550px;
}

Move window buttons on the left side to the Right

controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window buttons on the left side. We’ll show you how to move the buttons back to the right.

How to move the window buttons

We’ll use the graphical program gconf-editor to change this configuration file.

Open terminal by pressing ctrl+Alt+T and run this command

gconf-editor

The configuration editor will popup

Monday, 11 July 2011

form coding tests

<?xml encoding="utf8" version="1.0"?><!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">
  <head>
  <style type="text/css">
    .focus_text {
      color:#aaaaaa;
    }
  </style>
  <script language="javascript1.2" type="text/javascript" src="js/jquery.js"></script>
  <script language="javascript1.2" type="text/javascript">
    $(document).ready(function () {
      $('.focus_text').focus(function() {
        if ($(this).val() == $(this).attr('title')) {
          $(this).val('');
      $(this).css({color:'#000000'});
        }
      });

use this for creating sliding tabbed pages

use this for creating sliding tabbed pages



<!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">
  <head>
  <script type="text/javascript" src="jquery.js" language="javascript1.2"></script>
  <script language="javascript1.2" type="text/javascript">
    function slideTo(trgt, mLeft) {
      $(trgt).parent().find('.active_tab').removeClass('active_tab');
      $(trgt).addClass('active_tab');

      $('#divTabbedSlider').animate({'margin-left':mLeft}, 500);
    }
  </script>

Sunday, 10 July 2011

Use Any Font in HTML with better control


Step 1: Download Cufón

Cufon homepage
Visit Cufón’s website and right-click on the “Download” button at the top. Choose “Save-As” and place it on your desktop.

Step 2: Convert a Font

Choose A Font
In order to function, we need to use the font converter utility on the website. Alternatively, you may download the source code and convert your fonts locally. For the purposes of demonstration, I’ve chosen to use an obnoxious font: “Jokerman”. Note – Windows users: you may have to copy the font from your “FONT” folder to the desktop for this to work.