10 Rounded corners for header and sidebars

Thanks to Beta Blogger for Dummies, I've discovered an easy way to create rounded headers and sidebar enclosures: Cornershop!

Using CSS and HTML code, you can create rounded corners for your header or sidebars in a variety of colours to blend seamlessly with your colour scheme. Simply visit the Cornershop website, specify the colours of the box and background and the roundness of the corners you require. Cornershop will then generate four corners and the CSS/HTML code to paste into your blog template.

Here's how to do it:

  1. Head over to the Cornershop website. Choose the colours of your background and foreground in the boxes provided. If you need the HEX values for your chosen colours, try Cedges Colour Calculator which will generate the values for you.
  2. Choose the roundness of your corners: as a guide I'd say that 10 is neatly rounded, while 20 is very rounded.
  3. If either your foreground or background is patterned or transparent, choose transparency for this element of your design.
  4. Click on "create graphics" to generate the corners and HTML/CSS code you will need to round your corners.
  5. Now, you will need to save the corner image files to your hard drive, then transfer then to an image hosting account as you will need to link to these images in order for them to appear in your blog template. Imageshack and Photobucket both offer free image hosting if you do not already have an account elsewhere. Make a note of the full web address of these images as you will need to use these soon.
  6. Copy both pieces of code (CSS and HTML) provided by Cornershop and paste these into a simple text editor (such as Notepad) for ease of use.
  7. In the CSS section, insert the full web address for all of the image files. For example, for the NE.gif file, the address would be something like: "http://www.imagehosting.com/images/ne.gif" .
  8. Copy and paste this section of modified code just before the closing </b:skin> tag in your template
If you want to round the corners of your header, you should follow these steps:
  • Log into your Blogger dashboard and go to Template>Edit HTML.
  • Now find this line in your template:
    <div id="header-wrapper>
  • Immedietly after this line, paste the following code:
    <div class='box'> <div class='boxtop'><div></div></div> <div class='boxcontent'>
  • Next, find these lines:
    </div> <div id='main-wrapper'>
    Immedietly before these lines, paste this section of code from the HTML provided by Cornershop:
    </div> <div class='boxbottom'><div></div></div> </div>
  • You can preview your blog first to ensure it looks the way you would like, then press save and enjoy the new look of your blog header!
To round the edges of your sidebar, use these steps instead:
  • Find this section in your HTML template:
    <div id='sidebar-wrapper'>
    Immedietly after this line, paste the following code:
    <div class='box'> <div class='boxtop'><div></div></div> <div class='boxcontent'>
  • Now find the closing </div> tag for the sidebar wrapper. Immedietly before this tag, paste the following code:
    </div> <div class='boxbottom'><div></div></div> </div>
  • Preview your template, and if all looks as you would like, save your template and enjoy your rounded corners!

You can use more than one set of corners in your template if you like (for example, one for the header and another for the sidebar). However, if you want to use different colours for these, you must make the image files, the CSS and the DIV elements unique. For example:

  • the image file, ne.gif when used for the sidebar could be renamed sidebar-ne.gif
  • In the CSS code, the elements named .box and .boxtop could be renamed as .sidebar-box and .sidebar-boxtop
  • In the HTML code in your template, you should write <div class="sidebar-box"> rather than the header's <div class="box">

Of course, you could create rounded corners by creating your own transparent gif's in Photoshop or something, but I find the cornershop method to be much simpler and easier! Just be sure to input the correct colours you would like to use when creating your corners as the code you are given for the CSS style will override any colours you use within Bloggers "fonts and colours" section in the dashboard.

Please feel free to leave your comments and suggestions below.

Technorati Tags: | | | |

Author: Amanda Kennedy

Amanda is a professional blogger and web designer living in Sheffield, United Kingdom.

In addition to curating Blogger Buster, you can find Amanda on Twitter, Facebook or add her to your circle on Google+.

Like to share?

You may also like to subscribe to Blogger Buster's RSS feed or receive free email updates of our latest posts.

10 Comments:

  1. I have used Imageshack for Image hosting, however, I prefer to use http://www.yourhostedimages.com , they offer some good features for the Free Account:
    -5 Uploads at a time for the free accounts.
    -360 degree spins for auction ads
    -You can create a gallery and add images to it but also customize your gallery page before sharing the link with your friends.
    -Your pictures do not get displayed in a public gallery on the homepage of the site and are only shared if you want them to be.
    -Can Rotate, resize and rotate images right on the site after uploading

    ReplyDelete
  2. Thanks for the info Ayush! This looks like another great site for free image hosting.

    ReplyDelete
  3. http://igotnebuchadnezzared.blogspot.com/

    How do I get rid of the white rounded corners on my blog?

    ReplyDelete
  4. Thank you very much :) ! I love BlogBuster!!!!

    I'd only add this tip: in order to see the rounded corner, I had to remove the background colour of my sidebar. Otherwise it'll show an annoying "frame"... (maybe it's what happened to Timothy)

    Ciao!!!
    Bye!

    ReplyDelete
  5. Thank you very much :)!

    I'd only add a little tip: in order to get rounded corners on the sidebar, be sure you remove the background color from #sidebar-wrapper !!! Otherwise, it'll show an annoying "frame" around it...

    bye

    ReplyDelete
  6. Here's another site for generating graphics - www.easyimg.com. It's not free, but they will host the images for you or allow you to download and server locally. You just reference their server in your image tag with all the details of the image you want generated and you're done. No downloading unless you want to.

    ReplyDelete
  7. I am thoroughly convinced in this said post. I am currently searching for ways in which I could enhance my knowledge in this said topic you have posted here. It does help me a lot knowing that you have shared this information here freely. I love the way the people here interact and shared their opinions too. I would love to track your future posts pertaining to the said topic we are able to read.

    ReplyDelete
  8. Thanks for taking the time to discuss this, I feel strongly about information and love learning more on this. If possible, as you gain expertise, It is extremely helpful for me. would you mind updating your blog with more information

    ReplyDelete
  9. I’m wanting to scrap me this year as I’m noticing my absence from the albums. Going to get the self timer working harder this year.


    doc martin dvd 1-4 | True Blood DVD

    ReplyDelete
  10. Thanks to share with us the information. I wish you good luck!

    ReplyDelete

Great! You've decided to leave a comment! Please bear in mind that comments are often moderated and that rel="nofollow" is in use and spammy comments will be deleted. Let's have a meaningful conversation instead. Thanks for stopping by!

Browse through the Archives

All existing posts are still available to view while I'm working on the site, albeit seen in a much simpler interface. Feel free to browse through the archives to find tutorials, templates and articles to help you build a better blog:

Blog Archive

© Blogger Buster 2010 Home | About | Contact | Hire Me