CSS unordered list {line spacing question}

Hi everyone.
I am trying to make a bulleted list, and I have 5 elements.
Some require one line, while others require two lines. But the
thing is, I want the leading to be lets say 20pt between items. But
since some of the items require two lines, i want those items to
have their line spacing closer so they can seem that they are part
of the same bullet point. Is there any way I can do this? Is it
even possible?
Any help would be appreciated.
Thanks
-Ce

Use <ol> or <dl> or <ul> list container and
wrap your bullets in individual <li> tags.
use css to style the line-height of the lis. Use a class on
each group of lis to set the line-height.
<ul>
<li class = "double_height">Item 1</li>
<li class = "single_height">Item 2</li>
<li class = "double_height">Item 3</li>
</ul>
ul {
margin: 0;
padding: 0;
list-style: none;
.double_height {
line-height: 2.5em;
.single-height {
line-height: 1.2em;
You can play with the settings to get the best results but
this code will give you an idea of what is possible.
regards
Nick Barling
www.barkingweb.com

Similar Messages

  • Unordered List Line Spacing

    I have an unordered list on my site that was fine up until
    today. All I did was edit someting else on the page, I think it was
    just an image or image placeholder or something, and when I checked
    the page in the browser again, the list was more than single
    space...it looks like 1.5 spacing or so. How can I change this back
    so the list is just single spaced? The site is
    www.wetlawnirrigation.com if it helps, bottom left of the home
    page. Thanks.

    Hello,
    Try changing this:
    .style7 {
    font-size: 16px;
    To this:
    ul.style7 li{
    font-size: 16px;
    margin: 0px;
    Many browsers use different default margins for certain tags
    if you don't
    define one with CSS.
    It looked fine in FireFox, but the space was there in IE as
    IE has a bigger
    default margin for the LI tag.
    Take care,
    Tim
    "cgcg04" <[email protected]> wrote in
    message
    news:gnim3g$go1$[email protected]..
    >I have an unordered list on my site that was fine up
    until today. All I
    >did
    > was edit someting else on the page, I think it was just
    an image or image
    > placeholder or something, and when I checked the page in
    the browser
    > again, the
    > list was more than single space...it looks like 1.5
    spacing or so. How
    > can I
    > change this back so the list is just single spaced? The
    site is
    > www.wetlawnirrigation.com if it helps, bottom left of
    the home page.
    > Thanks.
    >

  • Text Line Spacing Question

    Hi, I am creating a book in aperture 2.0 and am having some trouble adjusting the line spacing in a newly created text box. The default text book in the template has a line space of +5. I have created my own text box for another page and the line spacing is +1.
    How do i change this to +5 to match the default. I cant find the option anywhere.
    Thanks in advance.
    PS. I find version 2 much nippier than 1.5.6.
    Message was edited by: Big Al Uk

    Bruce:
    Thank you for your reply. I generally set all the default margins to "0". I'll adjust the margins for paragraph indentations.
    I'm not sure how to describe the problem better than in my original posting, but I'll try.
    Suppose a form which looks like a contract with headings, single unchanging sentences and dynamic paragraphs.
    Suppose you create a Text Field object, and you use the Concat function. Suppose that you created multiple very long sentences using Concat in that same Text Field. You could use the paragraph window to set the line spacing at 1, 1.5 or 2.
    Set the line spacing at 2.
    Suppose you create a Text object that was either a heading or a sentence or two in length.
    Suppose there are both multiple Text Field and Text objects throughout the document.
    My is issue is lining up the line spacing so it is consistent double spaced throughout the document where there are multiple Text and Text Field objects. If I just look at it, my line spacing is close but far from consistent.
    I set my Text Objects and Text Fields at .25in throughout the whole document and that gets me an approximation of 1.5 line spacing, but that is still only close.
    Thanks for any additional thoughts.
    Best,

  • Robohelp 10 output line spacing for numbered lists is off

    I wondered if you have had this situation occur with your output from Robohelp 10.
    I created my help system and CSS using Robohelp 10. My CSS contains a numbered list style and an alpha list style, both having line spacing of 3pt before and 3pt after. Looks great in Robohelp WYSIWYG, but the generated output (in IE and Chrome) looks bad. The numbered list line has way too much line spacing after (the next style is a non-numbered list style) and the alpha list has way too little line spacing.
    I tried playing around with changing the line spacing but it does not change the output!
    Thought I'd reach out to see if you have experienced this issue and the most expedient way to resolve.
    Here is an example of HTML tags in Robohelp:
    numbered list
    <?rh-list_start level="1" an="1" class="rl-p-1ListNumber" start="1" style="list-style: rh-list;
      list-style: rh-list;" ?><p class="1ListNumber">instruction text.</p><?rh-list_end ?>
    alpha list
    <?rh-list_start level="1" an="1" class="rl-p-Alpha" style="list-style: rh-list;
      list-style: rh-list;" ?><p class="Alpha">Instruction text.</p><?rh-list_end ?>
    thanks much

    If you create a single topic project showing this problem and send it to me as directed on the Contact page of my site, I will take a look.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I change or reduce the line spacing to single in a "multiple lines of text" column in a list?

    We keep many logs in a simple list format. One of the columns requires a description using the "multiple lines of text" default column. Sometimes the person making the entry needs to complete about 20-30 lines of text. Users are requesting we reduce
    the amount of space advanced between lines to save space and be more concise. Is there a way to reduce the line spacing for the column entries to single spacing without code?
    Maree N Percival

    We determined that the site column settings were incorrect for allowing single spacing, we changed the site column setting from "Enhanced rich text (Rich text with pictures, tables, and hyperlinks)" to  "Rich text (Bold, italics, text alignment, hyperlinks)"
    and it is now keeping the text in single spaced lines.
    <label for="onetidRichText">Specify the type of text to allow:</label> 
    <input id="onetidRichTextPlain" name="RichText" title="Plain text" type="radio" value="PLAIN" />
    <label for="onetidRichTextPlain">Plain text   </label>
    <input id="onetidRichTextCompatible" name="RichText" title="Rich text (Bold, italics, text alignment, hyperlinks)" type="radio" value="COMPATIBLE" />
    <label for="onetidRichTextCompatible">Rich text (Bold, italics, text alignment, hyperlinks)</label>
    <input id="onetidRichTextFullHtml" name="RichText" title="Enhanced rich text (Rich text with pictures, tables, and hyperlinks)" type="radio" value="FullHtml" />
    <label for="onetidRichTextFullHtml">Enhanced rich text (Rich text with pictures, tables, and hyperlinks)</label>
    Maree N Percival

  • LIne spacing +css

    What a css setting for eliminating the extra line space that
    occurs after a </p>
    If this were in Word, this space would be equivalant to a
    double space after an enter.
    Thanks!

    On 08 Mar 2007 in macromedia.dreamweaver, adunate wrote:
    > Joe, Thanks also for your suggestion. However, sometimes
    its hard to
    > search if you're not quite sure what you're searching
    for. Before my
    > initial post I searched each group for "line spacing"
    (seems obvious
    > to me) and came up with zero topics.
    You're coming to this forum through Adobe's webforum; it's
    also gatewayed
    to a newsgroup
    (news://forums.macromedia.com/macromedia.dreamweaver). As
    a result of that, the forum is searchable by Google Groups:
    http://groups.google.com/groups?as_q=line+spacing&as_ugroup=macromedia.*
    which came up with 3,160 results.
    I also went to the front page of the Dreamweaver General
    Discussion
    webforum and entered line spacing as the search term. It came
    back with
    a full page of results, all of which give you the answer
    you're looking
    for.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • CSS line spacing + XML

    I am using a Spry accordion in DW CS3 to read an XML file.
    The XML file contains breaks (not coded), but within the Accordion
    content, all the paragraphs are run together.
    See sample here:
    http://www.stogiefresh.com/cigardatabase.html

    On 08 Mar 2007 in macromedia.dreamweaver, adunate wrote:
    > Joe, Thanks also for your suggestion. However, sometimes
    its hard to
    > search if you're not quite sure what you're searching
    for. Before my
    > initial post I searched each group for "line spacing"
    (seems obvious
    > to me) and came up with zero topics.
    You're coming to this forum through Adobe's webforum; it's
    also gatewayed
    to a newsgroup
    (news://forums.macromedia.com/macromedia.dreamweaver). As
    a result of that, the forum is searchable by Google Groups:
    http://groups.google.com/groups?as_q=line+spacing&as_ugroup=macromedia.*
    which came up with 3,160 results.
    I also went to the front page of the Dreamweaver General
    Discussion
    webforum and entered line spacing as the search term. It came
    back with
    a full page of results, all of which give you the answer
    you're looking
    for.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Unordered list not printing correctly

    I created a heading 3 followed immediately by an unordered
    list. However, when I print the webpage out, I see the heading 3
    fine and then the 1st bullet appears where it should but the text
    for the first bullet begins several lines down the page. All the
    other bullets are thus pushed down as well but the spacing for the
    remaining bullets is fine. It's just that the text for the first
    bullet begins way down the page. Everything looks OK in the
    browser; just when printed is the problem.
    Here is the process I followed. Selected heading 3 on the
    property inspector and typed my heading. Then went to
    insert-->html-->text objects-->unordered list and began
    typing in the info for each bullet
    My code is below. Please help.
    <h3>Deposit Ticket Request</h3>
    <ul>
    <li>Deposit tickets will be paid for by Treasury
    Operations provided they are ordered through our department and not
    ordered as a RUSH</li>
    <li>If a RUSH is requested it will be the
    responsibility of the department to cover all charges for the
    deposit tickets</li>
    <li>Please allow 3-4 weeks for the deposit tickets to
    arrive once they are ordered</li>
    <li>Whenever a deposit is made, a deposit ticket MUST
    be included, regardless of the amount, or the type of
    deposit</li>
    <li>The deposit tickets will be either a two or three
    part ticket</li>
    </ul>

    .oO(Johnny the boy)
    >Thanks for the reply Micha
    >
    > It appears the problem occurs in I.E. but is just fine
    when printing in Firefox
    >
    > the site address to the page in question is
    >
    http://www.indiana.edu/~iutreas/test/forms/bankingdepositticketrequest.html
    It's most likely an IE issue with floats. I already get this
    effect in
    the normal browser view - the form is pushed down after the
    left-side
    "New Items" box. The print preview looks even worse as
    described.
    Actually I don't have a quick solution at hand. A while ago I
    had a
    similar problem on one of my sites, but can't remember what I
    did to
    solve it ... In many cases it's enough to simply apply a
    height: 1% or
    zoom: 1
    to the floated element to get the rendering right in IE. You
    just have
    to make sure that only IE sees these hacks. Conditional
    comments are
    really helpful for that.
    Micha

  • Additional line spacing added to cells?

    I'm building a vertical navigation table in a template. It
    looks fine when I view it in design view but when I preview it a
    browser (firefox or IE) it seems to add a paragraph return or
    something after my last word of text causing an additional line of
    spacing within the cells. This results in the lines of text in the
    navigation list to look too far apart. There's no parapgraph return
    that I can find. I'm using a bulleted list.
    Here's some of the code if it helps folowed by the css style
    info:
    <td width="165" height="1019" valign="top"><table
    width="165" border="0" align="center" cellpadding="0"
    cellspacing="0" background="/images/vertgldgradient.jpg">
    <tr>
    <td width="157" class="navheading">welcome</td>
    </tr>
    <tr>
    <td class="navlink"><ul>
    <li><a
    href="../index.htm">Home</a></li>
    </ul></td>
    </tr>
    <tr>
    <td class="navheading">products</td>
    </tr>
    <tr>
    <td class="navlink"><ul>
    <li><a href="../Racks.htm">Studio
    Guitar<br>
    Case Rack </a></li>
    </ul></td>
    </tr>
    <tr>
    <td class="navlink"><ul>
    <li><a href="../guitarcases.htm">Guitar Cases
    </a></li>
    </ul></td>
    CSS:
    .navlink {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #003399;
    text-decoration: none;
    text-align: left;
    list-style-position: outside;
    list-style-image: url(../images/bluebullet_ar.gif);
    vertical-align: middle;
    Any help would be appreciated
    Thanks

    Looks awkward to me. Why not have a single cell containing an
    unordered
    list -
    <td>
    <ul>
    <li><a href="home.html">HOME</li>
    <li><a href="../Racks.htm">Studio
    Guitar<br>
    Case Rack </a></li>
    </ul>
    </td>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "blueman2" <[email protected]> wrote in
    message
    news:[email protected]...
    > I'm building a vertical navigation table in a template.
    It looks fine when
    > I
    > view it in design view but when I preview it a browser
    (firefox or IE) it
    > seems
    > to add a paragraph return or something after my last
    word of text causing
    > an
    > additional line of spacing within the cells. This
    results in the lines of
    > text
    > in the navigation list to look too far apart. There's no
    parapgraph return
    > that
    > I can find. I'm using a bulleted list.
    >
    > Here's some of the code if it helps folowed by the css
    style info:
    >
    > <td width="165" height="1019"
    valign="top"><table width="165" border="0"
    > align="center" cellpadding="0" cellspacing="0"
    > background="/images/vertgldgradient.jpg">
    > <tr>
    > <td width="157"
    class="navheading">welcome</td>
    > </tr>
    > <tr>
    > <td class="navlink">
    >
    <a href="../index.htm">Home</a></li>
    >
    </td>
    > </tr>
    > <tr>
    > <td class="navheading">products</td>
    > </tr>
    > <tr>
    > <td class="navlink">
    >
    <a href="../Racks.htm">Studio Guitar<br>
    > Case Rack </a></li>
    >
    </td>
    > </tr>
    > <tr>
    > <td class="navlink">
    >
    <a href="../guitarcases.htm">Guitar Cases
    </a></li>
    >
    </td>
    >
    > CSS:
    > .navlink {
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 12px;
    > font-weight: bold;
    > color: #003399;
    > text-decoration: none;
    > text-align: left;
    > list-style-position: outside;
    > list-style-image: url(../images/bluebullet_ar.gif);
    >
    > vertical-align: middle;
    >
    > Any help would be appreciated
    >
    > Thanks
    >

  • When will Adobe Muse support ordered and unordered lists?

    When will Adobe Muse support ordered and unordered lists instead of forcing users to create manually formated bullet points? I've asked this question before, but never saw an answer to it. I know others have asked it as well. Adobe has set a high bar with its other solutions. It doesn't look good that Muse does not support ordered and unordered lists at this late date.

    Lance,
    Thanks for responding - I guess I pushed a button
    My perception of the forums and response from Adobe is based upon looking at most of the postings in the "bugs" forum. There are lots of reads, very few replies.
    Given the fact that many users have asked about bullets and other basic text formating I am surprised that there is still no sign of them. Perhaps it is felt that there are workarounds that will do. The truth is, as you noted, that none of the workarounds are great, some are not even practical. For my specific case, I would have been happy to use workaround #1, except that the line items were hyperlinks, and I needed to open them in a separate window using the javascript window.open function. As I've detailed in other posts, there is a real problem with this in Muse. Hyperlinked javascript calls are invoked via the "href=" attribute, but this doesn't work properly in a number of browsers. There isn't a way to tell Muse to use onclick instead (which works for all browsers). This led me to have to use embedded html.
    That leads me to try #2, which is to use CSS styling in the embedded html. This too gave me fits. Using a <style> section to set the attributes for <ul> or <li> did not work. I can only assume that the tags inside the embedded HTML have a Muse-generated id or class. I tried to get the bullets by setting the list-style-type in the <ul> tag itself using the style attribute, but this did not work (it should). It does work if you put the list-style-type in the <li> tags. This is pretty tedious, and led me to create text files containing the html separate from Muse so that I can use an editor to copy repeated strings. Then I cut and paste into the embedded html container.
    Note that, even though I finally found something that works, it is not visible in the design view, so you can't even tell it works without previewing it!
    I haven't tried option #3, but given the need to force the use of onclick I imagine that would not be possible with your widget. I was aware of the list widget however.
    I'll have to look at the Mucow docs and give it a try. The docs are a bit light - any plans to flesh them out?
    Thanks,
    Gareth

  • Rounded corners on unordered list

    I'd like to be able to have style my vertical menu, made with
    an
    unordered list, to have rounded corners. The menu is a fixed
    width, but
    the items could sometimes run onto two lines, so the height
    of each item
    needs to be flexible.
    I created images called top.gif and bottom.gif for the curves
    and when
    I've done boxes I've made the bottom image a background to
    the box div
    tag and the top image a background to the heading tag within
    the div.
    However with the unordered list I don't really have two
    elements to
    attach the images to, if you understand what I mean?
    I've been googling but haven't yet found a solution. Can
    anyone
    recommend a way of doing this?
    Thanks
    Vix

    > I've been googling but haven't yet found a solution. Can
    anyone recommend
    > a way of doing this?
    Could could wrap the UL in a DIV, giving you two elements.
    You could give the first LI and last LI custom classes,
    giving you to
    elements.
    While not pristine, I often will use wrapper divs to attach
    CSS too:
    <div id="menuOuterwrapper">
    <div id="innnerWrapper">
    <ul>...</ul>
    </div></div>
    That works for me in that it keeps my 'style HTML' separate
    from my 'content
    HTML'.
    A goofy interpretation of 'separation of style and content',
    perhaps.
    -Darrel

  • Ordered and Unordered Lists viewed in WYSIWYG Editor in RoboHelp 10

    I recently upgraded a project from RH 9 (9.0.2.271) to RH 10 (10.0.0.287). Ordered and unordered lists display in the WYSIWYG Editor with more spacing around each line. When I generate the output to HTML Help, the spacing looks fine. I also tested generating output to WebHelp, and again, the output looks fine.
    I have paragraph and list styles defined in my style sheet that I apply to the text in the topic. I also looked at the styles in RH 10 and Media is set to "None."
    Using the Style Pod, I looked at the set up of the parapgraph and list styles. For those styles, (and my body text styles - which look fine in the WYSIWYG Editor) have spacing before and after spacing set. (NOTE: These styles were created in RH8 and the WYSIWYG Editor displayed the styles appropriately in RH8 and RH9.) Even though I changed the style sheet, the WYSIWYG Editor is still displaying more space around the styles then I am expecting.
    I know this is not a huge issue since the output looks fine, but I want to understand why the WYSIWYG Editor isn't working as I expect. I would like the editor to display with correct spacing.
    I attached a few screen captures showing what I see.
    HTML Help Output
    Thanks in advance for your help.

    I suspect part of the issue is that your list styles have spacing above and below and then you have applied paragraph styles that also have spacing above and below.
    Using both is OK and is how I work. However, I do not have any spacing above and below in my list styles. I rely on the paragraph style for that. It looks like Rh's Design Editor is applying both but browsers are not.
    It is still not quite the same in a browser as in Design Editor but it is much closer. There will also be browser differences anyway so it's a case of getting some balance.
    Try removing the before and after spacing in the list style. Alternatively, if you do not generate printed documentation then rely on the list style only. (Select the lists in a topic and set paragraph to None).
    Let us know if that is close enough.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Unordered list - changing color of bullets

    Hi,
    I am using DW CC.  I added an unordered list to a web page, and if possible, I'd like to change the color of the bullets.  They are showing up as black, and I would like to choose something different.  Can anyone tell me if / how I can do this?
    Thanks in advance,
    Paul

    Here are some great suggestions -
    http://stackoverflow.com/questions/5306640/how-to-define-the-color-of-bullets-in-ul-li-lis ts-via-css-without-using-any-im

  • TEXT ALIGN PROBLEM UNORDERED LIST SPRY PANEL

    When a sentence is too long for its container it breaks to the line below
    In a vertical unordered list with square bullets how do I get the word below
    to line up with its parent sentence above? just like in this sentence. Reference below.

    We would need to see your CSS & HTML code.
    My guess is that you removed default settings (margins & padding) from your unordered lists -- perhaps with a reset CSS.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Modifyling Line Spacing

    I am using Dreamweaver MX 2004. I have a Navigation list in
    the left vertical layout table using a style I created called
    Navlist. It works correctly with hovers etc. The only thing I don't
    like is that the spacing between the lines of text is too close. I
    have used a <br> return. If I use a <p> return it is
    way too much. Is there a way I can use edit the style with the css
    panel to increase (or decrease) the spacing slightly?
    Thanks
    Mike

    http://www.google.com/search?q=controlling+line+spacing+with+css&ie=utf-8&oe=utf-8&aq=t&rl s=org.mozilla:en-US:official&client=firefox-a

Maybe you are looking for

  • GR/IR -Freight GL Balance in B/S

    Hi Everyone , In my project ,while creation of PO they used to give freight percentage and which used to get collected in GR/IR-freight account automatically. GR/IR-freight a/c will get nil only after creation of AP invoice,so in year end its not pos

  • How to disable or remove Remote Desktop in Windows 7 Pro

    Hello, I need to be able to disable, turn off, uninstall, or restrict Remote Desktop Connection completely on student laptops running Windows 7 Pro. The students do not take their laptops home. Can someone please assist me with a definite way to remo

  • I have no iCloud icon in my phone.

    I have no iCloud icon in my phone. where is it at?

  • Trouble syncing photos in iTunes to iPad

    I am trying to sync selected photos to my ipad(1). I have made an album but when I select that album(which only has 98 photos in it),it sync and ends up with over 200 photos(and not just the ones from the album). I have deleted and tried again but it

  • I need the definitions for below material types

    Hi all, Can anyone tell me the diefinition of the below material types   1) WM materials   2) Consumable Material   3) Stock Material thanks in advance, Prashnath.