Help with HTML tables, centering and erasing a little space between rows

Hi,

I have a problem with a table. I want to remove the blue space between the 1st and 2nd row (the 1st row image has not any blue part), what can I do?

Also, I tried to center horizontal and vertical the page using a table, but i can only center it horizontally, any idea?

In attached files I attach the code and a capture of the problem.

Thank you.
<!-- I try to center the page with the first table, but it don't vertical center the page... -->
<table width="100%" height="100%"><tr><td valign="middle" align="center">

<table width="284" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="bottom"><img src="images/logo_n.png" border="0" />
    <!-- I want to delete the space between this row and the down row -->
    </td></tr>
  <tr>
    <td bgcolor="#FFFFFF"><p>scdsd</p>
      <p>sd</p>
      <p>a</p>
      <p>fdsogodfsg</p></td>
  </tr>
  <tr>
    <td><img src="images/tabs.png" /></td>
  </tr>
</table>
</td></tr></table>

Open in new window

problems.png
nmartiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ronan1979Commented:
what space blue ?
i tried under IE6.0 and FF3.5.3 and the table in center/middle of the page. (i add border=1 for the 2nd table)


Note: for HTML layout it is recommended to never use table.
untitled.PNG
0
ronan1979Commented:
could you add an URL/sandbox to let us check your code ?
0
nmartiAuthor Commented:
the blue space (white without the background) between the 1st and the 2nd row.

I don't see this centered in safari 4 for mac :/
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

nmartiAuthor Commented:
0
ronan1979Commented:
table less code working under FF, IE and safari from http://murphy.cz/victoria-s-vertical-centering/

i will check your code
<html>
   <head>
      <title>Victoria's Vertical Centering - Test Page</title>
      <style type="text/css">
         html, body   { background-color: red; height: 100%; margin: 0; padding: 0;
                        color: white; text-align: center; }
         div#centered { border: 0; background-color: white; height: 50%; width: 50%;
                        position: absolute; left: 25%; top: 25%; color: black; }
      </style>
   </head>
   <body>
      <div id="centered">
         Vertically centered div
            (<a href="http://murphy.cz/victoria-s-vertical-centering/" title="Victoria's Vertical Centering">see comments</a>).
      </div>
   </body>
</html>

Open in new window

0
ronan1979Commented:
the will remove the blue space - if you dont need a text
<style>
.remove-white-space {font-size:1px;}
</style>

...

<td valign="bottom"><img src="images/logo_n.png" border="0"  class="remove-white-space"/>

0
ronan1979Commented:
other solution
<img  .... align="top" />
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ronan1979Commented:
or align="ABSBOTTOM"
more about align image, see http://www.htmlcodetutorial.com/images/_IMG_ALIGN.html
0
nmartiAuthor Commented:
The second option to remove the blue space works well! Thank you!

Now I'll try to center it with a DIV
0
nmartiAuthor Commented:
mh... the DIV centering works, but only vertically, i used also a table to center all horizontally, so the problem is solved too.

ronan1979: thank you very much for helping me in this issue!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.