Solved

bullets appearing outside table

Posted on 2010-08-29
3
1,086 Views
Last Modified: 2012-05-10
Hi,

For some reason bullet points in my table are appearing outside the table I want them to.
eg
http://www.lowgiweightloss.com/index-working2.html
whether I have the <ul></ul> within each td or not.

Can anyone see how I cas fix this so that the bullets stay within the inner table (and therefore inside the border) please?

Cheers
<table style="text-align: left; width: 80%;"
 align="center" border="1" cellpadding=""
 cellspacing="0">
  <tbody>
    <tr>
      <td>
      <table
 style="width: 550px; height: 130px; text-align: center;"
 align="center" border="0" cellpadding="1"
 cellspacing="1">
        <tbody>
          <tr style="color: rgb(0, 0, 0);"
 align="left">
            <td
 style="font-size: 14px; color: rgb(0, 0, 0);">
            <ul>
              <li>Why <span
 style="font-weight: bold;">diets
DON'T work</span> long-term. </li>
            </ul>
            </td>
          </tr>
          <tr style="color: rgb(0, 0, 0);"
 align="left">
            <td
 style="font-size: 14px; color: rgb(0, 0, 0);">
            <li>How you
can <span style="font-weight: bold;">say
goodbye to counting&nbsp;calories </span><span
 align="center">or&nbsp;points<span
 style="font-weight: bold;"> </span>forever.
              </span></li>
            </td>
          </tr>

Open in new window

0
Comment
Question by:lgreally
3 Comments
 
LVL 12

Accepted Solution

by:
UnexplainedWays earned 25 total points
ID: 33555363
try:

TABLE UI LI {
list-style-position:inside;
}


Also, you should strip the table and just use a UL list.
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 25 total points
ID: 33555602
Because the 'bullet' isn't included in the margin and you have margin set to 0 on everything.  I used firebug and set "li { margin-left:14px;} and it moved the bullet to just inside the <td> boundary.
0
 

Author Closing Comment

by:lgreally
ID: 33555770
thanks, both valid!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Set email body to html using vbscript 6 41
CSS Logo Problem. 2 20
Problem with spacing columns on a row in a table 10 25
Html5 string 3 22
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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 …

770 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