Solved

Remove extra space before <ul> in straight html

Posted on 2009-04-01
5
1,097 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 31

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

728 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