Solved

Remove extra space before <ul> in straight html

Posted on 2009-04-01
5
1,088 Views
Last Modified: 2012-06-21
Is there a code to add in html to remove the extra space before unorder lists in straight html. I cannot use CSS as these are email blasts
0
Comment
Question by:ursusmaritimus
5 Comments
 
LVL 10

Expert Comment

by:cyberstalker
ID: 24042905
Have you tried inline CSS? <ul style="margin: 0px; padding: 0px">?
0
 

Author Comment

by:ursusmaritimus
ID: 24043086
cyberstalker:

That did not have the desired results: the bullets were removed, flushed to the left and extra space before remains. Other suggestions?
0
 
LVL 13

Accepted Solution

by:
qwerty021600 earned 200 total points
ID: 24046670
This is what you want :
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 
  <tr>
    <td>cxc</td>
    <td>&nbsp;</td>
  </tr>
 <tr>
    <td><ul>
      <li style="list-style: none; margin-left: -40px; ">cvjnv</li>
    </ul></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
0
 
LVL 30

Assisted Solution

by:Wayne Barron
Wayne Barron earned 50 total points
ID: 24047335
ursusmaritimus:
Can you provide an example of your code and the desired effect?

Also, you can have a look here, maybe this will help you as well.
http://www.alistapart.com/articles/taminglists/

Carrzkiss
0
 

Author Closing Comment

by:ursusmaritimus
ID: 31565508
qwert: 200 points for suggesting the table for the bulleted list. That will work (all that extra coding - ick!)
carrzkiss: 50 points for the article reference. Good resource for the future.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why my select dropdown does not work? 8 41
Only three borders showing on image 5 20
Html test in IIS 4 20
how can I add blockquote after on my wordpress site 3 10
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question