Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Change spacing around text

    I can't figure this one out. One this page, http://customcreationsunlimited.com/...roducts_id=975

    The line that read 'Deadline for Christmas delivery...' why is it not lined up with the text before it? How do I fix it?

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Change spacing around text

    Hi,

    When you View Source on that page and search for "Deadline" you find it in this bit of code...

    HTML Code:
    <div class="wrapperAttribsOptions">
    <h4 class="optionName back">Order Deadline 03</h4>
    <div class="back">
    Deadline for Christmas delivery will be posted in mid-November<br />
    </div>
    <br class="clearBoth" />
    </div>
    So that section of text has an H4 tag with a class of "optionName" and "back"; then your problem text in a div of class "back", all wrapped in a div of class "wrapperAttribsOptions".

    Look in your stylesheet to see how H4s are styled, how the optionName class is styled and how the back class is styled. Then add salt and pepper to taste.

    (I presume you know how to make changes in your style sheet and view the results, then do it again, and again, ... ... .)

    Rob

  3. #3
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Change spacing around text

    Quote Originally Posted by rstevenson View Post
    (I presume you know how to make changes in your style sheet and view the results, then do it again, and again, ... ... .)

    Rob
    I do know how to edit it but I'm not sure what to change that will affect the line height. I can do color, text size, justification and such

    Thanks

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Change spacing around text

    You may have to play with padding and/or margins, but watch for unexpected issues. That "back" class is used in other places.

    If I knew more about specificity in CSS I'd be able to help more, because you can probably target just that bit of text by making a very specific rule. But I've never gotten that clear in my mind.

    Something like ...
    .wrapperAttribsOptions .optionName .back { your style here }

    Rob

  5. #5
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Change spacing around text

    I see margins have four dimensions. what order are they? Left, right, top, bottom??

  6. #6
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Change spacing around text

    Okay, if I use padding I can get the text to slide down but the text boxes for other attributes also get pushed down. See http://customcreationsunlimited.com/...products_id=56

    Why do some line up but not others? It seems it's not a CSS issue but then what is it?

  7. #7
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Change spacing around text

    The order for padding and margins is clockwise beginning at noon - top, right, bottom, left - Unless you are doing pairs - the it is top/bottom, right/left.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  8. #8
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,587
    Plugin Contributions
    29

    Default Re: Change spacing around text

    Can I do a negative padding to move lines closer? I tried and it doesn't seem like it. I'd like the three attribute option lines to be closer together vertically.

 

 

Similar Threads

  1. Change text spacing in subcategories
    By rsnorton in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Sep 2010, 02:08 PM
  2. Weird Spacing Around Links
    By mollycampbell in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Jun 2009, 03:50 AM
  3. Attribute image spacing around image
    By chris112 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Feb 2009, 10:02 PM
  4. change spacing of text on listing
    By BekahRuth in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 15 May 2008, 11:48 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