centering a table
Tue May 15, 2007 08:27 (XFF:

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 )

  • style for formatting <table>Klaus Beck, Mon May 14 10:43
    I am editing my website 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 ... more
    • centering a table — jose puga, Tue May 15 08:27
      • 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 for nice holidays at Phuket... more
Click here to receive daily updates