Organize CSS Properties Alphabetically

Which example would you think is faster to find the margin-right property?Example 1print?div#header h1 { z-index: 101; color: #000; position: relative; line-height: 24px; margin-right: 48px; border-bottom: 1px solid #dedede; font-size: 18px; } div#header h1 {z-index: 101;color: #000;position: relative;line-height: 24px;margin-right: 48px;border-bottom: 1px solid #dedede;font-size: 18px;}Example 2print?div#header h1 { border-bottom: 1px solid #dedede; color: #000; font-size: 18px; line-height: 24px; margin-right: 48px; position: relative; z-index: 101; } div#header h1 {border-bottom: 1px solid #dedede;color: #000;font-size: 18px;line-height: 24px;margin-right: 48px;position: relative;z-index: 101;}You can’t tell me that Example 2 isn’t faster. By alphabetizing your properties, you are creating this consistency that will help you reduce the time you spend searching for a specific property.I know some people who organize one way and others who organize another, but at my company, we made a consensus decision to all organize alphabetically. It has definitely helped when working with other people’s code. I cringe every time I go into a stylesheet where the properties are not sorted alphabetically.

Read More »

Selector syntax

A simple selector is either a type selector or universal selector followed immediately by zero or more attribute selectors, ID selectors, or pseudo-classes, in any order. The simple selector matches if all of its components match.A selector is a chain of one or more simple selectors separated by combinators. Combinators are: whitespace, ">", and "+". Whitespace may appear between a combinator and the simple selectors around it.The elements of the document tree that match a selector are called subjects of the selector. A selector consisting of a single simple selector matches any element satisfying its requirements. Prepending a simple selector and combinator to a chain imposes additional matching constraints, so the subjects of a selector are always a subset of the elements matching the rightmost simple selector.One pseudo-element may be appended to the last simple selector in a chain, in which case the style information applies to a subpart of each subject.

Read More »

Border-radius: create rounded corners with CSS!

W3C has offered some new options for borders in CSS3, of which one is border-radius. Both Mozila/Firefox and Safari 3 have implemented this function, which allows you to create round corners on box-items. One of the most talked about aspects of CSS3 is border-radius property. Rounder corners can be created independently using the four individual border-radius properties (border-bottom-left-radius, border-bottom-right-radius, border-top-left-radius, border-top-right-radius.) We can use border-radius shorthand property for all four corners simultaneously. It will take a single value for all the four corners.This is an example:Mozilla/Firefox and Safari 3 users should see a nicely rounded box, with a nicely rounded border.The code for this example above is actually quite simple:These different corners can also each be handled on their own, Mozilla has other names for the feature than the spec says it should have though, as it has f.i. -moz-border-radius-topright as opposed to -webkit-border-top-right-radius:Mozilla/Firefox and Safari 3 users should see a box with a rounded left upper corner.Mozilla/Firefox and Safari 3 users should see a box with a rounded right upper corner.Mozilla/Firefox and Safari 3 users should see a box with a rounded left lower corner.Mozilla/Firefox and Safari 3 users should see a box with a rounded right lower corner.These...

Read More »

CSS Design Principles

CSS design principlesCSS3 as CSS2 and CSS1 before it, is based on a set of design principles: Forward and backward compatibility. CSS2 user agents will be able to understand CSS1 style sheets. CSS1 user agents will be able to read CSS2 style sheets and discard parts they don't understand. Also, user agents with no CSS support will be able to display style-enhanced documents. Of course, the stylistic enhancements made possible by CSS will not be rendered, but all content will be presented. Complementary to structured documents. Style sheets complement structured documents (e.g., HTML and XML applications), providing stylistic information for the marked-up text. It should be easy to change the style sheet with little or no impact on the markup. Vendor, platform, and device independence. Style sheets enable documents to remain vendor, platform, and device independent. Style sheets themselves are also vendor and platform independent, but CSS2 allows you to target a style sheet for a group of devices (e.g., printers). Maintainability. By pointing to style sheets from documents, webmasters can simplify site maintenance and retain consistent look and feel throughout the site. For example, if the organization's background color changes, only one file needs to be changed. Simplicity. CSS2...

Read More »

കൽപ്പാത്തി രഥോത്സവ സമരം

