SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    610
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having <li> used when having a new line??

    Pretty much I want it so when I start a new line that it auto puts the bullets in.

    Basically I dont want to put

    <li>Item 1</li>
    <li>Iten 2</li>

    I need it where when I go to the next line it auto bullets.

    Reason being, when I am sending a quote to someone I have the info auto generated and the quote is coming in like

    descript.png

    Any help would be appreciated.
    Thanks In Advance

    David

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,802
    Mentioned
    158 Post(s)
    Tagged
    4 Thread(s)
    Hi,

    You may need to clarify a little more what you want as I'm not quite sure.

    It sounds as though you have one long sentence and when it wraps you want to show a bullet alongside but that seems a little odd to me and not actually possible anyway as you would need each line to be enclosed in a tag anyway to achieve that.

    I suppose if each line was a set px height you could use a repeating graphic to generate a bullet point.

    I didn't really see where your attachment fitted into all this or whether you were talking abut the dots alongside the description text.

  3. #3
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    610
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Probably didnt describe it good enough. Let me try again..

    When I put the description into the database I put it in like

    Code:
    J Wrapper/Contact 3 Belt Feeder with Allen Bradley Panelview/Markem 9840.
    <br><br>
    <li>Volts: 440/440</li>
    <li>Largest Motor Amps: 4.5/4.5</li>
    <li>Phase: 3/3</li>
    <li>Hz: 60/60</li>
    <li> F.L.A.: 30/30</li>
    <li>W: 14200/14200</li>
    <li>Schematic: 370056/370056.</li>
    It comes out on the site like the pic below.


    But when I send a quote, it comes out like this (in the persons email that gets the quote)


    I want the quote (that goes to persons email) to have the bullets like it looks on the page.

    Hope that made better sense.
    Attached Images Attached Images
    Thanks In Advance

    David

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    In other words your HTML markup source code is getting displayed instead of being rendered in the e-mail client for whatever reason, I assume you are trying to create HTML e-mail but it is displaying as plaintext.

  5. #5
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    610
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Correct, although the footer and header images are showing up which were done in HTML, just that one section isnt acting right.
    Thanks In Advance

    David

  6. #6
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    The markup in the snippet looks malformed since it has no UL, etc. Though without seeing the rest, it doesn't seem to make much sense why some of it's parsing and the other isn't. There is something elsewhere in the code that is probably the cause.

  7. #7
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    610
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I figured it out. When the form autofills, it is not coming up as

    <li>item</li>

    But coming as

    &lt;br /&gt;&lt;br /&gt;
    &lt;ul&gt;
    &lt;li&gt;ITEM&lt;/li&gt;
    Thanks In Advance

    David

  8. #8
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    What language/database are you using?
    Ryan B | My Blog | Twitter


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •