Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Changing the Double Space

    How can I change the double space created when you hit enter while your are writting the description? I mean on the admin side looks single space, but on the frontend looks double, creating space where I don't want it.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Changing the Double Space

    Options, in recommended order:
    1. turn off your online HTML editor, because it's adding <p> tags every time you press Enter ... and prepare your HTML in raw format, or with another editor and paste it in manually.

    2. change your stylesheet to treat <p> tags with less padding on top/bottom (this is fastest, because you won't have to go back and edit all your product, and is ultimately the smartest solution if you choose not to embrace #1 above)

    3. learn to use Shift-Enter to create <br> tags instead of <p> tags
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: Changing the Double Space

    2. change your stylesheet to treat <p> tags with less padding on top/bottom (this is fastest, because you won't have to go back and edit all your product, and is ultimately the smartest solution if you choose not to embrace #1 above)
    .....and how I do that?
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

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

    Default Re: Changing the Double Space

    Sorry ideasgirl, but you're going to kick yourself.

    Just add something like the following to your stylesheet
    p {padding:0.2em 0}
    It's generally a good idea to set defaults on the main tags anyway, as there's no guarantee that all browsers will give you the same amount by default. This is especially true of the UL tag.
    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
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: Changing the Double Space

    No, since I already tried that and didn't work. I was trying with px instead of em. I tried with em (just in case), but doesn't work neither.

    So I guess I will go editing the rest of the items (1 by 1) with the <br /> change instead.

    Thanks anyhow.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

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

    Default Re: Changing the Double Space

    Deepest apologies. Dr Byte, you and me, we all fell into the same trap (cosy down here don't you think?). It's margin, not padding, that needs to be adjusted for <p> tags.
    Last edited by kuroi; 1 Sep 2006 at 03:51 PM.
    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
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: Changing the Double Space



    I appreciate the help >>sigh<< but I've tried that (and did it again) and many other ways and still not doing the trick. Yes there's some change, the lines get together a bit more, but even if I put 0 as margin, as padding, different line-heights, and percents, stills there a little space like it was a ½ space.

    I will just drink my coffee while I make the changes to <br />.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

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

    Default Re: Changing the Double Space

    In a clean enviroment, i.e. just a couple of paragraphs with ascenders and descenders, this minimal CSS
    p {margin: 0; line-height: 0.7em }
    results in two lines that overlap in FF, IE and Opera. If that's not happening in your situation, then either there's something else lurking in your HTML or your CSS ia getting overridden.
    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
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: Changing the Double Space

    If that's not happening in your situation, then either there's something else lurking in your HTML or your CSS ia getting overridden.
    Well, yes... I see everything overlapping but not the product description where I really want the changes.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,686
    Plugin Contributions
    11

    Default Re: Changing the Double Space

    just a thought but, have you tried putting .plainbox-description in front of the p?
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 5 Jun 2013, 03:39 PM
  2. Replies: 5
    Last Post: 31 Aug 2012, 06:58 PM
  3. Replies: 2
    Last Post: 24 Jul 2009, 01:18 PM
  4. Define Page Editor : Double line space between Paragraphs
    By lancebotha in forum Customization from the Admin
    Replies: 2
    Last Post: 22 Jun 2006, 03:32 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