Web Development: January 2008 Archives

There are some things which you really want to remember all your time while designing web pages that look the same in Internet Explorer and other browsers. Such experiences come in handy when you need them the next time.

One of such things is the Internet Explorer's conditional comments. IE's conditional comments allow you to insert markup within your code that is rendered in IE but NOT in other browsers. How? This is simple:

<!--[if IE 6]>

Your IE specific stuff here

<![endif]-->


Now, the above chunk gets past the eye of all the other browsers since they act as simple HTML comments in those browsers. Internet Explorer identifies that special [if IE 6] thing and renders the comment block as if it was normal markup.

This also works with other version of IE. You just have to use the appropriate IE version number (it works from IE 5.0 and onwards) such as IE 5.0, 5.5 and 6.0.

IkJample:

Suppose there is a DIV in your code that renders just fine in Firefox but it is appearing to be about 5 pixels above where it should be in IE. You can do the following to get it right easily using style sheets and IE conditional comments:

<style type="text/css">

.myDiv {

     padding-top: 10px;

}

</style>

<!--[if IE 6]>

<style type="text/css">

.myDiv {

     /* Now we add an additional 5 pixels just to */

     /* make sure it also looks fine in IE */

     padding-top: 15px;

}

</style>

<![endif]-->


Hope this is useful to me and to some other readers in the future :) Cya!

Hi!

There are openings for people who are great at PHP and people who are great at web and graphic design in Karachi.

The PHP job is for the day time and the web graphic design job is for the night time. The night time gets a special bonus along with the special salary.

 

Requirements for a PHP Developer job (Full Time, Karachi):

- Good problem solving skills

- Good knowledge of PHP function library

- Good knowledge of PHP Development Frameworks (especially Symphony)

- Neat at XHTML, CSS and JavaScript

 

Requirements for a Web Graphic Designer (Full Time Night Shift, Karachi):

- Great designing skills in terms of creativity and speed

- Good know-how of various Adobe software (primarily Dreamweaver, Photoshop and Flash).

- Good know-how of design techniques such as slicing, web graphic optimization and integration with HTML code.

- Good portfolio of sample designs

- Good knowledge of XHTML and CSS

- Intermediate knowledge of JavaScript

- Knowledge of programming would be a BIG BIG Plus!

 

General Stuff:

- Salary and Benefits: Depends of experience and skill, but generally they are EXCELLENT!

- Special Night shift bonus included

- Free pick and drop

- Monthly Meals allowance

- Should know how to speak and understand English =)

 

The work environment is top-notch and amazingly good for cool guys like us :P

So send in your CV's to kamran _AT_ centricsource _DOT_ com and I'll make sure you are given attention.

I just found a really nice open source software: EditArea

I find it a must to save this URL in a blog entry. This way, I would use it whenever I want it, and at the same time, other people coming across this post on the web may find it very useful.

The URL is here: http://www.cdolivet.net/index.php?page=editArea

I really think people should be bookmarking in their blogs, as it gives enough description, and a safe place for the link.