Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Problems with bullet lists – CSS or HTML?

    Hi,

    First, I have zc15, a template installed, and i use CKEDITOR.

    You can see it here:
    JustUsedMedicalEquipment<DOT>com

    PROBLEM
    Whenever I create a bullet list, a space gets inserted below the list title.

    EXAMPLE 1 - this is what I want

    SURGERY TABLES
    • Amsco 2080L Electric Surgery Table
    • Mizuho OSI Jackson Table, Spinal Table
    • Steris 3080RC Surgery Table
    • Steris 3080RL OR Table



    EXAMPLE 2 - this is what I get

    SURGERY TABLES

    • Amsco 2080L Electric Surgery Table
    • Mizuho OSI Jackson Table, Spinal Table
    • Steris 3080RC Surgery Table
    • Steris 3080RL OR Table



    This has driven me NUTZ... for years!!!

    Am I missing something? Can this be fixed using CSS? If so... how?

    Thanks!

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Problems with bullet lists – CSS or HTML?

    on your "Equipment We Need... Now!" page you have entirely too many h1 tags. The should only ever be one h1 tag on a page. additionally h1-h6 tags have margins set on them in the stylesheet which maybe the contributing factor.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Problems with bullet lists – CSS or HTML?

    Hi barco!

    Yes, I was screwing around on that page. I really wish this problem was related to margins set by <h> tags!

    To demonstrate my problem very clearly, I added a page for you:
    justusedmedicalequipment<DOT>com/Equipment_We_Need..._Now/Bullet_List_Testing

    On that page, I show the same list over and over, changing appearance each time. Then right beside it, the html I used to build it. I do not use any <h> tags.

    I think the solution I need will be css related. Maybe there is a way to apply a negative margin above my list? To subtract out the space above, which I assume gets applied by the <p> tag?

    But I'm terrible with css.

    I'm really desperate to solve this problem. Anyone? Anyone? Bueller? lol

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,926
    Plugin Contributions
    96

    Default Re: Problems with bullet lists – CSS or HTML?

    The space between the paragraph and the unordered-list is due to the combination of the 0.5em padding below the paragraph and the 12px top-margin on the unordered list.

    You could add the following to your stylesheet, so that anytime a <p> is followed directly by a <ul> there is no intervening space:
    Code:
    p+ul { margin-top: -0.5em; }

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Problems with bullet lists – CSS or HTML?

    If not aware, this can be applied to individual product, categories, designated pages etc. as necessary. See the includes/templates/template_default/css/CSS_read_me.txt file.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Problems with bullet lists – CSS or HTML?

    lat9...

    กกก A*W*E*S*O*M*E !!!

    Thank you so, so very much. Seriously. This has bugged me for so many years! Thank you thank you thank you!

    And thanks for the extra tip on how to limit the application, mc!

 

 

Similar Threads

  1. Problems with the HTML Editor
    By crypticdust in forum General Questions
    Replies: 4
    Last Post: 14 Nov 2009, 05:19 AM
  2. CSS Bullet list issue
    By MCanes in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Jun 2007, 12:12 AM
  3. Problems with html in product listing.
    By shepworth in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Apr 2007, 03:55 AM
  4. convert html template to php with css?
    By titangen in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 3 Apr 2007, 07:52 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