Make your blogger template width fluid in no time – Compatible with all resolutions

Although a majority of users use 1024×768 screen resolution and we design our blogs and websites taking into consideration of that resolution but a question arises here that why should not we let users with higher screen resolution to take full advantage of their screen instead of getting a fixed 1024px width!

Well its not that tough! I have done this using my basic knowledge of CSS only!biggrin Lets see how we can do this! The main concept behind this is to make your blogger template of fluid width

Process:

  • Goto Layout>Edit HTML
  • Now scroll down until you see some thing like this [Search for Wrapper]
  • Note down the current width of your blogger template and make it 100% [Or lesser value if you want]
  • Now scroll down again to find the #main and #sidebar CSS. They should look some thing as given below in the image
  • Note that the for main “width: 650px;” and for sidebar “width: 300px;”. As the outer wrapper was of 1000px width so in terms of percentage main width should be (650/1000)*100 = 65 % and sidebar should be 30%. So change it to their respetive values so that it ultimately looks similar to this:

    #main {
    width: 65%;
    //Other values
    }

    Please note that these values are for illustration only!

  • Then save your template and see your blog! Also try it on different resolution from here You should notice the changes wink

Tip:
Want to make the main posts to leave some margin at left! Just add this style to your #main css padding: 0 10px; So that it ultimately looks like

#main {
width: 65%;
float: $startSide;
padding: 0 10px;
background-color: YOUR COLOR;
//any other CSS design of your choice

word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

~~The End~~

RATE IT: (1) Sucks (2) Stupid (3) Kewl (4) Rad (5) Wicked

4 comments

  1. Anjali

    Very useful tutorial,but unfortunately lot of people dont take the full advantage of css.

  2. Jenson Taylor

    I am going to try this. It’s a good idea but the problem is I don’t want to modify my template code too much just in case it stops working fully with Blogger widgets.

  3. Bikramjit Sarker

    The look and style of your blog is awesome!
    I reached here searching for tips to make my blog fluid but I spent my time playing with your page tabs. 😀

Comments are closed.