Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: CSS Alignment question.



> I'm looking for the CSS that would replicate this functionality:
> 
> 	<table width = "100%">
> 		<tr><td align"left">left</td><td 
> align="center">right</td><td align="right">center</td></tr>
> 	</table>

I'm sure there are other techniques but to simluate columns in a single
row, I've always used the 'float' property:

#first-column, #second-column, #third-column {
	float: left;
	width: 33%; // specifying a width is very important to MSIE, I
believe, and 'auto' doesn't work too well in said browser
}

...and then in the indivdual faux-columns, insert your text-align rule.

#second-column {
	text-align: center;
}

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden

References: 
 >CSS Alignment question. (From: "Lee Hinde" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.