Support » Requests and Feedback » Body CSS Bug?

  • 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

Viewing 9 replies - 1 through 9 (of 9 total)
  • …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).

    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…

    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 {

    Any other ideas?

    height problem solved – the footer wasn’t loading due to some gremlin.

    Still having problems with body tag though.

    URL? Maybe we could spot something if we looked at it…

    under a lot of construction, but here it is:

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

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

    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.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Body CSS Bug?’ is closed to new replies.