Category: XHTML


CSS reset Code


HTML tags – Css Reset codes you can used in your style.css

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

Seamless Responsive Image Grid


gallery


<div id=”images”>
<img src=”images/sample1.jpg” alt=”” />
<img src=”images/sample2.jpg” alt=”” />
<img src=”images/sample4.jpg” alt=”” />
<img src=”images/sample5.jpg” alt=”” />

</div>

CSS CODE

#images{
line-height: 0;
-webkit-column-count: 3;
-webkit-column-gap: 0px;
-moz-column-count: 3;
-moz-column-gap: 0px;
column-count: 3;
column-gap: 0px;

}
#images img {
width: 100% !important;
height: auto !important;
}

FOR RESPONSIVE – ADAPTIVE screen

@media (max-width: 400px) {
#photos {
-moz-column-count: 1;
-webkit-column-count: 1;
column-count: 1;
}
}

For more JS based solution : use link link Click here

Make site pixel perfect


For developer who work for PSD to XHTML Conversion jobs, i think the firefox adons pixel perfect
is a must…

About Pixel Perfect:
Pixel Perfect is a Firefox/Firebug extension that allows web developers and designers to easily overlay a web composition over top of the developed HTML.

By toggling the composition on and off, the developer can visually see how many pixels they are off in development. Pixel Perfect also has an opacity option so that you can view the HTML below the composition. By being able to see both the composition and the HTML you can now simultaneously use Firebug while Pixel Perfect is still in action.

Although we do understand that all browsers render slightly different, and sometimes even OS dependencies come into play, we still believe Pixel Perfect is a great tool to help keep the integrity of the perfectionist designer.

WordPress Coding Standards


WordPress Coding Standards

Some legacy parts of the WordPress code structure for PHP markup are inconsistent in their style. WordPress is working to gradually improve this by helping users maintain a consistent style so the code can remain clean and easy to read at a glance.
Continue reading

Firefox extentions ..?


  • Web Developer – The absolute must-have extension for anyone who
    builds web sites, no matter how small or few and far between.
  • MeasureIt – No more eyeballing
    pixel widths!
  • ColorZilla – I shudder to
    think back on the huge PITA of getting hex codes for colors before this lovely extension… taking a screenshot,
    pasting it into Photoshop, using the eyedropper tool… how much time have I saved because of it? (Answer: lots.)
  • FireBug – As mentioned on The Javascript
    Weblog
    ; just darn useful.
  • IE View – All the maddening
    bugs of IE without actually having to launch the browser. (With the caveat that it doesn’t do me much good on my Mac at
    work, where I don’t have IE/Mac installed.)

http://www.hongkiat.com/blog/making-png-image-transparency-work-in-internet-explorer/
http://homepage.ntlworld.com/bobosola/index.htm
Other best solution…

/*

Use in <HEAD> with DEFER keyword wrapped in conditional comments:
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->

*/

//////////////////////  pngfix.js ////////////////////////////

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5) && (document.body.filters))
{
   for(var i=0; i<document.images.length; i++)
   {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
         var strNewHTML = "<span " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
         img.outerHTML = strNewHTML
         i = i-1
      }
   }

}

Outsource to Freelancers, IT Companies, Programmers, Web Designers from India, Russia, USA, and more Certified Professionals. Verified Work.

oDesk My Office/Heaven

Hi,
I work at oDesk…you see i got a heaven at earth? 😦 don’t you believe me..???? ok just signup and test oDesk …i swear if you have little patient and if you interested to earn from home…test heaven happyness then .:) believe me…signup and start apply oDesk job. Give oDesk tests to increase your job quota.

Ohh You want to post a job….No worry…you come at right place …oDesk is the best place where you can get the planet best service from a 10000000000million talents at this planet…you confuse????Oh ok man just go to odesk and post a job….and dont forgot to email me…if i am right…

The On Demand Global Workforce - oDesk

Oh…you want to hire me…all right …just click me

The On Demand Global Workforce - oDesk

I would like you see at odesk soon….

Thanks

shahin

shahinbdboy@gmail/yahoo.com

Japan-website


http://japan-website.com/index.htm