A Pages (a.k.a PageList) gadget is simply a set of links to your (static) Pages. You can opt to add Pages gadget once a static page is published.
Pages gadget is left aligned by default. To align it in the center or on the right (of your horizontal bar or sidebar), you just need to add a small CSS code snippet.
Here we go,
Before you leave:
Pages gadget is left aligned by default. To align it in the center or on the right (of your horizontal bar or sidebar), you just need to add a small CSS code snippet.
Here we go,
- Go to Dashboard > Design > Edit HTML Template Designer > Advanced > Add CSS.
- Look for
]]></b:skin>
line in your HTML code and add the following code right before the line.
Paste one of the following snippets in the CSS editor, and press Enter key.
a. For horizontal tabs type PageList
- To center
.PageList {text-align:center !important;} .PageList li {display:inline !important; float:none !important;}
- To align right
.PageList {text-align:right !important;} .PageList li {display:inline !important; float:none !important;}
display:inline
withdisplay:inline-block
.
b. For sidebar links type PageList
- To center
.PageList {text-align:center !important;}
- To align right
.PageList {text-align:right !important;}
- To center
- Check out the live preview in the lower pane.
- Lastly, if you are happy with the way it looks, click the orange Apply To Blog button.
- That's it. Enjoy!
Before you leave:
- Do you find this article useful? Share it via Retweet, Share and Stumble buttons.
- Any suggestion, question or comment? Please post it in the comments below.
No comments:
Post a Comment