Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    I'm helping a friend redesign her blog. Please look at the following URL in IE, and then in FF, with your attention on the banner area. -

    http://smwcode.blogspot.com/

    In IE it displays correctly (and also DID display correctly in FF before upgrading to Vers. 3), but in FF vers. 3 it doesn't display correctly. What I've done here is set a (negative) -120px top margin for the main and sidebar wrappers to pull that content up into (to blend with) the banner graphic, but in FF3, the header graphic is covering up the content.

    I'm aware that this template code has markup errors which I intend to address, but none of those errors are causing this problem. I think I've identified what IS causing this problem in Firefox. See code comment in bold below. There has to be some fix or alternate coding to make this display as I want it to, but I really don't know whether the solution lies in the .CSS, or .JS, or something else.

    Can anyone tell me how to fix this?

    Thanks.
    jdove523@comcast.net


    </b:includable>
    <b:includable id='main'>

    <b:if cond='data:useImage'>
    <b:if cond='data:imagePlacement == "REPLACE"'>
    <!--Show just the image, no text-->
    <div id='header-inner'>
    <a expr:href='data:blog.homepageUrl' style='display: block'>
    <img expr:alt='data:title' expr:height='data:height' expr:id='data:widget.instanceId + "_headerimg"' expr:src='data:sourceUrl' expr:width='data:width' style='display: block'/>
    </a>
    </div>
    <b:else/>
    <!--
    Show image as background to text. You can't really calculate the width
    reliably in JS because margins are not taken into account by any of
    clientWidth, offsetWidth or scrollWidth, so we don't force a minimum
    width if the user is using shrink to fit.
    This results in a margin-width's worth of pixels being cropped. If the
    user is not using shrink to fit then we expand the header.
    -->
    <div expr:style='"background-image: url(\"" + data:sourceUrl + "\" " + "background-position: " + data:backgroundPositionStyleStr + "; " + data:widthStyleStr + "min-height: " + data:height + "px;" + "_height: " + data:height + "px;" + "background-repeat: no-repeat; "' id='header-inner'>
  2.  permalink
    Hmm I'm looking at your page in FF2 and it looks off as well (both columns are pulled up under your graphic so much that it cuts off about 80% of your profile pic, no blending there.) . Getting rid of -120 margins in #sidebar-wrapper and #main-wrapper seems to put things back to where they should be. I've only checked this out in FF2 2.0.0.16 though.

    James
  3.  permalink
    SOLVED. Removed the negative margin values, sliced the banner graphic horizontally and used the lower portion of graphic to create a new background <div>, laid the <div>inside of outer wrapper - VOILA! Blog temporarily set back to "invite only", but if you'd like to see, email me and I will invite you.
Add your comments
    Username Password
  • Format comments as (Help)