Monday, December 8, 2014

Fix website on IE 8 or more

Did you know that there are specific CSS hacks for IE that allow you to target IE8, IE7 and IE6? 

During one of our latest projects we came across some specific CSS issues with our client website rendering on IE6 and IE8. 

 Yes, Internet Explorer is the bane of a web developers life but the browsers prevalence demands we just get on and deal with it.

A Warning on Hacking Your CSS

Hacking your CSS may seem a quick fix for getting your styles to work across browser types, however, you should really be using conditional statements from within your HTML. e.g.

<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="<?php     echo LANGUAGE?>"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="<?php     echo LANGUAGE?>"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="<?php     echo LANGUAGE?>"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="<?php     echo LANGUAGE?>"> <!--<![endif]-->



Sets up the C5_EXECUTE constant with a value of true:

<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
?>  


IE7.js is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6.

IE7.js

Upgrade MSIE5.5-6 to be compatible with MSIE7.
<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js"></script>
<![endif]-->

IE8.js

Upgrade MSIE5.5-7 to be compatible with MSIE8.
 <! - [If lt IE 8]>
 <Script src = "http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"> </ script>
 <! [Endif] ->
You do not need to include IE7.js if you are using IE8.js

IE9.js

Upgrade MSIE5.5-8 to be compatible with modern browsers.
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
You do not need to include IE7/IE8.js if you are using IE9.js


Css: 

Change  all  background  rbg(0,0,0,0)  => transparent;

Saturday, December 6, 2014

How to Set Up Keyword Tags on Your Blogspot Blog

Step  1 Sign in to your Blogger account. Step  2 Click on your blog’s title and click “Template.” Step  3 Click “Edit Html...

Friday, December 5, 2014

Auto Read More with thumbnail for Blogspot

Auto Read More with thumbnail for Blogspot How to make posts in the blog homepage to be displayed with an automatic "read more" button and a thumbnail. To be more specif...

Get datetime in javascript

new Date() Creates a  Date  object with current date and time: var now = new Date();now.format("dd/M/yy h:mm tt"); //Edit: chan...

Thursday, December 4, 2014

Hello everybody !

First of all thank you for giving this wonderful opportunity to me to introduce my self in front of you. My self Brook . I basically bel...