Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2011
    Posts
    4
    Plugin Contributions
    0

    Default stylesheet modifications

    hi,
    i am new to zen cart and know just little bit about CSS. i am trying to modify look of my home page. i am using firebug, my question is how to make changes to just one element as multiple ids r sharing same config and will affect many elements. whats the best approach to modify stylesheet.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: stylesheet modifications

    Depends on exactly what you're asking about, but in the case of, say, this:

    #navColumnOneWrapper, #navColumnTwoWrapper, #mainWrapper {
    margin: auto;
    }

    If you wanted to change the margin of just #mainWrapper, you would remove it from that rule and create a new rule just for that element:

    #mainWrapper {margin: 2em 0 1em 0;}

  3. #3
    Join Date
    Nov 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: stylesheet modifications

    thats what i was doing, but i though it will complicate it more. i guess thats the only way.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: stylesheet modifications

    You could add another rule that would override the multiple-selector one for the desired element, but that is messier and bad practice.
    I think the best practice is to have a single rule for a given selector, so all properties that affect it are gathered in one place. I wouldn't change the stylesheet just to do that, especially if there are only a couple of instances, but if you are separating out a selector, put the individual property declaration into an existing rule for the selector (if there is one).

  5. #5
    Join Date
    Nov 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: stylesheet modifications

    i want to change the look of my site, seems like its going to be very tough. and there r no good looking templates that i can use , why.

  6. #6
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,829
    Plugin Contributions
    31

    Default changing the classic template

    I would have fared better in the beginning if someone had given me this advice or rather opinion:

    Don't try and change/improve the "classic" template, it only has two functions:
    1) it shows all the possible content elements you could have on the various pages so you can decide what content you would like to use on your pages.
    2) its a debugging tool: to revert to when your own customisations/overrides are breaking the shop and you need to prove its in your template.

    Design your shop visually in a graphics program, copy things you like from other shops, decide what content you want, where you want it etc. forget the coding until you have something you like the look of.

    Then create your own template and hack it to match your design ... or get someone else to do it!

    The classic template is fugly, and why not, its for display purposes only.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: stylesheet modifications

    There's nothing in http://www.zen-cart.com/index.php?ma...ex&cPath=40_53 you can use as a guideline? Unfortunately, the site that used to let you see what the templates looks like is down at the moment.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  8. #8
    Join Date
    Nov 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: stylesheet modifications

    so if i understand correctly , the way to go is , install an already customized template and modify that instead of creating my own custom template. please correct me if i am wrong, i want to build my site and want to do it right from start to save problems later.

  9. #9
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: stylesheet modifications

    No, you can build your own template if you are so inclined. The free ones can sometimes jump start someone's customization. Just remember to follow the override system and you should be ok.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. v155 Modifications
    By Music Man in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Jun 2016, 08:20 PM
  2. Email Modifications
    By tomtom55 in forum General Questions
    Replies: 11
    Last Post: 16 Jan 2015, 07:26 PM
  3. Category Id modifications
    By hardwiredtemplates in forum Customization from the Admin
    Replies: 1
    Last Post: 10 Jun 2009, 07:34 AM
  4. Modifications
    By Fluffy Bunny in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Jul 2007, 08:47 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