Borders in Blogger Template

November 1, 2008

In Blogger default templates (like Minima), you can see that all kinds of borders are present. Borders around header, borders between posts and sidebar gadgets....
In the control menu, Fonts and colors, we are allowed just to change the color of the border. But there's so much more to it....
First, let's check the styles for the borders that we can use:
  • none: no border at all
  • dotted: series of dots.
  • dashed: series of short line segments.
  • solid: single line segment.
  • Double: two solid lines.
  • Groove: 'carved' into the canvas.
  • ridge: like it is coming out of the canvas.
  • inset: like it is embedded in the canvas.
  • outset: like it is coming out of the canvas.


HOW TO CHANGE MY BORDER?
To make any kind of changes, you have to go to:
DASHBOARD ► LAYOUT ► EDIT HTML, and find the code that corresponds to the borders:
border:1px solid $bordercolor;
...your code (CSS style) may be a bit different, (this is example for Minima default template), but it will always start with "border:"
...use CTRL + F (Apple Key+F) to locate the line easily...

We can change:
- the width 1px into 2px, 3px, 4px....
- border style solid, into some other style. Like, dotted, or dashed.....
- change the color, inserting the part in green, below the existing part (in white):

border: 1px solid $bordercolor;
border-color: ff7700;
...with this, we gain control of border color, so Blogger "$bordercolor" is no longer in charge...
..to change the color into the one you want, change the hex value (hex color library here)..

There's also one cool style that I don't see so often in Blogger Designs, and that is using borders for a specific part of the "box". You can change right, left, upper and bottom border. And they can all be in different styles!
I want to add a frame / box / borders around my sidebar section. And, I want left one to be red, right one blue, bottom one green and top one yellow. Here's how:
#sidebar-wrapper {
border-left: 3px solid #FF0000;
border-right: 3px solid #0000FF;
border-bottom: 3px solid #00FF00;
border-top: 3px solid #FFFF00;
padding-left:7px;
width: 220px;
float: $endSide;

...I added some padding-left so that the text is not to close to the border...
...change the width, colors, styles...
...and that's it. I know it looks silly, but you'll experiment, and get a beautiful results....

And if you are up to some more customization, check this article about placing your custom picture as a divider.

Smile!

post signature

Face It! Tell Your Tweets Digg It! Add to Delicious Stumble Upon I Reddit! Mixx it Up! Add to Your Faves

39 comments:

Purple and Paisley said...

you are helping me pretty up my blog in so many ways...through this website and through responses to me in blogger help group...thank you so much! now i have a post divider and double borders!...=)...i can't wait to see what you in store for us next! can i give you a shout out on my blog?

pocket said...

Of course!
And thanks...

luckyless said...

hey bro can you tell how to increase the width of the window where the posts use to appear

and the 2nd thing can you tell how did you added

these options at the top HOME,CONTACT etc

please let us know too

pocket said...

Hey there...
Depends on the template you have....But, normally, you should go to the LAYOUT -->EDIT HTML, and find this part of code (or similar):
__________________________
#outer-wrapper {
width: 660px;
margin:0 auto;
--------------------------

__________________________
#main-wrapper {
width: 410px;
--------------------------

__________________________
#sidebar-wrapper {
width: 220px;
--------------------------

Now, all together, the width is 660px. 410 + 220 + margins(30) = 660.

You can increase 660 in your outer-wrapper, and it will give you some space to increase the post section too.
But if you want to keep 660px (resolution friendly), then decrease your sidebar width, and increase Post section.

And for the Navigation Menu, I'll write a tutorial soon....

Smile!

Cybele's patch said...

How can I get more space between the main wrapper and the right side bar?

Cybele's patch said...

I'm OK. I found out already.

pocket said...

::Cybele::
I'm glad you fixed it...
Smile!

Jenn said...

If you could show us how to make nice round corners for the border like your blog that would be awesome!

pocket said...

I wish that that can be easy as normal borders...But it ain't.
You have to make some corners on your own, upload the pics, place them in the code....and bla bla.
For starters, you can check the "Rounders" template by Blogger. Check the HTML of it, and see how it's done....
Mine is just a big pic. Try to look at it...

Smile!

Seth said...

Hey great post I've just got a question on the border.

I've got a dotted line, nothing fancy. But in between my posts (and in between gadgets on the sidebar) the dotted line just ENDS on the right edge, leaving a half-dot as if it carries off the edge of the wrapper.

Is there a way to align, or center, or make a maximum width for that dotted line, or stop it from going over the edge on the right side?

Thanks, please let me know

pocket said...

Try with increasing your Sidebar wrapper. Find the following part in your code:
#sidebar-wrapper {
width: 250px;
float: right;

