In this post I will explain padding and margin and their purpose.
First I will explain the difference between the two.
Padding is like a inside spacing where margin is a outside spacing. Both work in the same way with about the same effect.
Now the values of them can be used differently.
You can have one of the several
in
px
em
pt
%
Now their are may ways to get the same effect with padding and margin
You can specify which side like this
padding-top:25px;
padding-bottom:25px;
padding-right:50px;
padding-left:50px;
Now you can also use padding in one line by doing something like this. All 3 of these below will give you the same effect as the code above.
padding: 25px 50px; ( 2 digit)
padding 25px 50px 25px 50px (4 digit)
padding 25px 50px 25px (3 digit)
With 2 digit padding or margin the first digit is top and bottom where the second is left and right.
With 4 digit padding or margin it works like a clock. top, right, bottom, and left.
With 3 digit it padding or margin the first digit is top, the second is left and right and the third is bottom.
10 comments:
That was all very good to know - thank you!
Great, now where to put them? I'm trying to get rid of the padding/margin on my left sidebar.
Thanks!
Well depending on your template it could be a number of places. If you want you can send me a contact email with your blog URL in it. I would be happy to look it over for you.
Hi Aires,
I am having a similar problem... I think. All of the sudden there is a solid vertical bar on the far right of my blog. I've viewed my blog from work countless times and it's never shown up until today, and it's causing a vertical scroll bar to appear on the bottom of the page.
When I'm viewing my blog at home there is no scroll bar- however, if I make the browser window smaller, the vertical scroll appears and then when I scroll to the right, there it is. This is driving me caraaaaaaazy! My blog is transitioning to .com, could this have anything to do with it?
ALSO: all of the sudden my header photo was really small today. When I go to add a photo, there is an option to resize- SOMETIMES it says resize to 760, and other times it says to 1000... why is it different on different occasions? So bizarre. HAAAAAAAAAAALP please!
livedupthestairs.blogspot.com
Hi Nichole
I have a wide screen computer so for me I don't see the bar. Now if I change the width of the browser window to less the 1000px then I notice the side scroll and a green bar on the outside. Oddly enough this should not be there I don't believe its causes by anything in your template.
Another thing I see is you have a share link way outside your template to the left. If you will look at this screen shot below you can see.
http://img825.imageshack.us/img825/8364/sharelink.png
You can also see in the screen shot their is no bar to the right of the template.
Another thing I wanted to ask you was about this code below. Is this something you added into your template?
scrollbar[orient="vertical"] { display: none !important; }
hello there AiresOFwAr.
How can i decrease the space between posts. Because there is a huge gap between each post.
Here is my blog
http://3dotsoncheek.blogspot.com
I hope u can help me :(
ive tried google for the solution but nothing seems to help
Hi Lisa
I am looking at your blog and it seems the space is coming from a inline ads. For some reason they are not displaying properly. This maybe caused by a corrupted template which you can fix by going to the Edit HTML page and revert widgets back to default. This will remove any of the 3rd part scripts you may have added near the bottom of your template coding.
The other idea I have that might be causing this is. You have quite a lot of content displaying as far as Tweak Page Size.
If nothing seems to be working then you could always remove these ads. If you go to Design-->Page Elements--> Click the Edit option in the Blog Post section--> Uncheck the "Show Ads Between Post" option. Then save and that should remove the spacing.
thankyou! i did the last part and it works!thankyou thank you thankyou so much
Hi AiresOFwar, I have a problem I think maybe you can help me
I was making same modifications to my blog to leaved as I like and at the end of the chances I see a column of space on the end of right side
How code can change or add to romove that space to be as the left side?
http://thebestonlinestores.blogspot.com/
Hi Ariel,
I am not seeing any space on the right side that looks out of place. Maybe you can elaborate.
Post a Comment
Please don't post hyperlinked text within the comment box! It will not be published and you will be marked as spam.