Resource: S2 Layout How-to (LJ)
May. 6th, 2013 06:25 pmStandard Elements in Every FlexibleSquares Layout
These are the elements you want to modify to create the look and feel of your journal. Underlined things are items that you're pretty likely to want to modify.
- Standard things to configure at the beginning:
- html{}
- body{}
- a, a:link, a:visited{}
- a:hover{}
- General Page Alignment Configuration:
- #content{}
- #maincontent{}
- #siderbar{}
- Header/Title/Subtitle/Header Graphic:
- #header{}
- .headerimage{}
- .title{}
- .subtitle{}
- Top Navigation:
- ul.navheader{}
- ul.navheader li{}
- .view{}
- div#header a, div#header a:link, div#header a:visited{}
- div#header a:hover{}
- Footer Navigation:
- div#footer a, div#footer a:link, div#footer a:visited{}
- div#footer a:hover{}
- #footer{}
- ul.navfooter{}
- ul.navfooter li{}
- Entry Stuff:
- .subcontent{}
- .entry{}
- .date{}
- .subject{}
- .subject a, .subject a:link, .subject a:visited{}
- .subject a:hover{}
- .datesubject{}
- .entry ul li{}
- .entry ol li{}
- .ljtags{}
- .ljtags a{}
- .ljtags a:hover{}
- .currents{}
- .currentlocation{}
- .currentmood{}
- .currentmusic{}
- .comments{}
- div.comments a, div.comments a:link, div.comments a:visited{}
- div.comments a:hover{}
- .separator{}
- Userpics:
- .userpic{}
- .userpicfriends{}
- .userpiccomment{}
- this element is where you also modify the shape and/or border, etc on icons for in the comments.
- .userpic img{}
- this element is where you modify the shape and/or border, etc on icons. Note that this element has "img" in it where .userpiccomment does not.
- .userpicfriends img{}
- this element is where you modify the shape and/or border, etc on icons. Note that this element has "img" in it where .userpiccomment does not.
- .userpic a font, .userpic a:link font, .userpic a:visited font{}
- this can be repeated for all italics above
- .userpic a:hover font{}
- Siderbar:
- .defaultuserpic{}
- you can also modify the shape, border, etc of your defaultuserpic. Note: I suggest you keep this separate so the code used to float the icon to one side or another doesn't mess up the alignment of your default icon in your sidebar.
- .sbarheader{}
- .sbarbody{}
- div#sidebar a, div#sidebar a:link, div#sidebar a:visited{}
- div#sidebar a:hover{}
- .sbarbody2{}
- #sidebar_tags, .tagcloud{}
- #sidebar_tags a{}
- #sidebar_linklist{}
- ul.sbarlist{}
- li.sbaritem{}
- li.sbartitle{}
- td.sbarcalendar{}
- td.sbarcalendarposts{}
- .defaultuserpic{}
- Archive Pages:
- ul.year{}
- ul.year li{}
- table.yeartable{}
- table.yeartable td.yeardate, table.yeartable td.yearday{}
- td.yearmonth{}
- Comment Pages:
- .datesubjectcomment{}
- .box{}
- input, textarea, option, select{}
- textarea.textbox{}
- .reply{}
- .replytosubject{}
- .commentreply{}
- .commentbox{}
- .datesubjectcomment a, .datesubjectcomment a:link, .datesubjectcomment a:hover{}
- .datesubjectcomment a:hover{}
- .commentboxpartial{}
- .commentinfo{}
- .skiplinks{}
- #add_comment{}
- Contextual Popup:
- div.ContextualPopup div.Inner{}
- div.ContextualPopup .Content{}
- div.ContextualPopup .Userpic{}
- div.ContextualPopup div.Inner a, div.ContextualPopup div.Inner a:visited{}
- div.ContextualPopup .Relation{}
- Miscellaneous:
- b, strong{}
- i, em{}
- h1{}
- h2{}
- h3{}
- blockquote{}
- u{}
- s{}
- table{}
- .subject img[src*="icon_sticky.png"], .summaryList img[src*="icon_sticky.png"] {}
- img[src*="img/icon_protected.gif"] {}
- span.i-ljuser img[src*="img/community.gif"] {}
- span.i-ljuser img[src*="img/userinfo.gif"] {} (etc with tinyicons)
Modifications You Can Make to the above (remember to close with a semi-colon for each of these)
- background-image
- background-color
- color (for text color)
- font-size
- font-weight
- font-family
- padding (around text)
- margin
- background-position (position of background image)
- list-style
- list-style url (to supply your own image for bullets)
- text-transform
- text-shadow
- border
- background-repeat (for background image)
- shape using border-radius.com/
- etc!!! :)
♥ you can always use multiple elements in one line if you want them formatted the same way (like where a, a:link, & a:visited are called together)
♥ w3schools is your friend.
♥ Do your layout in sections so you can troubleshoot easier if it's not looking like you expected
♥ Always test on multiple browsers
I think that's it..... ^^;
no subject
Date: 2013-05-07 12:41 am (UTC)no subject
Date: 2013-05-07 12:42 am (UTC)I need to go through and explain the ones that aren't self-explanatory for people who want to learn, but I've been staring at code for a while now so it all makes sense XD;;;
no subject
Date: 2013-05-07 03:55 am (UTC)no subject
Date: 2013-05-07 05:19 am (UTC)Unfortunately, I don't know a nifty free code way to do the same thing.
no subject
Date: 2013-05-07 05:41 am (UTC)no subject
Date: 2013-05-09 04:30 pm (UTC)no subject
Date: 2013-05-09 05:49 pm (UTC)And, it's mainly helpful if you understand CSS a bit. If you don't understand CSS at all, this is likely not the resource for you, lol!
no subject
Date: 2013-05-09 05:54 pm (UTC)no subject
Date: 2013-05-09 06:37 pm (UTC)Are you also participating in the banner maker challenge at