Tuesday, 20 September 2011

5 cheap CSS tricks


5 cheap CSS tricks

CSS, or Cascading Style Sheets, is a new web technology that gives web authors enhanced control over the look of elements in a web page. Things once considered unchangeable, such as the underline beneath links, the color of form elements, the spacing between text, and more, can now all be altered, thanks to CSS. In this article I'll show you the source code to 5 of the most common (not to mention cheapest) CSS tricks you can add right now to your site.

 1) No-underline links

One of the very first indicators that CSS had arrived was when people browsing the web started reporting a strange phenomena among some sites they surfed to- The text links on those sites did not have an underline! We now know that this is caused by CSS, and below is the code you can use to achieve the same effect. Add it to thehead section of your page:
<style type="text/css">
a{
text-decoration:none;
}
</style>
For better or for worse, all the text links on your page are now not underlined anymore.

 2) Rollover text links

With the huge popularity surrounding rollover image effects, its no wonder I get many mails asking how to create this effect- rollover text links. CSS-P (CSS pseudo classes) allows you to easily give your text links a rollover personality. The link changes color when the mouse rolls over it. Here's the source code for this effect:
<style type="text/css">
a:hover{
color:red;
}
</style>
Like the first code, the above should be inserted in the header section of your page. You can change the keyword "red" to your liking. Here's an example of a rollover link:

 3) Background image for block elements

Do you enjoy giving your tables a background image? If so, you'll love what CSS did with this concept. Using CSS, you can now give any block element a background image. A block element simply refers to elements that define a rectangular area, such as a paragraph <p>, a header <h>, or div <div>. Elements such as <font> and <span> are NOT block elements. To give block elements a background image, simply insert the below CSS code into the element's tag:
<div style="background-image:url('yourimage.gif')">.....</div>
Lets see a couple of examples:

This header has a brownish background

This paragraph has a great looking, skyish background. This paragraph has a great looking, skyish background. This paragraph has a great looking, skyish background

 4) Highlight text

I like to call this effect highlight text, but many simply call it "text with a background color" (how artistic). It allows you to draw attention to specific text by giving it a background color. Take a look at the following paragraph:
Hay webmasters, looking for the perfect tool to create and manage a web site? Allow me to introduce you to NotePad. Its the simplest, fastest, and don't forget, cheapest way to creating and maintaining a site. Why else would it be packaged with Windows 95? You know that Windows 95 is the best operating system available, so whatever comes with it must also be the, eh, best, right?. Don't hesitate, use NotePad today!
Since I want to emphasize the words "simplest, fastest, and cheapest", I use CSS to give that portion of the text a background color of yellow. Here's the source code I used:
<span style="background-color:yellow">simplest, fastest, and don't forget, cheapest</span>
As you can see, just warp the text you want to highlight with the part in bold.

 5) Fancy table borders

Finally, let me wrap things up by showing you a CSS trick for quickly "fancying" up those optional borders of a table. Take a look at the below tables:

Table with green, thin border

Table with thick, red table


The above effect is achieved through the following code, inserted inside the <table> tag:
style="border: 2px solid green"
You can change "2px" and "green" to different values to alter the thickness and color of the border, respectively

Wednesday, 20 April 2011

