[css-d] How do I set a table cell alignment

2006-06-14 Thread Julie Dinger
Hello,

I'm a newbie and have been trying to set a table cell alignment in a 
style sheet.  I've tried everything I can think of to identify the 
table TD correctly as news but it's not working.  Any suggestions 
as to what I'm doing wrong or how to do it right will be very 
appreciated.

My HTML code for the table in question:

center
table id=news width=100% border=0
tr
td id=news align=left width=33%
!--RSS Image and link--
a 
href=http://www.leg.state.mn.us/webcontent/lrl/rss/just.xml;Library 
News RSS feednbsp;nbsp;IMG
src=/graphics/xml_36x14.gif alt= width=36 height=14 
border=0/a/tdtd align=middle
a href=http://www.leg.state.mn.us/lrl/rss/rss.asp;About 
RSS/a/td
!--RSS Image end--
td align=right
IMG src=/graphics/wireless3.gif alt=For free wireless Internet 
access in the library you need a laptop computer or PDA enabled to 
use WiFi 802.11b or 802.11g. border=no
/td
/tr/table/center

My CSS:

TABLE#news
{
TABLE-LAYOUT: auto;
WIDTH: 100%;
COLOR: white;
BORDER-WIDTH: 0;
}
TABLE#news TD
{
BORDER-WIDTH: 1;
VERTICLE-ALIGN: middle
}

I think the problem is with my syntax in the HTML, or where I'm 
placing the ID tag.   Thank you for any assistance.

Julie Dinger
Reference/Web Services Librarian
Minnesota Legislative Reference Library
www.leg.state.mn.us
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] How do I set a table cell alignment

2006-06-14 Thread cj
if it was my page and i really had to use a table, i'd do something like:

table id=news
tr
td class=news
[link]
/td
td class=about
[link]
/td
td class=graphic
[graphic]br/[it's a tall one]br/[really tall]
/td
/tr
/table

#news {
border: none;
width: 100%;
vertical-align: middle;
/* you set a color but no background so i'm not sure if i should copy
that part */
}

#news td {
border: 1px solid black;
}

.news {
text-align: left;
width: 33%;
}

.about {
text-align: center;
}

.graphic {
text-align: right;
}
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/