Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2008
    Posts
    22
    Plugin Contributions
    0

    Default A simple .php code question? Please help!

    Hi everyone,

    I know this is most likely a really simple thing, and I honestly have look here as well as google and still can not find the answer.

    All I want to do is add some space between the prev. listing and next buttons... I need to know what is php language for a space?

    I know it can be done, I visit a site that uses zen cart and has lots of space between them.

    I'm sorry for the bother on such a simple thing, I just can not find the answer.


    Thanks,
    Suzanne

  2. #2
    Join Date
    Mar 2004
    Posts
    688
    Plugin Contributions
    0

    Default Re: A simple .php code question? Please help!

    html language for a space is:
     
    Same for php..
    Was that your question?
    Marg

  3. #3
    Join Date
    Feb 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: A simple .php code question? Please help!

    yes Marg. Thanks so much, I had tried using html code once before on something else and it was a little different , similar but not exact so I didn't even try it this time. It seems you are my guide in all this you are the one who always comes through. Thanks.

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

    Default Re: A simple .php code question? Please help!

    Actually it's not PHP that will do this for you, but CSS.

    Add to your stylesheet (/includes/templates/your_template/css/stylesheet.css):

    .navNextPrevList a {margin: 0em .3em 0em .3em;}

    Adjust to taste.

  5. #5
    Join Date
    Feb 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: A simple .php code question? Please help!

    So I should not put the space in the .php? It did work I did get space?

    I'm just trying to understand. I used firebug to tell me where it was I needed to deal with and of course it led me straight to the .php file.

    If I change it there will it cause problems?

    Not trying to be hard headed, just trying to learn.


    Thanks.
    Suzanne

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

    Default Re: A simple .php code question? Please help!

    It doesn't cause a problem to recode a php file to add a space, but it reduces your flexibility and makes upgrading to the next version of Zen Cart that much more complicated. Also, with CSS you can specify exactly how much space you get on all sides; with PHP you can only add 1, 2, 3... spaces between output items.

    It is always recommended to do layout/styling work with your stylesheet whenever possible.

  7. #7
    Join Date
    Feb 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: A simple .php code question? Please help!

    GlennThank you!

    In solving that issue, the information you gave me also solved an issue with my product attributes lining up correctly

    Thanks so much for the help I really appreciate it more than you know. I know what it's like to see the same questions asked over and over. I think you guys are all wonderful for putting up with all of us newbies.


    Suzanne

 

 

Similar Threads

  1. v139h Simple PHP code question
    By DigitalShadow in forum General Questions
    Replies: 4
    Last Post: 26 Feb 2013, 08:13 PM
  2. A simple question, please help :)
    By pppkkk in forum PayPal Website Payments Pro support
    Replies: 1
    Last Post: 16 Jun 2009, 01:13 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