![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Site Flipper's Right Hand
War Room Member
Join Date: Jan 2004
Location: San Jose (Silicon Valley), CA , USA.
Posts: 4,383
Blog Entries: 1
Thanks: 67
Thanked 91 Times in 59 Posts
|
This has been the one thing that has been bugging me for a while.
If I try to create a css style rule that is the equivalent of this: <border="0" cellpadding="0" cellspacing="0" width="411" align="center"> What would it be? Especially, what would I use for: align="center" ? I'm trying to find the equivalent while using KompoZer. The best I can seem to find is "text-align: center", but that only affects the enclosed text, not the box containing the text. And that's what I want to do, I want to center the "box" containing the text. Thanks! Judy |
|
==> COMING SOON: 30 Days Of FREE Script Installs! ==> GMAIL Power: Get It Now While It's Still FREE ==> Wordpress Blogger? Important New Release! Get Your Upgrade Now! |
|
|
|
|
|
|
#2 |
|
Site Flipper's Right Hand
War Room Member
Join Date: Jan 2004
Location: San Jose (Silicon Valley), CA , USA.
Posts: 4,383
Blog Entries: 1
Thanks: 67
Thanked 91 Times in 59 Posts
|
My friend Anand Capur, owner of boostplatform.com, provided me the solution for the centering problem:
either: margin-left: auto; margin-right: auto; width: WIDTH; or, display: block; margin-left: auto; margin-right: auto; THANKS, Anand! |
|
==> COMING SOON: 30 Days Of FREE Script Installs! ==> GMAIL Power: Get It Now While It's Still FREE ==> Wordpress Blogger? Important New Release! Get Your Upgrade Now! |
|
|
|
|
|
|
#3 |
|
Active Warrior
War Room Member
Join Date: Sep 2009
Location: Canada
Posts: 84
Thanks: 3
Thanked 20 Times in 7 Posts
|
try this:
border: 0; margin: 0; padding: 0; text-align: center; width: 411px; |
|
VisualWebEffects- Premiere Web Design, Web Application Development, PC Software Development and Identity Design services
|
|
|
|
|
|
|
#4 |
|
HyperActive Warrior
War Room Member
Join Date: Feb 2008
Location: Escondido, CA
Posts: 364
Thanks: 16
Thanked 38 Times in 38 Posts
|
This gives the best explanation of how to do this that I've seen so far, I think: Max Design - CSS Centering - fun for all!
|
|
|
|
|
|
#5 |
|
Active Warrior
War Room Member
Join Date: Aug 2009
Posts: 36
Thanks: 0
Thanked 4 Times in 3 Posts
|
you can use something like:
width:411px; margin:0 auto; |
|
|
|
|
|
|
![]() |
|
| Tags |
| css, div, html, styles, table |
| Thread Tools | |
|
|
![]() |