there is a gap between my table and the top edge of the page, how can i put my table all the way up to the edge?
somebody help me
Remove the gap, need help in HTML table
Remove the gap, need help in HTML table
|
Feb 22 2006, 12:36 AM, updated 19y ago
Show posts by this member only | Post
#1
|
Junior Member
119 posts Joined: Jan 2003 |
there is a gap between my table and the top edge of the page, how can i put my table all the way up to the edge?
somebody help me |
|
|
|
Feb 22 2006, 12:49 AM
Show posts by this member only | Post
#2
|
Junior Member
50 posts Joined: Dec 2005 From: KL |
try this, i am using css for position, simple but not recomened
CODE <html> <div style="position:absolute; top:0px; left:0px"> <table bgcolor="yellow"> <tr><td>Hello World</td></tr> </table> </div> <html> btw, why you don't want the gap? |
|
Feb 22 2006, 01:13 AM
Show posts by this member only | Post
#3
|
Junior Member
119 posts Joined: Jan 2003 |
QUOTE(lmcckl @ Feb 22 2006, 12:49 AM) try this, i am using css for position, simple but not recomened it look more neat to align all the way to top, but one thing when i use position : absolute, my table no longer align in the center of the page, and the table become smaller since i use 65% for width in table....CODE <html> <div style="position:absolute; top:0px; left:0px"> <table bgcolor="yellow"> <tr><td>Hello World</td></tr> </table> </div> <html> btw, why you don't want the gap? |
|
Feb 22 2006, 01:17 AM
Show posts by this member only | Post
#4
|
Elite
4,738 posts Joined: Jan 2003 |
use this
CODE body { margin-top: 0px; } |
|
Feb 22 2006, 01:34 AM
Show posts by this member only | Post
#5
|
Junior Member
119 posts Joined: Jan 2003 |
thanks silverhawk.... problem solved
|
Change to: | 0.0131sec
0.47
5 queries
GZIP Disabled
Time is now: 29th March 2024 - 02:09 PM |