Archive for the ‘Websites’ Category

CSS Hacks: A definite guide

Sunday, April 25th, 2010

What are CSS-hacks?

While developing a web site or web application we need to check the webpage in different browsers to know if it is rendering as expected as per the design or not, when the rendered page differs from browser to browser we need to fix that part to make it looks the same in all browsers, at least major used browsers like IE6, IE8, FF2.0, FF3.0, Safari, Opera and Google Chrome for this we will use some code that code is nothing but a “hack” as we are coding in CSS its called a “CSS hack” in other words a “CSS work around”.

When do we use a CSS-hack?

As per W3C standards using CSS-hack is strictly not recommended. Nevertheless, at times there will be a need to use it at below situations:

  1. During last minutes changes when there is no time to fix.
  2. Upon specific client requests(very rare).
  3. While working on unfinished web jobs where there are code replicas, i.e. when CSS specificity doesn’t work.

Tageting IE

Internet Explorer in short IE is still the most used browser world wide. So its very important to tame IE, though there are number of IE specific hacks from IE5.5 through IE8 its highly recomended to use conditional comments instead of hacks.

Conditional comments as a CSS hack

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
   <head>
	<title>Test</title>
	<link href="all_browsers.css" rel="stylesheet" type="text/css">
	<!--[if IE]> <link href="ie_only.css" rel="stylesheet" type="text/css"> <![endif]-->
	<!--[if lt IE 7]> <link href="ie_6_and_below.css" rel="stylesheet" type="text/css"> <![endif]-->
	<!--[if !lt IE 7]><![IGNORE[--><![IGNORE[]]> <link href="recent.css" rel="stylesheet" type="text/css"> <!--<![endif]-->
	<!--[if !IE]>--> <link href="not_ie.css" rel="stylesheet" type="text/css"> <!--<![endif]-->
	</head>
	<body>
		<p>Test</p>
	</body>
</html>
  IE6 IE7 IE8 FF3 Safari Opera Chrome
_color: blue 1 0 0 0 0 0 0
*:first-child+html #box { color: blue } 0 1 0 0 0 0 0
*+html #box { color: blue } 0 1 0 0 0 0 0
color /*\**/: blue\9 0 0 1 0 0 0 0
:root *> #box { color: blue } 0 0 0 1      
*color: blue; 1 1 0 0 0 0 0
#color: blue; 1 1 0 0 0 0 0
color: blue\9 1 1 1 0 0 0 0
html>body #box { color: blue } 0 1 1 1 1 1  
color: blue; 1 1 1 1 1 1 1

Selector hacks

Red if * html matches in this browser
Red if *:first-child+html matches in this browser
Red if html>body matches in this browser
Red if html>/**/body matches in this browser
Red if html:first-child matches in this browser
Red if html[xmlns*=""] body:last-child matches in this browser
Red if body:nth-of-type(1) matches in this browser
Red if div:nth-of-type(1n) matches in this browser
Red if body:first-of-type matches in this browser
Red if @media screen and (-webkit-min-device-pixel-ratio:0) matches in this browser
Red if html[xmlns*=""]:root matches in this browser
Red if *|html[xmlns*=""] matches in this browser
Red if :root *> matches in this browser
Red if *+html matches in this browser
Red if * > matches in this browser
Red if html:only-child matches in this browser
Red if @media all and (min-width: 0px) matches in this browser
Red if html:lang(en)>body matches in this browser
Red if body:nth-of-type(1) matches in this browser
Red if x:-moz-any-link matches in this browser
Red if x:-moz-any-link, x:default matches in this browser

Attribute hacks

Blue if div { _background: blue} matches in this browser
Blue if div { *background: blue} matches in this browser
Blue if div { .background: blue} matches in this browser
Blue if div { background/**/: blue} matches in this browser
Blue if div { background: blue\9;} matches in this browser
Blue if div { background/*\**/: blue\9;} matches in this browser
Blue if div { background: blue !ie;} matches in this browser

I hope you found this information helpful and please don’t mind to include any if I left with your valuable feedback, Thanks!!

U/UI/UX Engineering Interview Questions

Monday, March 15th, 2010

01. What is Usability?

The extent to which a product can be used by specified users to achieve specified goals in a specified context with effectiveness, efficiency and satisfaction.

The simplest definition would be: The shortest time taken to accomplish the task with ease.


02. What does usability measure? or What are components of usability? or What are usability factors?

a. Ease of Learning.
b. Efficiency of use.
c. Memorability.
d. Error frequency.
e. Subjective satisfaction.


03. What is a User-Centered Design(UCD)?

UCD is an approach for employing usability.
It is a structured product development methodology that involves users throughout all stages of web site development considering business objective, user needs, limitations and preferences.


04. What is UCD process?

a. Plan your site.
b. Collecting data from users.
c. Developing prototypes.
d. Writing content.
e.Conducting usability testing with users.


What is Card-Sorting?

Card sorting is a user-centered design method for increasing a system’s findability. The process involves sorting a series of cards, each labeled with a piece of content or functionality, into groups that make sense to users or participants.

Open Card Sorting: Participants are given cards showing site content with no pre-established groupings. They are asked to sort cards into groups that they feel are appropriate and then describe each group. Open card sorting is useful as input to information structures in new or existing sites and products.

Closed Card Sorting: Participants are given cards showing site content with an established initial set of primary groups. Participants are asked to place cards into these pre-established primary groups. Closed card sorting is useful when adding new content to an existing structure, or for gaining additional feedback after an open card sort.


Advantages and disadvantages of Card-Sorting methods?

Advantages – Simple, Cheap, Quick to execute, Established, Involves users, Provides a good foundation.

Disadvantages – Does not consider users’ tasks, Results may vary, Analysis can be time consuming, May capture “surface” characteristics only.


When should card sorting be used?

It should be used as an input to:

a. designing a new site

b. designing a new area of a site

c. redesigning a site

Card sorting is not an evaluation technique and will not tell you what is wrong with your current site.


Social Bookmarking – WST?

Wednesday, February 10th, 2010

Social Bookmarking – the buzz is around, what is it(WST) anyway?

Social bookmarking is a netizen’s method to share, organize, search and manage bookmarks of web resources. Unlike file sharing, the resources themselves aren’t shared, merely bookmarks that reference them, just like an Index page of a book where all the content of the book is referenced.

In a social bookmarking system, users save links to web pages that they want to remember and/or share. These bookmarks are usually public, and can be saved privately, shared only with specified people or groups, shared only inside certain networks, or another combination of public and private domains. The allowed people can usually view these bookmarks chronologically, by category or tags, or via a search engine.

Eye-catching social bookmarking icons are an added advantage for a website. The more attractive the icons the more probability of website visitors clicking on them gets increased helping everybody to promote and bookmark your content.

Blinkbits http://www.blinkbits.com
Blinklist http://www.blinkbits.com
Blogdigger http://www.blogdigger.com
Blogmarks http://blogmarks.net
Buzznet http://www.buzznet.com
Citeulike http://www.citeulike.org
Co.mments http://co.mments.com
Connotea http://www.connotea.org
Delicious http://del.icio.us
Digg http://www.digg.com
Fark http://www.fark.com
Feedmelinks http://feedmelinks.com
Feedster http://feedster.com
Findory http://findory.com
Flickr http://www.flickr.com
Furl http://www.furl.net
Google http://www.google.com
Ice Rocket http://www.icerocket.com
Linkagogo http://www.linkagogo.com
Magnolia http://ma.gnolia.com
Netscape http://www.netscape.com
Newsvine http://www.newsvine.com
NowPublic http://www.nowpublic.com
OnlyWire http://www.onlywire.com
PayPal http://www.paypal.com
Reddit http://reddit.com
RocketNews http://www.rocketnews.com
Scuttle http://scuttle.org
Scoopt http://www.scoopt.com/words
Shadows http://www.shadows.com
Simpy http://www.simpy.com
Slashdot http://slashdot.org
Smarking http://www.smarking.com
Sphere http://www.sphere.com
Spurl http://www.spurl.net
StumbleUpon http://www.stumbleupon.com
Technorati http://www.technorati.com
Webride http://webride.org
Wists http://www.wists.com
Yahoo http://www.yahoo.com

Please list out any if I missed something. ;-)