Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default center boxes border & back ground IE display different

    Hi I can't seem to resolve this

    for the center boxes (what's new, specials, featured etc) I want a border & background color

    i used this class

    .centerBoxWrapper {
    background: #f8f8f9;
    border: 1px solid #9a9a9a;
    margin-bottom: 15px;

    }

    which seems to work in firefox but the margin at the bottom is messed up in ie

    the products images & text stray beyond the border & background

    any ideas??


    also i am trying to create a thicker border at the bottom like the sideboxes
    which i can't get to work in either ie or FF



    I attached my stylesheet.css for reference
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: center boxes border & back ground IE display different

    Quote Originally Posted by sgflowers
    Hi I can't seem to resolve this

    for the center boxes (what's new, specials, featured etc) I want a border & background color

    i used this class

    .centerBoxWrapper {
    background: #f8f8f9;
    border: 1px solid #9a9a9a;
    margin-bottom: 15px;

    }

    which seems to work in firefox but the margin at the bottom is messed up in ie

    the products images & text stray beyond the border & background

    any ideas??


    also i am trying to create a thicker border at the bottom like the sideboxes
    which i can't get to work in either ie or FF



    I attached my stylesheet.css for reference
    Do you have a link where this is visible?
    Which version of ZC are you using?
    What is your template based on (Classic, template_default, 3rd party, other)?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: center boxes border & back ground IE display different

    Quote Originally Posted by kuroi
    Do you have a link where this is visible?
    Which version of ZC are you using?
    What is your template based on (Classic, template_default, 3rd party, other)?

    sorry i left out a lot of the details

    based on default_template

    test site (1.3):

    http://sulserv.dyndns.org/sgf

    original site (1.2.6)

    http://www.secretgardenflowers.com

    - thanks, kevin

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: center boxes border & back ground IE display different

    If you replace your centerBoxWrapper CSS with this, it should deal with the issues that you listed
    .centerBoxWrapper {
    float:left;
    width:100%;
    background: #f8f8f9;
    border-color:#9a9a9a;
    border-style: solid;
    border-width: 1px 1px 5px 1px;
    margin-bottom: 15px;
    text-align:center;
    }
    In brief, the wrapper div was not included in the main flow of elements which was why the items that appeared to be inside it, actually floated on top of it and allowed it to close up. Having floated the width setting is to stop FF from compressing the box.

    The border issues were mainly points of syntax, and the text align was thrown in just to make everything look a little more balanced and like the original site.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jan 2004
    Posts
    573
    Plugin Contributions
    0

    Default Re: center boxes border & back ground IE display different

    Quote Originally Posted by kuroi
    If you replace your centerBoxWrapper CSS with this, it should deal with the issues that you listed
    In brief, the wrapper div was not included in the main flow of elements which was why the items that appeared to be inside it, actually floated on top of it and allowed it to close up. Having floated the width setting is to stop FF from compressing the box.

    The border issues were mainly points of syntax, and the text align was thrown in just to make everything look a little more balanced and like the original site.

    nice

    worked like a charm thanks

  6. #6
    Join Date
    Apr 2006
    Posts
    1
    Plugin Contributions
    0

    Default Re: center boxes border & back ground IE display different

    Greetings :)

    If its ok, I would like to ask a question or two about this matter as well.

    You see, I am trying to do the same: Creating my own style using the "default_template" and I am having some problems. -_- I should add that Im a designer and still kinda new to CSS. ^^

    So, for now my question in this matter:
    I also wanted the center content boxes to have a border! Thanks to your instructions here, I got this to work as well. :) However, I noticed that, unlike the SIDEBOXES, the center boxes dont just include the real content area, but ALSO its header! >_<

    Which is bad if you, like me, want the design to be the same for the sideboxes and the main content in the center area. -_-

    So, I only want a border around the actual center content areas, NOT their headers as well.

    Oh, by the way, heres a link to what I am working on:
    http://www.fullmetaljapan.com/store

    Thanks in advance!
    DarkSol

  7. #7
    Join Date
    Sep 2006
    Posts
    66
    Plugin Contributions
    0

    Default Re: center boxes border & back ground IE display different

    When i cleared with clear:left it messed up my display in FF.

    Use display:table instead of float:left

    Code:
    .centerBoxWrapper {
    display:table;
    }

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: center boxes border & back ground IE display different

    Darksol: if you're still out, sorry that your post got missed. You're right that the structure of the center boxes is slightly different to that of the sideboxes. However, you can easily make it the same by adding a DIV around the content in tpl_columnar_display.php.

    JohneeMac: Although I've seen display:table discussed on a few sites, I've never actually seen it used, probably because of the complete absence of support for it in IE (even IE7 - source: quirksmode). Do you have a way around this?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Changing back ground colour on Product Info Center Box
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 May 2010, 11:30 AM
  2. Left Sidebox jumping to center & back
    By RixStix in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Sep 2009, 06:53 PM
  3. Specials, New, Featured, Also Purchased Boxes - Heading & Border
    By Donn in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Feb 2009, 02:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR