learning, thinking, blogging.
Don’t be too Square… Round Some Corners!
Rounded Corners are a must-have if you want to give your blog a nice Web 2.0 Look and Feel.
Here are some tips to add rounded corners nearly everywere without pain.
1.Rounded Corners with CSS
There is a draft for CSS3 that supports rounded corners, and firefox has a property that somehow mimic the behavior of the proposed draft (there are some difference though…).
This means that it is possible to add a rounded corner effect to your divs by writing something like
<div style=”border: 3px solid #cccccc; padding: 5px; -moz-border-radius: 10px; ” >
Sorry IE users, you’ll see the boring square corners. Maybe it’s time to try Firefox?;)
2.Rounded Corners in AdSense Units
Yes, it’s possible. And if you don’t want to be punished by the God of Web 2.0 you really have to use them instead of the crappy square corners.
Here is an example with a real adsense unit (sorry, to see this you have to visit the article webpage if you’re reading via rss feed…) :
They look cool, don’t you think?
To add rounded corners, you have to log in to your adsense account and create a new ad unit. After the color selection you’ll find a nice drop down list called “corner styles”.
If you’re wandering why you never noticed this cool feature, it’s because it has been released recently. :)
3.Rounded Corners from Google
If you want to create an image or something with rounded corners you can have google draw the corners for you! :D
Just use as image src something like your browser to something like: groups-beta.google.com/groups/roundedcorners? c=999900&bc=ccc&w=34&h=34&a=tr , changing the parameters as follow:
- c : corners color (in hex or plain text form, e.g. ‘red’ or ‘ffccdd’ or ‘fca’)
- bc : background color (same as c, can be omitted for transparent bg)
- w : width (px, default 8)
- h : height (px, default 8)
- a : one of tr (top right) , tl (top left) , bl (bottom left) , br (bottom right)
This is the resulting image:
(thanks to google blogoscoped)
4.Rounded Corners with javascript
There are a lot of javascripts tools that can help you to round the corners of your divs, but I found Nifty Corner really simple to use. :)
You just have to load the .js file and place some calls defining with elements in the page should be rounded. If you don’t bother depending on javascript, this can be a simple solution.
5. Rounded Corners Online Generators
Obviouly there are online rounded corner generators.
They generate images and/or html and css files to be copied and used on your website… You still have to upload images on your server and tweak some code, but it’s better than doing everything on your own :)
- http://www.roundedcornr.com/
- http://wigflip.com/cornershop/
- http://www.fritscher.ch/dojo/roundedcorners.html
- http://www.neuroticweb.com/recursos/css-rounded-box/index.php
If you have some other rounded corners resources, tips or advices, please share them with me and the other readers! I’m waiting for your comments ;)
| Print article | This entry was posted by francesco mapelli on 2007/07/30 at 1:09 pm, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 4 years ago
I tried Nify Corners for a while. It is all very nice until you have some problem … then goes the hell !
Now I generally prefer corners made with bitmaps, either dinamically or statically generated.
about 4 years ago
Yes, that’s the problem with javascript libraries… you have to relay on them and hope that nothing goes wrong :)
What happened to you? rounded corners placed randomly?
I tried Nifty Corners for a few days some months ago, and I had no problems with it.. but I still feel unconfortable with javascript taking care of the appearance of my pages…
about 4 years ago
.. my problem was: no rounded corners at all !!
But it wasn’t the first time I was using these scripts, I just changed something in the new pages (maybe the order of some HTML sections, who knows..) but never had enough time to debug or analyze the issue.
That’s why I abandoned the use of javascripts to display rounded corners: I don’t have enough time to debug such a trivial ‘feature’, it is better to use scripts for something more useful …
… like AJAX-style animations ;)
about 4 years ago
To add a smoother look to your site and since the topic is about rounded corners, then CSS does it all. If you handle CSS pretty well, you don’t even need images to make rounded corners and/or shapes. But in any way, CSS has advanced dramatically nowadays. I don’t use scripts and such to make my ‘easy’ part from the work.
Here’s a link to a nice tutorial well explained on how to do that: http://kalsey.com/2003/07/rounded_corners_in_css/
I hope I’m allowed to add that link, if not, please censor it Francesco. As you can see, that’s a tutorial made back in 2003, think of the possibilities you have now.
And Yes, I DO believe rounded corners and a more modern look of your website is very important
about 3 years ago
I gotta kind of agree but thn I just have to go with the horrible old phrase that content is king.
No matter how ya corners look, if the content sucks you may as well be web -2.0
about 3 years ago
The javascript corners look great! I will try them on my site.
about 3 years ago
Many users have no adapted to modern preferences. They are now ‘expecting’ good looking sites, not just the content. Sure, whenever you’re just doing researches, you’re just interested in the content, but in most cases, a good comfy design is always very pleasing to the user.
Rounded corners all the way..
about 3 years ago
yes, good content has always shown results, but as a statistic, a good design has also shown returning visitors at a higher rate. Adsense rounded corners features have saved me a lot of trouble and now it’s seamlessly implemented in some websites with rounded corners.
about 3 years ago
Must agree with SirCommy using CSS to round corners is by far the best way to go – sure it might take a bit longer but it’s worthed in the end.
about 3 years ago
Thanks for this info. Another great generator: http://www.roundz.net/
about 3 years ago
using css to round the corner can take a long of time and even worst can mess your css file.
about 3 years ago
cssdrive, of course it takes a bit of time, but not that much if you get used to the technique, not to mention there are more techniques to get this done.
about 3 years ago
Hi guys,
I tried nifty and didnt like the idea of having javascript control my page , so i looked around and found http://www.cssroundedcorners.co.uk, no images, no javascript just pure css, its brillient.
about 3 years ago
Hello,
Please add Css Rounded Corners to your online generators list . thanks
about 3 years ago
thats http://www.csssroundedcorners.co.uk, since it didnt show propperly last time. thanks
about 2 years ago
I’m personally a fan of the CSS rounded corners method, though it is a little hacky.
about 2 years ago
Fan CSS.
about 2 years ago
haha I was attracted with the title,i like this article.
about 2 years ago
yeah, corners are now boring since i have seen it on your post.
about 2 years ago
Looks like some browsers are now supporting the CSS3 rounded corners method now
about 1 year ago
Your post is is think very nice and great..thanks..
about 1 year ago
You really know how to fit a round peg into a square hole ha ha!
about 1 year ago
Great! This article is creative? There are a lot of new ideas. It gives me inspiration. I think I will also inspired by you and think about more new ideas.
about 1 year ago
Эта статья является творческим? Есть много новых идей. Это дает мне вдохновение. Я думаю, что будет также основана на тебя и думаю о более новых идей.
about 1 year ago
Rounded is definitely the way to go, it looks way better compared to Squares!
Till then,
Jean
about 1 year ago
Rounded corners make your site look much better and more professional, thanks for showing us how to do it.
about 1 year ago
wow , that helped for my css blogs , well done buddy
about 1 year ago
i am sharing this on facebook
about 1 year ago
alos in twitter and more places , thanks dude
about 1 year ago
its just too much , cant take it anymore guys ….
about 1 year ago
The sites are great to help the online visitors to convert the square corners to rounded. This will also help in easy installation in website too.