CSS Button

Web design is one of those things that I can easily get addicted to and I’ve been playing with it a lot recently. Just like I used to at the start of my career in the Internet business.

It was many years ago, soon after I started blogging, that Stuart shared a nice technique with me on how an “RSS” image button can be replaced with simple HTML and CSS. This was a more flexible and bandwidth-saving approach than creating an image everytime a change was required.

During recent experiments with CSS and scripting, I realized that there is much more potential in this method than just an orange link on your site. So why not create an online resource for all these experiments and share it with everyone? This is just what I’ve done.

Meet cssbutton.com.

Some of the stuff I’ve come up with:
pakpakistan Lord ofthe Rings xmlatom feed Achtung

On top of all this, I was inspired by this image button maker by Adam Kalsey to create one for CSS. The CSS button maker allows you to generate code for the type of button you want, with the parameters you require. I’ll expand it further later on so that the size and other aspects may be also controlled.

I hope anyone with a webpage finds the site useful and interesting. Let me know what you think.

5 thoughts on “CSS Button

  1. nice work there … but have you seen one thing in your buttons that when switching browers we see different results … why dont you use GD library to generate one like that ? … i mean it would generate a png or gif that would look more cool. and one thing man which editor you use for python ? i am fighting with python but cant find a cool intellisense based editor 🙁

  2. Nice site. You might want to mention that JavaScript is required on the button maker pages.

  3. Waqas, the whole point of the buttons is that you don’t need to use images. There are already a number of button makers out there that generate images. I have yet to check things out using other browsers though.

    As for a Python editor/IDE, I just use vim since my development isn’t exactly hardcore. The only Python IDE that comes to mind is Komodo, but it’s been a while since I checked.

    11011011, been a while. JavaScript is only required on the button pages. I did it to simplify generation of the code in the text box. The button maker uses Python CGI and a little JS is used to focus and select the textbox data.

  4. ok but the issue is with Internet explorer that the left side of your button shows small box of color … what i would suggest that you use the background of the td or div what ever … not the font :S i hope i am hitting a the right spot 🙂

Comments are closed.