English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Trying to position a table with background image with absolute (so no spacing above the table on the page) but centered in the page at the same time. I can center using "align="center" and position using style="position: absolute" but I can't get the both of them at the same time... anyone have any suggestions?

2006-07-05 09:36:58 · 3 answers · asked by Hugh P 2 in Computers & Internet Programming & Design

3 answers

I can't think of any way to do it directly without using lots of nasty javascript, but have you tried putting the table as the first element on the page, aligning it to center, and placing the other page elements using absolute positioning?

2006-07-05 09:43:21 · answer #1 · answered by John J 6 · 1 0

If all you want is to have no spacing above the table on the page, just set the topmargin value to 0 on the body tag:

2006-07-05 09:45:30 · answer #2 · answered by Lumas 4 · 0 0

use span with absolute style and then div with center align , inner of then your table

2006-07-05 20:47:14 · answer #3 · answered by Spitrabergâ?¢ 4 · 0 0

fedest.com, questions and answers