Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Location
    Dallas, Texas USA
    Posts
    183
    Plugin Contributions
    0

    Default How to override a padding setting

    url: http://artbeautiful.com

    I have hidden the "Information" heading on my left nav and want close up the space above it. The issue is the padding set now for the class .sideBoxContent

    .sideBoxContent class now has a padding setting of 1em that I am trying to override for the #informationContent div only

    I have tried:

    #informationContent.sideBoxContent {padding: none !important; }

    and:

    #informationContent .sideBoxContent {padding: none !important; }

    and several other combinations that don't work.

  2. #2

    Default Re: How to override a padding setting

    I found that opening your tpl_information.php (either in your template_default directory, or your custom overrides directory) and changing:

    Code:
    <ul style="margin: 0;
    to:

    Code:
    <ul style="margin:-25px 0 0 0;
    will do what you need.
    Last edited by rainthebat; 1 Jan 2008 at 11:50 PM. Reason: changes pt to px

  3. #3
    Join Date
    Nov 2007
    Location
    Dallas, Texas USA
    Posts
    183
    Plugin Contributions
    0

    Default Re: How to override a padding setting

    Yes, a negative margin works sometimes, but results in different browsers can be mixed. I was hoping to find a padding override that would keep the changes inside the div. Thanks for your suggestion. I have created a neg margin in the css for now, to avoid a template override. IE6 Win has a problem with it.

  4. #4

    Default Re: How to override a padding setting

    You could keep it within the div (which I think you may have done anyway) under the id #information, and use the negative margin. Maybe use the * html hack for IE6 only so it appears correct in all the major browsers i.e. * html #information{margin-top:-whatever}
    Last edited by rainthebat; 2 Jan 2008 at 04:22 PM. Reason: blah

  5. #5
    Join Date
    Nov 2007
    Location
    Dallas, Texas USA
    Posts
    183
    Plugin Contributions
    0

    Default Re: How to override a padding setting

    Unfortunately, IE6 Win is prob THE most important browser to look correct in, since it is still used by the most PC users. So, do I correctly assume the IE hack will still cause the extra space to show above the text there?

 

 

Similar Threads

  1. v151 Setting locale in template-override directory
    By lat9 in forum Addon Language Packs
    Replies: 1
    Last Post: 23 Mar 2013, 11:56 PM
  2. How to remove Catagories padding?
    By curbsidestudiosNET in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 5 Feb 2011, 12:59 AM
  3. Setting up override files??
    By symon in forum General Questions
    Replies: 10
    Last Post: 13 Jul 2010, 05:01 AM
  4. Setting up my override directories
    By dman76 in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 27 Nov 2007, 03:50 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