കൽപ്പാത്തി രഥോത്സവ സമരം (1924): മലബാറിലെ അവർണ്ണരുടെ സഞ്ചാരസ്വാതന്ത്ര്യ പോരാട്ടം കേരള നവോത്ഥാന ചരിത്രത്തിലും പൗരാവകാശ പോരാട്ടങ്ങളിലും സുവർണ്ണ ലിപികളിൽ രേഖപ്പെടുത്തേണ്ട ഒരു സുപ്രധാന അധ്യായമാണ് 1924-ൽ പാലക്കാട് നടന്ന കൽപ്പാത്തി രഥോത്സവ സമരം. പാലക്കാട് നഗരത്തിലെ പ്രസിദ്ധമായ കൽപ്പാത്തി ശ്രീ വിശ്വനാഥസ്വാമി ക്ഷേത്രത്തിലെ രഥോത്സവത്തോടനുബന്ധിച്ച്, ക്ഷേത്രത്തിന് ചുറ്റുമുള്ള അഗ്രഹാര വീഥികളിലൂടെ അയിത്ത ജാതിക്കാർക്ക് (ഈഴവർ, ദളിതർ തുടങ്ങിയവർക്ക്) സഞ്ചരിക്കാനുള്ള അവകാശം നിഷേധിക്കപ്പെട്ടതിനെതിരെ ഉയർന്നുവന്ന ജനകീയ പ്രക്ഷോഭമാണിത്. തിരുവിതാംകൂറിൽ ചരിത്രപ്രസിദ്ധമായ വൈക്കം സത്യാഗ്രഹം നടക്കുന്ന അതേ കാലയളവിൽ, മദിരാശി സർക്കാരിന്റെ കീഴിലായിരുന്ന ബ്രിട്ടീഷ് മലബാറിൽ നടന്ന ഈ സമരം, കേവലം ഒരു ക്ഷേത്രാചാരത്തിനെതിരെയുള്ള പ്രതിഷേധമായിരുന്നില്ല; മറിച്ച്, പൊതുഖജനാവിൽ നിന്നും പണം ചിലവാക്കി സംരക്ഷിക്കുന്ന പൊതുനിരത്തുകളിൽ എല്ലാ മനുഷ്യർക്കും തുല്യ അവകാശമുണ്ടെന്ന് പ്രഖ്യാപിച്ച അനിഷേധ്യമായ മനുഷ്യാവകാശ പോരാട്ടമായിരുന്നു.¹ ചരിത്ര പശ്ചാത്തലവും അഗ്രഹാരങ്ങളിലെ ജാതിവ്യവസ്ഥയും പാലക്കാടിന്റെ സാംസ്കാരിക കേന്ദ്രമാണ് കൽപ്പാത്തി. തമിഴ്നാട്ടിൽ നിന്നും കുടിയേറിപ്പാർത്ത തമിഴ് ബ്രാഹ്മണരായിരുന്നു (അയ്യർ വിഭാഗം) ഈ പ്രദേശത്തെ പ്രധാന താമസക്കാർ. ക്ഷേത്രങ്ങളെ കേന്ദ്രീകരിച്ച് അവർ നിർമ്മിച്ച പ്രത്യേക പാർപ്പിട സമുച്ചയങ്ങളായ 'അഗ്രഹാരങ്ങൾ' കടുത്ത ജാതിവ്യവസ്ഥയുടെയും അയിത്താചാരങ്ങളുടെയും കോട്ടകളായിരുന്നു. കൽപ്പാത്തി വിശ്വനാഥസ്വാമി ക്ഷേത്രത്തിന് ചുറ്റുമുള്ള വീഥികളിൽ ബ്രാഹ്മണർക്കും മറ്റ് ഉയർന്ന ജാതിക്കാർക്കും മാത്രമേ പ്രവേശനമുണ്ടായിരുന്നുള്ളൂ. ഈഴവർ, തീയാർ, ചെറുമർ, പുലയർ തുടങ്ങിയ അവർണ്ണ വിഭാഗങ്ങൾക്ക് ഈ അഗ്രഹാര വീഥികളിലൂടെ നടക്കാൻ കർശനമായ വിലക്കുണ്ടായിരുന്നു.² എന്നാൽ ഈ നിരത്തുകൾ കേവലം ക്ഷേത്രത്തിന്റെ സ്വകാര്യ സ്വത്തായിരുന്നില്ല. പാലക്കാട് മുനിസിപ്പാലിറ്റിയുടെ നിയന്ത്രണത്തിലായിരുന്ന ഈ റോഡുകളുടെ അറ്റകുറ്റപ്പണികൾക്കും വഴിവിളക്കുകൾക്കും മറ്റുമായി മുനിസിപ്പാലിറ്റി പൊതുനികുതിയിൽ നിന്നുള്ള ഫണ്ടാണ് ഉപയോഗിച്ചിരുന്നത്. നികുതി നൽകുന്നതിൽ തുല്യപങ്കാളിത്തമുള്ള അവർണ്ണർക്ക്, ആ പണം കൊണ്ട് സംരക്ഷിക്കുന്ന റോഡുകളിൽ പ്രവേശനം നിഷേധിക്കുന്നത് കടുത്ത അനീതിയായിരുന്നു. ഈ സാമൂഹിക വൈരുദ്ധ്യമാണ് കൽപ്പാത്തി സമരത്തിന്റെ അടിസ്ഥാന കാരണം.³ ദേശീയ പ്രസ്ഥാനങ്ങളുടെ സ്വാധീനവും ശബരി ആശ്രമവും 1920-കളിൽ കേരളത്തിലുടനീളം വലിയ സാമൂഹിക ഉണർവ്വ് പ്രകടമായിരുന്നു. 1924 മാർച്ചിൽ ആരംഭിച്ച വൈക്കം സത്യാഗ്രഹം മലബാറിലെ അവർണ്ണ ജനതയ്ക്കും വലിയ ആത്മവിശ്വാസം നൽകി. ഈ...