50 ways to fail an exam... :)


  1. Bring a pillow. Fall asleep (or pretend to) until the last 15 minutes. Wake up, say "oh gee, better get cracking," and scribble furiously. Turn it in a few minutes early.
  2. Get a copy of the exam, run out screaming "Andre, Andre, I've got the secret documents!"
  3. If it is a math or science exam, answer in essay form. If it is long answer or essay exam, answer with numbers and symbols. Be creative. Use the integral symbol.
  4. Make paper airplanes out of the exam. Aim them at the instructor's left nostril.
  5. Talk the entire way through the exam. Read the questions aloud and debate your answers with yourself out loud. If asked to stop, yell out sarcastically,"I'm so sure you can hear me thinking." Then start talking about what a jerk the instructoris.
  6. Bring cheerleaders.
  7. Walk in, get the exam, and sitdown. About five minutes into the exam, loudly say to the instructor, "I don't understand any of this. I've been to every lecture this semester! What's the deal? And who are you? Where's the regular guy?"
  8. Bring a video game. Play withthe volume at max level.
  9. On the answer sheet find a new, interesting way to refuse to answer every question. For example, write "I refuse to answer this question on the grounds that it conflicts with my religious beliefs". Be creative.
  10. Bring pets.
  11. Run into the exam room looking about frantically. Breathe a sigh of relief. Go to the instructor and say "They've found me, I have to leave the country" and run off.
  12. Fifteen minutes into the exam, stand up, rip up all the papers into very small pieces, throw them into the air and yellout "Merry Christmas." If you're really daring, ask for another copy of the exam. Say you lost the first one. Repeat this process every fifteen minutes.
  13. Do the exam with crayons, paint, or fluorescent markers.
  14. Come into the exam wearing slippers, a bathrobe, a towel on your head, and nothing else.
  15. Come down with a bad case of Turet's Syndrome during the exam. Be as vulgar as possible.
  16. Complete the entire exam inanother language. If you don't know one, make one up! For maths or science exams, try using Roman numerals.
  17. Bring things to throw at the instructor when she or he is notlooking. Blame it on the person nearest to you.
  18. As soon as the instructor hands you the exam, eat it.
  19. Walk into the exam with an entourage. Claim you are going to be taping your next video during the exam. Try to get the instructor to let them stay. Tell the instructor to expect a percentage of the profits if they are allowed to stay.
  20. Every five minutes, stand up, collect all your things, move to another seat, and continue with the exam.
  21. Turn in the exam approximately 30 minutes in. Asyou walk out, start commentingon how easy it was.
  22. Do the entire exam as if it was multiple choice and true/false. If it is a multiple choice exam, spell out interesting things (DCCAB. BABE.etc..).
  23. Bring a black marker. Returnthe exam with all questions andanswers completely blacked out.
  24. Get the exam. Twenty minutes into it, throw your papers down violently, swear loudly and walk out triumphantly.
  25. Arrange a protest before the exam starts. You could threaten the instructor that whether or not everyone's done, they are allleaving after one hour to go drink.
  26. At some point during the exam, start crying for mommy.
  27. Every now and then, clap twice rapidly. If the instructor asks why, tell him or her in a very derogatory tone, "the light bulb that goes on above my head when I get an idea is hooked up to a clapper."
  28. Comment on how sexy the instructor is looking that day.
  29. Come to the exam wearing ablack cloak. After about 30 minutes, put on a white mask and start yelling "I'm here, the phantom of the opera," until they drag you away.
  30. Go to an exam for a class you have no clue about, where you know the class is very small, and the instructor would recognize you if you belonged. Claim that you have been to every lecture. Fight for your right to take the exam.
  31. Upon receiving the exam, look it over. While laughing loudly, say "you don't really expect me to waste my time on this drivel? 'Days of our Lives' is on!"
  32. Bring a water pistol with you. Enough said.
  33. From the moment the exam begins, hum the theme to 'Jeopardy'. Ignore the instructor's requests for you to stop. When they finally get you to leave one way or another, begin whistling the theme to 'The Bridge on the River Kwai'.
  34. Start a brawl in the middle of the exam.
  35. If the exam is maths or science related, make up the longest proofs you could possibly think of. Work PI and imaginary numbers into most equations. If it is a written exam, relate everything to your own life story.
  36. Come in wearing a full knight's outfit, complete with sword and shield.
  37. Bring a friend to give you a back massage the entire way through the exam. Insist this person is needed, because you have bad circulation.
  38. Bring cheat sheets from another class (make sure this is obvious... like history notes for a calculus exam) and staple them to the exam, with the comment "Please use the attached notes for references as you see fit."
  39. When you walk in, complainabout the heat. Strip.
  40. After you get the exam, call the instructor over, point to anyquestion, ask him or her to work it out for you.
  41. Wrestlemania.
  42. Bring balloons, blow them up, and start throwing them around like they do before concerts start.
  43. Try to get people in the room to do the Mexican wave.
  44. Play frisbee with a friend at the other side of the room.
  45. Bring some large, cumbersome, ugly idol. Put it right next to you. Pray to it often. Consider a small sacrifice.
  46. Get deliveries of candy, flowers, balloons, and telegramssent to you every few minutes throughout the exam.
  47. During the exam, take apart everything around you. This includes desks, chairs, and anything you can reach.
  48. Complete the exam with everything you write being backwards at a 90 degree angle.
  49. Bring a musical instrument with you and play various tunes. If you are asked to stop, claim "it helps me think." Bring a copy of the student handbook with you, challenging the instructor to find the section onmusical instruments during finals. Don't forget to use the phrase "Told you so".
  50. Answer the exam with the"Top Ten Reasons Why Professor (name) Sucks."

Thursday, 31 March 2011

How the poor live

One day, a father of a very wealthy family took his son on a trip to the country with the firm purpose of showing his son how poor people live. They spent a couple of days and nights on the farm of what would be considered a very poor family. On their return from their trip, the father asked his son, “How was the trip?”

“It was great, Dad.”

“Did you see how poor people live?” the father asked.

“Oh yeah,” said the son.

“So, tell me, what did you learn from the trip?” asked the father.


The son answered, “I saw that we have one dog and they had four. We have a pool that reaches to the middle of our garden, and they have a creek that has no end. We have imported lanterns in our garden, and they have the stars at night. Our patio reaches to the front yard, and they have the whole horizon. We have a small piece of land to live on, and they have fields that go beyond our sight. We have servants who serve us, but they serve others. We buy our food, but they grow theirs. We have walls around our property to protect us; they have friends to protect them.”

The boy’s father was speechless.

Then his son added, “Thanks, Dad, for showing me how poor we are.”

AAO BHRASTACHAAR KO KHATAM KARE :-)


Say NO to Corruption. Follow the 10 COMMANDMENTS.




{1} BE CONFIDENT

Be firm. Be assertive.
Address officers by their names
without being rude.




{2} DO YOUR HOMEWORK

Read rules, regulations and
citizen's charters.
Demand services accordingly.




{3} DO IT YOURSELF

Avoid Touts, Agents
and middle men.




{4} GET RECEIPTS

Insist on receipts for all payments.
Demand acknowledgement for
Documents/forms submitted.




{5} SEEK REASONS

Do not accept verbal rejections,
demand in writing why your
document/form is being rejected.




{6} Use RTI

File applications under RTI.
Get details if officer refuse
to provide information.




{7} REFUSE TO BRIBE

Firmly and openly say that
you will not give Bribes.




{8} FILE COMPLAINTS

Report demands for bribes,
unnecessary delays or rudeness to
vigilance and senior officials.




{9} RECORD EVIDENCE

Record conversation on your mobile,
take photographs of the corrupts and
attach to your complaints.




{10} TRY GANDHIGIRI

Tuesday, 29 March 2011

Spellings are Important??

Spellings are Important??   

Read below to believe it : 

I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid. Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoatnt tihng is taht ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it wouthit a porbelm. Tihs is bcusease the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Amzanig huh? Yeah, and I awlyas thought  slpeling was ipmortantt.