Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2007
    Posts
    10
    Plugin Contributions
    0

    Default #productinfoBody ??? WHAT???

    Alright, I'm just about to bang my head against the wall - Literally.

    I've got this cool layout going. It's looking pretty cool, far from finished, but well on it's way.

    You can see it here - http://www.thegametrade.com/store .

    The black at the top and the red fade in the middle is the page background. Everything else is Transparent around the logo, so the background shows through.

    Looks pretty good, a little more customizing, but not a bad start.

    NOW - Click on either "Login" or "Accessories" The layout is all messed up. It's fine on the EZ Pages at the top, and all the "Other Information" pages.

    Here's the weird thing. See like I said before, all the shading and gradients are the background. So when the whole background drops down like that, I just couldn't figure it out. So I right clicked in GOogle Chrome to inspect the element, and What do you know. I see where there is some CSS being brought in from the body tag some - #productinfoBody that is setting the background position to 50% on the X and the Y.... SO I'm like.. "Lets go get that sucker and fix it"... well I CAN'T FIND IT!!!

    SO I thought.. Maybe it being generated with PHP... and it probably is .. but, I don't know how to fix it...

    So this is where the WONDERFUL people of the Zen Forum come in.. Please... Save me... I think I'm about to cry!!!


    Thanks in advance!!!

    Big Chili

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

    Default Re: #productinfoBody ??? WHAT???

    When you look at the site via Chrome, what you are seeing is an interpretation of your CSS, rather than the literal contents of your stylesheet, which may be why you can't match what your seeing there to what you're giving it.

    I think that you problem is most likely this
    body {
    color:#333;
    font: 12px tahoma, sans-serif;
    background-color:#300603;
    margin:0 15px;
    background-image:url(../images/body-bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
    }
    I think you meant to put
    body {
    color:#333;
    font: 12px tahoma, sans-serif;
    background-color:#300603;
    margin:0 15px;
    background-image:url(../images/body-bg.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    }
    Currently your background image is being centered vertically as well as horizontally, so on longer pages, it moves down.
    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
    Sep 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: #productinfoBody ??? WHAT???

    You sir - Are a genius. Thank you so much.

    Now - just one more little problem...

    Take another look at my site. See the menu bar with "home" and "login"? I want the whit "Main Body" below to but up right against that.

    I figured it was in the stylesheet, the height of the "HeaderWrapper" and I was going to play around with that, but no luck...

    Can you help me out.. one more time???

    Thanks again!!!

    Big Chili

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

    Default Re: #productinfoBody ??? WHAT???

    Wrong place. Take a look instead at the height of #sub-header in template_css.css. If you subtract that 14px top padding from the overall height, you'll get the effect that I think you're shooting for.
    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
    Sep 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: #productinfoBody ??? WHAT???

    Well, I'm sure it will work, you have never given me a wrong answer, except I can't find the Template_css.css file. I thought it was just a "Pseudo" for the template that I'm usings style sheet. But I don't have a "SubHeader" anywhere in there. I think I have searched the whole install for this .css file, but can't seem to find it.

    bc

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

    Default Re: #productinfoBody ??? WHAT???

    LOL. In your 2nd post you posted the wrong link and I went to your existing site. I should have spotted that, but instead thought, wow he's making changes really quickly, and was then able to interpret your request in that context as there is also a gap there between the same two elements albeit difficult to see with two dark backgrounds against each other!

    However on the site that you are actually working on, the solution is different. The gap is most likely because you have a BR tag between those two elements and that has it's own intrinsic height.

    You can either remove the offending br tag (probably somewhere in your tpl_header.php template, or remove it's height by adding
    #headerWrapper br {line-height:0}
    to your stylesheet.
    Kuroi Web Design and Development | Twitter

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

  7. #7
    Join Date
    Sep 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: #productinfoBody ??? WHAT???

    Thank you so much... you rock... is there somwhere I can send a donation??? Seriously!!!

    Thanks,
    ALOT!!!

    Big CHili

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

    Default Re: #productinfoBody ??? WHAT???

    I donate time in these forums in appreciation of what I get from Zen Cart, so if there's credit due (e.g. in the form of donations) it should go to the project.

    Good luck with the site. You clearly "get" what can be done to customize the look of a Zen Cart so it will be interesting to see where you take it.
    Kuroi Web Design and Development | Twitter

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

  9. #9
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: #productinfoBody ??? WHAT???

    Quote Originally Posted by bigchili View Post
    Thank you so much... you rock... is there somwhere I can send a donation??? Seriously!!!

    Thanks,
    ALOT!!!

    Big CHili
    I'm always happy to receive donations !

    (Glad you go it sorted... and yes, Kuroi is a genius!)
    20 years a Zencart User

 

 

Similar Threads

  1. What is Zend Framwork? What it's used for and how?
    By Syed Raza Mehdi in forum General Questions
    Replies: 1
    Last Post: 18 Dec 2013, 08:45 AM
  2. In what file and What line of code outputs Product Description?
    By mk12 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 28 Sep 2009, 09:56 PM
  3. Stylesheet class...quick list for what's what on the page
    By AllofUs in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Aug 2008, 04:49 PM
  4. Best practice for finding out 'what does what'?
    By budfox in forum General Questions
    Replies: 6
    Last Post: 19 Aug 2007, 07:05 PM

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