ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

I need another pair of eyes - index and comment page not matching

May 16, 2009 1:07am

Subscribe [2]
  • #1 / May 16, 2009 1:07am

    snarkyt

    4 posts

    If you navigate to my main site (http://www.snarkymomma.com) and then click on any of the comment links you’ll see that the main backgrounds are different (white vs brown).  I don’t know if this is a stylesheet issue or if it’s something I’m overlooking in the main templates, but it’s driving my crazy.

    My stylesheet is at http://www.snarkymomma.com/index.php?css=site/site_css.v.1242469904 - thanks for taking a look!

  • #2 / May 16, 2009 1:57am

    grrramps

    2219 posts

    Doesn’t look like there is a .comment selector on the Comments page:

    <div id="main">

    You’ll need a .comment in .main on the Comments page.

  • #3 / May 16, 2009 1:23pm

    snarkyt

    4 posts

    Thanks for responding.  Now I need you to dumb it down for me a bit.

    Put what where now?  The template is a heavily adapted one that I altered to suit my needs, so as far as the nesting hierarchy goes I’m basically stuck on stupid.
    :down:

  • #4 / May 16, 2009 2:42pm

    grrramps

    2219 posts

    ... I’m basically stuck on stupid.

    Been there. I visit often.

    The <div>‘s on the home page are not the same as the comments page. The home page entries are wrapped in an “.entry” <div> which gives it the white background. The CSS also has a “.comments” <div> which has a white background, but that <div> is not on the comments page. Wrap the comments entry in a <div> that will give it the needed background color.

    FWIW Department, I used to grab the code from other sites and try to bend it to fit my needs. That’s actually more difficult than starting from scratch and building the code myself, because everyone’s code/layout/style/nomenclature is different. Mine stays consistent. For me.

    So, try re-building the site from scratch so you’ll know where the pieces are and what they do. It’s slow at first, but gets better quickly. There’s not much HTML/XHTML in my sites these days; mostly CSS.

  • #5 / May 16, 2009 7:55pm

    snarkyt

    4 posts

    woot!  Saw the dysfunction and patched it up enough to be able to sleep tonight.

    You’re right, the code does need to be written from scratch and I probably will tackle that when time allows.  This was a stop-gap measure as I deleted my site accidentally this week and needed to slop something together quickly. 

    Thanks for the help!

  • #6 / May 16, 2009 8:24pm

    grrramps

    2219 posts

    Saw the dysfunction and patched it up enough to be able to sleep tonight.

    I’ve got a couple of hobby sites that have lived on ‘patches’ for years.

    You’re right, the code does need to be written from scratch and I probably will tackle that when time allows.  This was a stop-gap measure as I deleted my site accidentally this week and needed to slop something together quickly.

    That’s more normal than you may think.

    One thing that helps out is a ‘base code.’ I’ve created a base site code (HTML, CSS and EE tags) with appropriate wrappers, regions, columns, etc., that I use when I need to throw together a site quickly, rather than muck through someone else’s code (which may be better, but takes longer to figure out). A whole EE site can go up with basic header, logo, footer, main content area, left and right columns, footer, etc., in just a couple of hours using changes in CSS.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases