Tag Archives: css

Making text unselectable in browser

Long time back, I was working in a project which required us to make a particular position of text unselectable by the user on a webpage.

I was looking at various JavaScript solutions and finally found the CSS selectable property. But it was not working across different browsers. It took a considerable effort to make it work across different browsers.

I found this code while browsing through archives and thought of posting it here so that I know where to find it, if I need it and also it would be useful for others who want to do the same thing.

BTW, one quick disclaimer. Even I hate it when people make a particular position of text unselectable in a browser. So use it if it is really needed and also remember it is not fool-proof.

Well, let’s see the code then.

Posted in Web Programming | Tagged , | 3 Comments

Time to strip down again

Like 2006 and 2007, I am going to participate in this year’s CSS Naked day too. This year the date has been changed to April 9th.

If you are wondering what is CSS Naked day, then this is the definition from the official site

The idea behind this event is to promote Web Standards. Plain and simple. This includes proper use of (x)html, semantic markup, a good hierarchy structure, and of course, a good ‘ol play on words. It’s time to show off your <body>.

If even you want to participate then register your site in the official site and then strip the CSS from your site. If you are on WordPress then you can use this plugin.

Happy stripping πŸ˜‰

Posted in Events/Conferences | Tagged , , | 3 Comments

CSS Naked day 07

If you are wondering why my site is lacking its original design then it’s because I am participating in the CSS Naked day 07 like last year.

Well, if you are going to ask me what is CSS Naked day then here is the extract from the official site.

The idea behind this event is to promote Web Standards. Plain and simple. This includes proper use of (x)html, semantic markup, a good hierarchy structure, and of course, a good ‘ol play on words.

If even you want to participate then register your site in the official site and then strip the CSS from your site. If you are on WordPress then you can use this plugin.

Happy stripping πŸ˜‰

Posted in Web Programming | Tagged , , | 1 Comment

My New Year resolutions

Well, yet another year has come and it’s time to take a second look at your life and make some resolutions. (and whether I really follow them throughout the year is another major questions anyways πŸ˜‰ )

And here are some of my New Year resolutions (some of them are in my to-do list for quite some time now) and lets hope that I keep them up πŸ™‚

  • My reading habit has gone down very much, so first resolution – Read at least a book every month (novels don’t count).
  • Learn a new language (or technology) – 2004 in was PHP, 2005 made me to (re)learn JavaScript for AJAX, 2006 it was Python and 2007 it is going to be Ruby.
  • Redesign this site for May 1st CSS Reboot.
  • Start (or at least take part in) an open source project – it’s time to give back something to the community.
  • Try to do some freelance work – Does anybody need a WordPress consultant? πŸ˜‰
  • Buy Apple iPhone – (How about a PayPal donate button here for you guys to donate ha ha πŸ˜‰ )

So guys, what are your resolutions?

Posted in Random/Personal | Tagged , , , | 5 Comments

What is your Level of web knowledge?

Well I am going to flirt with an Internet Meme which is getting spread around. It all started when Emil wrote Levels of CSS knowledge. This inspired Roger to write Levels of HTML knowledge and that got followed by Levels of Javascript knowledge, the levels of Accessibility knowledge etc.

Instead of leaving a comment on each blog separately I decided to write about my level of knowledge here. So here it goes

Apart from letting you know where you are standing, these posts are really fun to read. So what is your Level of web Knowledge?

Posted in Web Programming | Tagged , , , , | Leave a comment

I am going naked

Well don’t stare at me with that strange look πŸ˜‰

My latest super hero Dustin Diaz of Web standards with Imagination is launching the first annual CSS naked day on April 05, 2006 in the spirit of promoting Web Standards along with good semantic markup and proper hierarchy structures.

If you are brave enough then you can also participate by running your sites completely CSS free for the entire day. The point is to show off the “semantic-ness” of your markup. So if you are participating then just leave a comment at the announcement page. The list of participants is maintained in the official page.

Way to go Dustin! I’m in! Any takers?

PS: I was just wondering what if the webmaster has hard coded all style information using inline style attribute and is not using any external CSS file.

PSS
: BTW it’s already on Digg too.

Posted in Random/Personal, Web Programming | Tagged , | 2 Comments