In the templates that Blogger provides, as goodness as all third-party templates, the amount of infinite betwixt elements on the covert is non accidental: designers laid upward a lot of endeavor into working out what spacing testament agree off good, together with thence finding ways to laid upward CSS code into the template thence that the spacing they want is shown inwards whatsoever browser software that Blogger supports.
But inwards that identify are times when you lot may want to alter this spacing, together with this is dull to do, provided you lot are willing to have got the disadvantages of editing your template, together with if you tin locomote out exactly which portion of the template code to change.
The pre-Header gap
Influenza A virus subtype A pet-hate of mine is the blank infinite higher upwardly the starting 4th dimension post, which looks unusual unless you lot laid upward something else inwards to the space. In this example, I've got an AdSense link-unit inwards the expanse highlighted inwards red, merely to create total inwards the empty area:How to alter the gap higher upwardly the post service header
1 Edit your template - don't forget to convey a backup.ii Find this code
h3.post-title, .comments h4 {The exact numbers used inwards your template may alive on different: the commutation affair is to discovery the CSS dominance that is putting a margin higher upwardly the post service header. In the template that I took this representative from (Simple), it's the "0.75em" - which puts 75% of the infinite of a the post-header characters as a blank infinite higher upwardly the header.
font: $(post.title.font);
margin: .75em 0 0;
}
iii Change the first margin value: how much to alter it past times depends on your template, but inwards close cases I've used 0 successfully.
In CSS, when a margin tilt has iii numbers beside it, they refer to the
- top,
- left-and-right,
- bottom
iv Click Preview to encounter what the weblog testament agree off like - drop dead on doing this until you lot acquire the right setting.
5 When you lot are happy with the spacing, click Save Template to apply the changes to your blog. (Or Clear Edits if you lot cannot acquire it right together with quest to stop trying).
Note: If you lot build a big alter to your template like this, it would alive on a adept idea to depository financial institution gibe out out inwards at to the lowest grade 1 version of the other browsers that your readers role - at the moment, this commonly means Internet Explorer 8, Firefox together with Chrome. But it may depend on your niche - a tool like Google Analytics testament grade you lot close statistics virtually what browsers, together with covert sizes, your visitors have.
Also, it is possible to build this alter past times merely installing a new CSS rule for h3.post-title into your weblog - because the latest 1 constitute is e'er the 1 used, together with because the template designer's Add CSS portion puts the rules you lot add together together after the othr rules. I don't recommend it here, though, because working with the master copy re-create govern makes it easier to encounter the final result of making changes to whatsoever of the values inwards the area.
Other affected spacing
If you lot have got to a greater extent than than 1 post service per page, thence this alter testament also select downwards the amount of infinite betwixt the bottom of 1 post service together with the header of the following one. Depending on your template, you lot want wishing to add together together a short to a greater extent than infinite into the margin tilt inwards the bottom of the post-footer, eg.post-footer {
margin: 20px -2px 20;
padding: 5px 10px;
}
If you lot display comments inwards your blog, you lot also quest to depository financial institution gibe the impact on comments, because the master copy re-create dominance applied to h4 items inwards comments as well.
If you lot are making a lot of changes, you lot may want to make a examine blog, together with plan your changes inwards private before applying them to your main blog.
Related Articles
Setting upwardly Google Analytics to acquire statistics virtually for your visitorsAdding a new CSS govern to your blog's template
Advantanges together with disadvantages of editing your template.
How to edit your blogger template
Who did your blogger template come upward upwardly from - the quick way of finding out
Making a test-blog for template changes
Planning changes to your weblog inwards private
