WordPress.org

Ready to get started?Download WordPress

Forums

Body CSS Bug? (10 posts)

  1. splosion
    Member
    Posted 4 years ago #

    Hi all,

    first off, I am very new to wordpress (but not html/css), so please correct me if I am wrong. I believe I have found a bug. In my header.php, I called two css sheets as such:

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/css/reset.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />

    This loaded my reset.css sheet first, then my style.css - or so I thought. I noticed a problem when my background image wasn't coming in as defined in my body tag from style.css. I tracked it to the reset.css, and found that simply calling the stylesheet at all prevented my style.css body tag from loading (e.g. even after removing any body definitions in reset.css). Changing the order didnt help.

    My current workaround is defining what would normally go in my style.css for body in my reset.css. Is this a bug? Thanks

  2. splosion
    Member
    Posted 4 years ago #

    ...another possible bug seems to be height:100% not working 100% of the time on page load.

    I have in my body tag: height:100%; as well as a repeating background. Occasionally the background only repeats to the bottom of the content (and not the entire browser window).

  3. I'm pretty sure you should call the reset css file from your style.css instead:

    /* Reset */
    @import url('reset.css');

    I do it this way and never have a problem. That may help your height issue too...

  4. splosion
    Member
    Posted 4 years ago #

    Thanks, but strangely no go. For some reason WP seems to be ignoring body in my style.css.

    As a workaround, I put in an invisible footer to fix the background not spanning to the bottom all the time.:

    #dummyfooter {
    	position:absolute;
    	bottom:0;
    }

    Any other ideas?

  5. splosion
    Member
    Posted 4 years ago #

    height problem solved - the footer wasn't loading due to some gremlin.

    Still having problems with body tag though.

  6. URL? Maybe we could spot something if we looked at it...

  7. splosion
    Member
    Posted 4 years ago #

    under a lot of construction, but here it is: http://www.smithnewnamdesign.com/

    Like I say, I'm pretty new to WP (like 3 days ago), so thanks for looking.

  8. Just temporarily, can you remove reset.css from your site? To see if it's that that's conflicting, or something else.

  9. splosion
    Member
    Posted 4 years ago #

    Removing reset reveals some bizarre things. Body height and width definitions aren't being applied, but font-family, line-height, and font-size, background, and color are (in other words, everything but the height and width).

    CSS and HTML validates. At this point, I'm pretty confused.

  10. There must be a plugin or something inserting it's own CSS in there is all I can think of.

Topic Closed

This topic has been closed to new replies.

About this Topic