One of the most common requests out of the Blogger community when making alterations is how to change the look of some of the key sections like header, navigation, and footer. Initially, these items are designed to fit within just 1/3 of the page, surrounded by padding and margins on either side. These margins are used to give the page a slim fitting appearance, but could also cause your content to look compressed.
Important: Backup your Template
Making the changes to a full screen Blogger navigation, footer, or header can be done and won't take you much time. Before you can make any changes, you should save extra copies of the template .xml file in case anything goes wrong. That way, if you don't like it or it doesn't come out looking like it should, you can reuse the contents of the original file to restore your blog to working condition.Demo
Hover your mouse over the image to see a before and after example:How to Make Header, Navigation and Footer Full Width in Blogger
Step #1: Access Your CSS File
If you've never opened up your CSS file before, log in to your Blogger account, select your blog and navigate to Template > Edit HTML. This will bring up the code of your template containing all your blog's internal files in one place.Step #2: Modify the Background
Click anywhere inside the code area > press CTRL + F keys and type the following line > hit Enter to find it (stop at the first occurrence of it):body {Just below body { you should see some lines that will look like this:
body {Where you see the highlighted line above in the code, remove the line and replace it with:
font: $(body.font);
color: $(body.text.color);
background: $(body.background);
padding: 0 $(content.shadow.spread) $(content.shadow.spread) $(content.shadow.spread);
$(body.background.override)
}
padding: 0px;Different templates will have minor variations, but you should still be able to find these lines within every template.
Step #3: Change the Content Section
Next, search using the CTRL+F keys for this part:.content-inner {Just below it, you will see this line:
.content-inner {Remove the line in red and replace it with:
padding: $(content.padding) $(content.padding.horizontal);
}
padding: 0px;This will remove any of the padding around the inner content, so it won't leave any room on both sides.
Now find this part:
$(content.background.color.selector){Just below it you will see this line:
$(content.background.color.selector){Replace the line in red with:
background-color: $(content.background.color);
}
background-color: $(body.background);Finally, search for this tag:
]]></b:skin>And just above it, add this CSS:
.main-outer {
background: $(content.background.color);
}
Step #4: Make the Content Outer Full Width
Content is displayed differently between browsers, so you'll next want to fix this so that it alters the width across the board. This code can be found searching for:.content-outer, .content-fauxcolumn-outer, .region-inner {And just below it you will see the following lines:
.content-outer, .content-fauxcolumn-outer, .region-inner {Delete the line in red and replace that line with:
min-width: $(content.width);
max-width: $(content.width);
_width: $(content.width);
}
max-width: 100%;
Step #5: Finish It Up
Now you have just two more lines you need to change. Look for:</b:template-skin>And click on the right arrow to expand the styles. Note: you will need to search for </b:template-skin> tag again, and just before it you'll see these symbols highlighted in yellow:
]]>Above this ]]></b:template-skin> section of code, add the following:
</b:template-skin>
.main-outer {Then run a search for:
max-width: $(content.width);
margin: 0 auto;
}
]]></b:skin>Add these lines of code just before/above it:
.tabs-inner {Save the template and exit out of the editor.
padding: 0px;
}
.section {
margin: 0px;
}
.header-inner .widget {
margin: 0px;
}
No comments:
Post a Comment