MenuBar

Monday, January 18, 2016

TutorialBlog: Full Width (Besarkan) Header

Assalamualaikum dan salam sejahtera,




body {

Just below body { you should see some lines that will look like this:

body {
font: $(body.font);
color: $(body.text.color);
background: $(body.background);
padding: 0 $(content.shadow.spread) $(content.shadow.spread) $(content.shadow.spread);
$(body.background.override)
}

Where you see the highlighted line above in the code, remove the line and replace it with:

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 {
padding: $(content.padding) $(content.padding.horizontal);
}

Remove the line in red and replace it with:

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){
background-color: $(content.background.color);
}

Replace the line in red with:

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 {
min-width: $(content.width);
max-width: $(content.width);
_width: $(content.width);
}

Delete the line in red and replace that line with:

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:

]]>
</b:template-skin>

Above this ]]></b:template-skin> section of code, add the following:

.main-outer {
max-width: $(content.width);
margin: 0 auto;
}

Then run a search for:

]]></b:skin>

Add these lines of code just before/above it:

.tabs-inner {
padding: 0px;
}
.section {
margin: 0px;
}
.header-inner .widget {
margin: 0px;
}
credit: xomise | helpblogger | cssgirl |
(for wordpress) prettydarncute | wellnesssolution


Terima kasih baca, sudi-sudilah komen :) 

No comments:

Post a Comment