PDA

View Full Version : Problem of alignement


Yodo
10-03-2002, 07:26 AM
Hello all (sorry i'm french, so if you don't understand all, it's normal :D )

So, here is the code for the attachement (the picture) :

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/postbit/basgm.gif" width="175" height="32" border="0" nowrap></td>

<td background="images/postbit/bm.gif" width="100%" valign="middle" align="center" height="32">
<smallfont><a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="images/edit.gif" border="0" alt="Editer/Effacer le Message"></a><a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="images/quote.gif" border="0" alt="Citer le message dans la r&eacute;ponse"></a><a href="****script: window.open('postings.php?s=$session[sessionhash]&action=nuke&postid=$post[postid]'); void('');"><img src="images/nuked1.gif" alt="Censurer le post (option administrateur et mod?rateur !!)" border="0"></a></smallfont>
</td>

<td><img src="images/postbit/basdm.gif" width="175" height="32" border="0" nowrap></td>
</tr>
</table>


On the picture, the three buttons (they are the same : don't care of this :p ) are not aligned in the middle. There is one pixel between the button and the white bar. When I put valign="top", the buttons go on top but when I put valign="bottom", there are 3 of 4 pixels between the thin gray line (at the bottom) and the bottom of the buttons.

I don't understand why, my buttoms have for dimensions : 64x12.

If I make buttons with 64 x 32 (32 is the height of my background as you can see in the code), that makes a bug. Or I see in your postbit that don't make a bug.

If you need more info, or if i have to be clearer, no problems :rolleyes:

Thanks for any help.

Tony G
10-03-2002, 09:06 AM
Try valign="center"

Yodo
10-03-2002, 11:25 AM
I try it but it gives the same result, thanks for your answer.

Tony G
10-03-2002, 01:00 PM
I'm bummed then, is there any background to your image on the navbar?

Yodo
10-03-2002, 01:35 PM
Why the navbar? [huh] , sorry but i don't understand your question :p.

Tony G
10-03-2002, 01:58 PM
Sorry, attachment or whatever the template screenshotted is. Sorry.

Yodo
10-04-2002, 07:06 PM
I don't understand what you say but I find, it's good, I put a table just before <smallfont>

++