| Fin-nick Odair ( @ 2009-07-27 22:39:00 |
|
|
|||
|
|
|
|
|
|
|
| Entry tags: | layouts: journals, resources: layouts |

INTRODUCTION CSS isn't the easiest thing in the world for a lot of people, especially those most familiar with HTML who have barely or rarely ventured into learning it. So, below I've explained each part in such a way that - hopefully - anyone can edit this layout to thoroughly suit their RPG needs. Before you begin, go here: http://asylums.insanejournal.com/rp_tut CREDIT AND NOTES Crediting is placed in a note. A note is also where each part is introduced to you. The browser ignores these when writing to the page to format stuff. Text outside of these has to be solely CSS. Notes look like this: PAGE BACKGROUND AND FONT This is where you put the background that's outside of everything else as well as where you can change the text's font, size, color, and the line height. PAGE CONTAINER Below is where you can change the color and width of the page container (which is basically the white part that all the stuff is in and provides a border around the image and everything else). If you want everything wider, you'd change the width from something like 700 to 800, of course. Then, follow the steps further down the page to change the borders and widths of the sidebar and entries to match. LINKS This part controls how links look. BANNER This is where you put your BAMF 643x302 banner. Paste a link to it in the parenthesis following URL. background: no-repeat tells the page not to repeat the banner. The height is how high of a space you need for your banner, of course. Background-position: center makes sure it's centered on the page. Not displaying the banner-header and description (where display: none is) make it so your journal's title and description go away and show only your banner. SIDEBAR & ENTRIES Alpha refers to the side bar, beta to the entries. Around the edges of each there's a border. And around that border they have another border. DEFAULT ICON ON SIDEBAR This just adds some padding to the top (30) and bottom (25) of your icon. NAVIGATION LIST This adds some padding to the left side (8px) of your navigation links (user info, recent entries, friends, and archive links). FONT HEADERS ON SIDEBAR AND DATE ON ENTRIES This styles the text of the sidebar headers (like the calendar's month and year, tags, page summary) on the sidebar (h2.module-header) and the date on the entries (h2.date-header). Think of the comma between h2.module-header and h2.date-header as meaning 'or' because the style could apply to both. The comma is also used in font family to signify if one font isn't available to use the one after it. So "century gothic OR trebuchet MS OR verdana). CENTER SIDERBAR HEADERS Up above, we styled the text for the sidebar header and entries' date. Well, now we want to center the headers on the sidebar but not the entries' dates. If we entered it into the code above, the entries' dates would be centered so we have the do this bit of code its own separate place so it only applies to the headers on the sidebar. That's done by writing the bit that applies to the sidebar's headers (h2.module-header) and applying the following to it: text-align: center. ENTRIES' SUBJECTS Now, we're going to style the entries' subject. Since this is an H3 header, it's already the size we want so we don't need to include a new size. Instead, all we're going to do is set it the same font as above (you can change it) with some defaults (the "century OR trebuchet OR..." thing we talked about above) in case that's not on someone's computer and bold it (font-weight: bold). If you want to change the color or something, you can. SCROLLBAR FOR TAGS What this does is makes it so after you enter about seven tags (or so many that the box they're in is more than 150px, it makes a scrollbox for them. If you'd rather not have a scroll box, simply take out this code. ENTRIES' USERPICS This sets the padding around the icons in your entries. There's 10px of padding around each side except the right (which has 0). ENTRIES' TAGS This formats the bolded text on your entries that says "tags:" and the commas between different tag names. We have it set as bold and everything lowercase. You can change the color, take out lowercase so it reads Tags instead of make it uppercase so it says TAGS, whatever you want. ENTRIES' FOOTER This formats the text that says "Posted at 10:19 am" as well as the "|"s between different links. Like above, you can format it as you wish. The margin is set so it lines up with the stuff above it. The color is set to #999 (a shorthand version of the hex color #999999). HIDE PAGE SUMMARY This hides the page summary. HIDE SYNDICATION This hides the syndication buttons. HIDE 'POWERED BY INSANEJOURNAL' This hides the 'powered by insanejournal' text. |