...and change 250px into 260px

Smile!

Onyx said...

pocket...

i found this very useful,

but for some reason my borders are not showing up.

All i want to do is place borders between my sections and my daily post.

i tried using the html with my photoshop acct but it will only work on firefox and safari...internet explorers will only see photobucket message in the space replacing the actual border image.

help me!

ive been on the web for 6 whole hours and this is not working.

also.

when viewing my blog on internet explorer it cuts off my blog to fit the screen. how can i add a horizontal scroll bar so reader will see my blog in entirety.

help me please.

pocket said...

Hey Onyx...

For the border/divider you can simply add these two lines under the #main-wrapper:

border-right:3px solid #000000;
padding-right:15px;

...change the width, color to whatever suits you...
...we've added some padding so the text is not too close to the border...

About the "cutting off". I've just sent you an email. Your sizing is not proper. Explanation is a bit longer...

Smile!

deb said...

Hi!
How about the NO BORDER?? I made a background with built in header and I don't want the border there.
HELP! LOL
hugz
deb

pocket said...

Hey Deb...
LAYOUT ► EDIT HTML ► find the following:
#header-wrapper {
width:660px;
margin:0 auto 10px;
border:1px solid #cccccc;
}
#header-inner {
background-position: center;
margin-left: auto;
margin-right: auto;
}
#header {
margin: 5px;
border: 1px solid #cccccc;
text-align: center;
color:#666666;

...and in border, change 1px into 0px (in both places, if you prefer)..

Smile!

deb said...

Your the best!!
Thank you!!!
hugz
deb

Nindy said...

Thank you very much!!
It's soooooooo helpful

thanks
thanks
thanks

;)

Anonymous said...

How do I create boxes with borders (side to side) like this Seller (http://decors-tutorials.blogspot.com/)?

pocket said...

This site is using tables in posts....+ pics that he place in the table already have the border....
Anyway, learn about tables in Blogger:
Tables in blogger..
Smile!

Navi Arora said...

Its really helps me a lot

CBSE

Jahz said...
This post has been removed by the author.
Jahz said...

Hey i tried your tutorial on my site OPM Pinoy Lyrics and it worked! thanks.. ^_^

Miss Penman said...

hey there, how do you change the colour of just one sidebar title?

pocket said...

Miss Penman,

...you'll have to identify the ID of the widget in LAYOUT ► EDIT HTML, and add some heading style for it. Here's the example for Labels:

#Label1 h2 {
color:#000000;
}

...ok?

Anonymous said...

Hi,
How about outer-wrapper gradient borders like this one...
http://www.unikphotography.com/blog/

Ms Hetal Patil said...

Hey i am using Stretch Denim template and i cant find anything like border:1px solid $bordercolor; please help me out. I would love to have border in my blogs too.

http://shirdisaibababhajan.blogspot.com/

Kara said...

Is there a way to take the border off of my header but leave the rest?

shv-trix said...

i want to create vertical space between social bookmarking buttons and recent posts in my blog ,plz help me ,how to do it?
my blog is
http://t4-trix.blogspot.com/2009/08/customise-your-posts-css-text-wrapper.html

Bilal said...

Thank you so so so so so so so so much.
You realy helped me.
Thank you so much

Si Ulat said...

how can i have a fixed round background like u have with a minima template

Lisa said...

how can i make my sidebar borders continue down the entire page? I have tried making a border on the posts, but it leaves gaps at my date. I want to separate the posting area and the sidebar area, even if the sidebar becomes empty down the page.

Stefany Loren said...

thnk you!!!

pocket said...

Lisa,

you can do this like you said. add the border (left or right) to your Post area, and set some margin to deal with the date...

:]

Bundle.Of.Joy said...

Hey may I know how do I put a border at the post section and sidebar? Please help,im using the rounders template but I've add in a 3rd column...

Bundle.Of.Joy said...

oh..figured it out already! hehe...thanks anyways!
I love your tutorials!!

Tara Fisher said...

hey there how do you put borders around the blog and sidebar like this one :
www.blairfowler.blogger.com

pocket said...

Tara,

here's the style you have to place:

padding: 5px;
border:1px solid #FF6FCF;

You have to apply this in your main-wrapper, sidebar-wrapper....
Rest, you'll have to figure out yourself...

Smile!

Darlene said...

very cool!! Thanks for this info. :)

Bubbles Make Him Smile said...

Hey :)
Should mention that you can use these also for keeping the links seperated from each other, and can be used to split comments up (if using the standard comment format)

I went from dashed to solid Thanks to this tutorial! hehe

Say it...

Related Posts with Thumbnails