Klaus Beck
style for formatting <table>
Mon May 14, 2007 10:43
172.180.89.95 (XFF: 80.1.204.114)

I am editing my website www.naiyang.com. For a uniform design of all pages I try to use styles and stylesheets.
I do not find the style-declaration for positioning a table in the horizontal middle of the page.
<table align="center" style="background-color:#01a89e; width:96%; padding:3;">
I want to change [align="center"] into a form like [style "text-align:center;"] or [style "horizontal-align:center;"] or similar. I do not find the appropriate command neither in my handbook HTML Reference nor at its CD noo in the Internet.
Can you help me? Thanks in advance
Klaus Beck
bogybeck@aol.com

    • centering a tablejose puga, Tue May 15 08:27
      Did you try TABLE{margin:--}; ? If you put de same number de margin is equal,at left,at right,to the top and to bottom ... Or use only TABLE{margin-left:--;margin-right:--} (same number to center )
      • Re: centering a tableAnonymous, Tue May 15 10:19
        Thanks, Jose, for caring about me. <table style="padding: 3px; background-color: rgb(1,168, 158); width: 96%; margin-left: 2%; margin-right: 2%;"> works properly and it makes sens. I have another... more
        • font-sizejose puga, Wed May 16 11:15
          I had gone to NVU.Open the editor. If you go to FORMAT you can see a list with sizes for the font. Make the download of NVU if you have have not it. It's free!
        • souce sizejose puga, Wed May 16 05:06
          I think NVU can do that,however I only think: I always define the sizes at the style. I do not define the style inside but between <head> and </head> or in a external sheet. It's easier.... more
    • Centering a tableSean Brunnock, Mon May 14 11:56
      This really bugs me about style sheets. To center a container, you're supposed set the left and right margins to "auto". It doesn't work with all browsers.
      • Re: Centering a tableAnonymous, Mon May 14 12:15
        Thanks, Sean, for answering immediately. "auto" does not work, but [width:96%; margin-left:2%; margin-right:2%;] works. Best regards, and have a look to www.naiyang.com for nice holidays at Phuket... more
  • Click here to receive daily updates