Solved

bullets appearing outside table

Posted on 2010-08-29
3
1,059 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
Comment Utility
try:

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


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

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 25 total points
Comment Utility
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
Comment Utility
thanks, both valid!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now