War Room

Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 11-02-2009, 06:16 PM   #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
Social Networking View Member's Twitter Profile 
Default Table to Div, HTML attributes to CSS styles

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

zapseo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2009, 09:54 PM   #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
Social Networking View Member's Twitter Profile 
Default Re: Table to Div, HTML attributes to CSS styles

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!

zapseo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2009, 10:14 AM   #3
Active Warrior
War Room Member
 
VisualWebEffects's Avatar
 
Join Date: Sep 2009
Location: Canada
Posts: 84
Thanks: 3
Thanked 20 Times in 7 Posts
Contact Info
Send a message via Skype™ to VisualWebEffects
Default Re: Table to Div, HTML attributes to CSS styles

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
VisualWebEffects is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2009, 12:07 PM   #4
HyperActive Warrior
War Room Member
 
Join Date: Feb 2008
Location: Escondido, CA
Posts: 364
Thanks: 16
Thanked 38 Times in 38 Posts
Default Re: Table to Div, HTML attributes to CSS styles

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!
Aronya is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-04-2009, 07:05 PM   #5
Active Warrior
War Room Member
 
Join Date: Aug 2009
Posts: 36
Thanks: 0
Thanked 4 Times in 3 Posts
Default Re: Table to Div, HTML attributes to CSS styles

you can use something like:

width:411px;
margin:0 auto;

723Media is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
css, div, html, styles, table

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:26 AM.