erinptah: (winding road)
humorist + humanist ([personal profile] erinptah) wrote in [community profile] style_system2012-02-17 10:32 pm

Layout help, fixed & fluid (Tabula Rasa)

I'm working on two Tabula Rasa layouts -- one fixed, one fluid, with matching graphics -- and starting to hit the limit of what my understanding of CSS can handle. Help?

Here's the current state of the fixed-width layout, currently enabled at [community profile] punditfic:




And here's the fluid version, visible in action at [community profile] andthatstheword:




Issues in the fixed-width layout:

  • When the page isn't tall enough, module-content and module-powered show up in the middle of the sidebar. Avoided!

  • In the main entry view, how can I get usernames to display reliably under the userpic? The best I got (through messing with margins) was "it'll appear there, but entry text will overlap it." (Also a problem in the fluid version.) Solved in both!

  • New issue...when #primary is shorter than #secondary, the page only scrolls down as far as #primary.



  • Things in the fluid layout that I can't get to match the fixed-width layout:

  • On the calendar-by-month view, the entry information isn't indented with respect to the date. Prettied up!

  • Similarly, the bulleted list on the tags page isn't indented. Solved!

  • Information in the entries on the main page is all squished together (title overlapping with date/time, tags overlapping with entry tools). Solved!

  • Everything to do with comment display just isn't happening. The tools won't display inline, there's no space around comment-content, the header has no background... Solved!



  • Other issues with the fluid layout:

  • Can I make the #primary and #secondary divs extend to the bottom of the page (to extend the background) without covering the header?

  • Looks like I need to do something with module-content and module-powered here too. When the sidebar is on the left, they try to squeeze into the gap between #secondary and #primary. This isn't a problem when the sidebar is on the right (or at least, it hasn't been at my resolution). Solved!


  • Anyone who can point me in the right direction on any of these points would be greatly appreciated!
    facetofcathy: four equal blocks of purple and orange shades with a rusty orange block centred on top (Default)

    [personal profile] facetofcathy 2012-02-18 01:19 pm (UTC)(link)
    I have one answer so far.

    Issues in the fixed-width layout:

    When the page isn't tall enough, module-content and module-powered show up in the middle of the sidebar.


    What's actually going on here is that you've put a top: 320 px on #primary to offset it from the absolutely positioned #header. This is mucking up the way the page is drawing elements and none of #primary's parent elements are extending down to enclose it fully. So #tertiary is being drawn part way up the page.

    If you must position the header absolutely not relatively, then put that offset and the relative positioning on #content, so #primary can push #content down all the way to enclose it, and #tertiary, the thing your wayward elements are in, will display below #primary.

    Will check back later today and see if any more mysteries remain to be solved. I love debugging, it's a sickness.

    marahmarie: (M In M Forever) (Default)

    Some answers...

    [personal profile] marahmarie 2012-02-20 04:43 am (UTC)(link)
    In the main entry view, how can I get usernames to display reliably under the userpic?

    .entry-poster{float:right;clear:right;margin-left:.7em;margin-right:.3em;margin-bottom:.3em;}/*--- sets username position*/
    .userpic a {border:0;}/* makes more room by removing possibly unwanted user icon border-bottom */


    Things in the fluid layout...the bulleted list on the tags page isn't indented.

    That's because you have an unclosed, empty statement for the tags container in your CSS:

    .tags-container ul {

    Change that to .tags-container ul {}

    Or just get rid of that line since you're not using it.

    Use this for multi-level indents:

    .tags-container .tags_multilevel li li {margin-left:30px!important;}/* specifying ".tags-container .tags_multilevel" ensures sidebar tags won't be affected by this code */

    I'm posting this without looking through all your CSS for possible adjustments because I have to shut down for the night very soon (but I may or may not post more replies before doing so), but I'll keep coming back to post whatever answers I can rustle up.
    Edited (added/removed some html) 2012-02-20 04:45 (UTC)
    marahmarie: (M In M Forever) (Default)

    Some more answers...

    [personal profile] marahmarie 2012-02-20 09:03 pm (UTC)(link)
    Things in the fluid layout...Information in the entries on the main page is all squished together

    For title overlapping with date/time, try this:

    div.entry {line-height:1.6; }/* unsquishes text within entry containers */
    h3.entry-title {margin-bottom: 1em!important; }/* you can also remove all padding from ".entry-title a" in your existing CSS to stop too-low border-bottom and too much left-indent on entry title from occurring */


    For tags overlapping with entry tools, try this:

    .tag ul {display: inline-block;margin-bottom:1em;/* current "inline" setting on this element makes setting white space around it impossible */}
    marahmarie: (M In M Forever) (Default)

    Question about:

    [personal profile] marahmarie 2012-02-20 09:25 pm (UTC)(link)
    On the calendar-by-month view, the entry information isn't indented with respect to the date.

    Do you mean on this page? I can't puzzle out code until I know what page I'm on, no pun intended. :)

    Also, I'll be away from the computer until possibly tomorrow, but I'll swing around again to see how things are coming along...