Read More »

The Complete CSS Tags

Text and Fonts font font-family font-size font-weight font-style font-variant line-height letter-spacing word-spacing text-align text-decoration text-indent text-transform vertical-align white-space Colours and Backgrounds color background-color background background-image background-repeat background-position background-attachment The Box Model - dimensions, padding, margin and borders padding, padding-top, padding-right, padding-bottom, padding-left border, border-top, border-right, border-bottom, border-left border-style, border-top-style, border-right-style, border-bottom-style, border-left-style border-color, border-top-color, border-right-color, border-bottom-color, border-left-color border-width, border-top-width, border-right-width, border-bottom-width, border-left-width outline outline-style outline-color outline-width margin, margin-top, margin-right, margin-bottom, margin-left width height min-width max-width min-height max-height Positioning and Display position top right bottom left clip overflow z-index float clear display visibility Lists list-style list-style-type list-style-image list-style-position Tables table-layout border-collapse border-spacing empty-cells caption-side Generated Content content counter-increment counter-reset quotes Paged Media page-break-before page-break-after page-break-inside orphans widows Misc. cursor direction unicode-bidi The Whole Shebang background background-attachment background-color background-image background-position background-repeat border border-collapse border-color border-spacing border-style border-width bottom caption-side clear clip color content counter-increment counter-reset cursor direction display empty-cells float font font-family font-size font-style font-variant font-weight height left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin max-height max-width min-height min-width orphans outline outline-color outline-style outline-width overflow padding page-break-after page-break-before page-break-inside position quotes right table-layout text-align text-decoration text-indent text-transform top unicode-bidi vertical-align visibility white-space widows width word-spacing z-index

Read More »

February 14

February 14 is the 45th day of the year in the Gregorian calendar. There are 320 days remaining until the end of the year (321 in leap years).February 14 is internationally known as Valentine's Day, named after Saint Valentinus of Terni, in Italy, executed in 270.Births * 1404 - Leone Battista Alberti, Italian painter and philosopher (d. 1472) * 1468 - Johann Werner, German mathematician (d. 1522) * 1483 - Babur, Moghul emperor of India (d. 1530) * 1602 - Francesco Cavalli, Italian composer (d. 1676) * 1680 - John Sidney, 6th Earl of Leicester, English privy councillor (d. 1737) * 1692 - Pierre-Claude Nivelle de La Chaussée, French writer (d. 1754) * 1701 - Enrique Florez, Spanish historian (d. 1773) * 1763 - Jean Victor Marie Moreau, French general (d. 1813) * 1788 - Fernando Sor, Spanish composer (d. 1839) * 1799 - Walenty Wańkowicz, Polish painter (d. 1842) * 1800 - Emory Washburn, 22nd Governor of Massachusetts (d. 1877) * 1812 - Alfred Thomas Agate, American artist (d. 1846) * 1819 - Joshua A. Norton, American eccentric (d. 1880) * 1819 - Christopher Sholes, American inventor (d. 1890) * 1824 - Winfield Scott Hancock, American Civil War Union...

