JohnCP Posted December 15, 2005 Share Posted December 15, 2005 Hello, I am a newbie on this site, hope to get a lot of great advice form all the gurus out there : Anyways, can anyone take a look at this code and tell me how to get rid of the gaps between the tables? Thanks in advance and again, great to be here!JohnCP <html><head><title> Page title</title></head><body><table width="75%" align="center" border="0"><tr><td width="100%" colspan="3" bgcolor="black"><font color = "white"> This is the heading or the top Row <br><br></td></tr><tr><td width="20%" bgcolor = "black"><font color = "white"> The left Column<br><br><br><br><br></td><td width="60%"> The center Column</td><td width="20%"> The right Column </td></tr></table> Link to comment Share on other sites More sharing options...
Selacius Posted December 15, 2005 Share Posted December 15, 2005 Change your <table blah blah> to this:<table width="75%" align="center" border="0" cellspacing="0"> Link to comment Share on other sites More sharing options...
lugos Posted December 15, 2005 Share Posted December 15, 2005 I think you can simply add a style attribute in your table tag. Something like this: <table width="75%" align="center" border="0" style="border-collapse: collapse;">You can also use the cellpadding and cellspacing attributes. Something like this:<table width="75%" align="center" border="0" cellspacing="0">Hope this helps.lugos Link to comment Share on other sites More sharing options...
aspnetguy Posted December 15, 2005 Share Posted December 15, 2005 you only have 1 table. But I think I know what you mean...the space between the Columns???if you do this <table cellspacing="0".... That should remove the vertical space between the Columns. Link to comment Share on other sites More sharing options...
aspnetguy Posted December 15, 2005 Share Posted December 15, 2005 sorry for saying the same as the post above...it wasn't there when I started writing. Link to comment Share on other sites More sharing options...
F-Man Posted December 15, 2005 Share Posted December 15, 2005 CSS -> border-collapse: collapse; Link to comment Share on other sites More sharing options...
JohnCP Posted December 15, 2005 Author Share Posted December 15, 2005 wow, that was fast! thank you all so much, it worked, thanks a lot!JP Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now