Home  |  About  | Last |  Submit  |  Contact
AllQuests.com

Previous Question:  Flickr Youtube Aggregator co browsing co shopping scripts  Scripts and Online ServicesNext Question:  How do prevent text from going under floating ad aka put nothing below it  CSS
Question items wont align left ( SitePoint Forums CSS )
Updated: 2008-11-23 03:35:02 (1)
items wont align left

I have list items in a Movable Type calendar that aren't aligning to the left of the cell. This is essentially a stock calendar from Movable Type, so pardon my use of tables.


This is a link to the page in question:
HTML Code:
http://www.pmojo.com/calendar
Anyway, here is a snippet of CSS:

Code:
#event-calendar {
        line-height: 140%;
        color: #666666;
        font-family: Verdana, Arial, sans-serif;
        font-size: 11px;
        text-align: left;
        margin-bottom: 30px;
       }

#event-calendar li ul {
padding:0px;
margin:0px;
text-align: left;
left:0px;
}

.first {
list-style-type: none;
padding:0px;
margin:0px;
text-align: left;
left: 0px;
border-left: 1px solid #999999; /* added to see the extent of the alignment */
}
and now the HTML for a table cell:

HTML Code:
			<td valign="top" class="d24">
				21
					<ul>
						<li class="first"><a href="http://www.pmojo.com/calendar/2004/09/all_campus_chor.php">All Campus Chorale Rehearsal</a></li>
					</ul>		
			</td>
Any ideas?

Thanks in advance!

Answers: items wont align left ( SitePoint Forums CSS )
items wont align left

Hi,

You need to take the default padding and margins of the ul.

Code:
#event-calendar ul {margin:0;padding:0;list-style:none}
Paul

Paul O'B

Previous Question:  Flickr Youtube Aggregator co browsing co shopping scripts  SitePoint Forums  Scripts and Online ServicesNext Question:  How do prevent text from going under floating ad aka put nothing below it  SitePoint Forums  CSS

- Source: items wont align left SitePoint Forums CSS
- Previous Question: Flickr Youtube Aggregator co browsing co shopping scripts SitePoint Forums Scripts and Online Services
- Next Question: How do prevent text from going under floating ad aka put nothing below it SitePoint Forums CSS





AllQuests.com