Read More »

Valentine’s Day

Valentine's Day or Saint Valentine's Day is a holiday celebrated on February 14 by many people throughout the world. In the West, it is the traditional day on which lovers express their love for each other by sending Valentine's cards, presenting flowers, or offering confectionery. The holiday is named after two among the numerous Early Christian martyrs named Valentine. The day became associated with romantic love in the circle of Geoffrey Chaucer in the High Middle Ages, when the tradition of courtly love flourished.An alternative theory from Belarus states that the holiday originates from the story of Saint Valentine, who upon rejection by his mistress was so heartbroken that he took a knife to his chest and sent her his still-beating heart as a token of his undying love for her. Hence, heart-shaped cards are now sent as a tribute to his overwhelming passion and suffering.The day is most closely associated with the mutual exchange of love notes in the form of "valentines." Modern Valentine symbols include the heart-shaped outline, doves, and the figure of the winged Cupid. Since the 19th century, handwritten notes have largely given way to mass-produced greeting cards.. The sending of Valentines was a fashion in...

Read More »

Rounded Corners

When New WordPress started using this i though you know Internet Explorer is definitely out now when i'm doing some css work that needs rounded corners I'm mostly using only this technique because buyers are ok with it although it's just for FireFox and Safari. And since most of people still don't know about this i figured it's good thing to share.Of course i'm talking about Border-radius property for FireFox and Safari 3 (only). And here are some nice examples how to use it.#box { background: #eee; border: 1px solid #ccc; padding: 15px; -moz-border-radius: 10px; -webkit-border-radius: 10px; }And of course you don't have to make all corners rounded, it can be just top left etc, so the code goes like this (small not, for example you can't make rounded corners on images and stuff like that) * -moz-border-radius-topleft and -webkit-border-top-left-radius * -moz-border-radius-topright and -webkit-border-top-right-radius * -moz-border-radius-bottomleft and -webkit-border-bottom-left-radius * -moz-border-radius-bottomright and -webkit-border-bottom-right-radius

Read More »

ഓര്‍മ്മതന്‍ വാസന്ത നന്ദനത്തോപ്പില്‍

ഓര്‍മ്മതന്‍ വാസന്ത നന്ദനത്തോപ്പില്‍ഒരു പുഷ്പം മാത്രം ഒരു പുഷ്പം മാത്രംഡെയ്സി ഡെയ്സി ഡെയ്സി(ഓര്‍മ്മതന്‍)എവിടെത്തിരിഞ്ഞാലും ഓര്‍മ്മതന്‍ ഭിത്തിയില്‍ഒരു മുഖം മാത്രം ഒരു ചിത്രം മാത്രംഡെയ്സി ഡെയ്സി ഡെയ്സിനിനവിലും ഉണര്‍വിലും നിദ്രയില്‍ പോലുംഒരു സ്വപ്നം മാത്രം ഒരു ദുഖം മാത്രംവ്യോമാന്തരത്തിലെ സന്ധ്യനക്ഷത്രങ്ങള്‍പ്രേമാര്‍ദ്രയാം നിന്റെ നീലനേത്രങ്ങള്‍(ഓര്‍മ്മതന്‍)കവിളത്തു കണ്ണുനീര്‍ച്ചാലുമായ് നീയെന്‍സവിധം വെടിഞ്ഞു പിന്നെ ഞാനെന്നുംതലയിലെന്‍ സ്വന്തം ശവമഞ്ചമേന്തിനരജ്ന്മ മരുഭൂവില്‍ അലയുന്നു നീളേഡെയ്സി ഡെയ്സി ഡെയ്സി(ഓര്‍മ്മതന്‍)

Read More »

History of Kerala Renaissance (കേരള നവോത്ഥാന ചരിത്രം)


Through the paths of history (ചരിത്രവഴികളിലൂടെ )


Dravidian glory (കനലാട്ടം)


ഭാഷാപുരാണം


ഇഷ്ടപ്പെട്ട യാത്രകൾ (Favorite trips)


എനിക്കിഷ്ടപ്പെട്ട കവിതകൾ (My favorite poems)