Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > why this code align me input field and img into the top and bottom

Reply
Thread Tools

why this code align me input field and img into the top and bottom

 
 
MZ
Guest
Posts: n/a
 
      03-15-2008
Hello!

I don`t know why in one row input field and img are aligned into the different
position. Images a have aligned into the top and input field into the bottom of
the row. I would like to have both images and input fields and also text
("Text") aligned on middle and to make it on the same vertical line.

My view looks liek this (approximately):
<image>
<input field>

but I want to have such view:

<input field> <image>

Can you help me? Can you implement some changes into my below code

I have such code:

<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td
style="background-image:url({$skinDir}images/pas_logow_lew_gor_v1.jpg);width:3px;height:3px;"></td>
<td
style="background-image:url({$skinDir}images/pas_logow_srodek_v1.jpg);height:3px;"></td>
<td
style="background-image:url({$skinDir}images/pas_logow_pra_gor_v1.jpg);width:3px;height:3px;"></td>
</tr>
<tr>
<td
style="width:3px;height:25px;background-image:url({$skinDir}images/pas_logow_tlo_v1.jpg);"></td>
<td style="background-image:url({$skinDir}images/pas_logow_tlo_v1.jpg);"
>Text<input type="text" name="zapisz_sie_txt" value="" ><a href="#"

onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('pasek_adresu_image_1',' ','{$skinDir}images/pas_logow_butt_zapis_dw_v1.jpg',1)"
><img src="{$skinDir}images/pas_logow_butt_zapis_v1.jpg"

name="pasek_adresu_image_1" width="60" height="25" border="0"></a><a href="#"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('pasek_adresu_image_2',' ','{$skinDir}images/pas_logow_butt_szuk_dw_v1.jpg',1)"
class="href_pasek_adresu"><img src="{$skinDir}images/pas_logow_butt_szuk_v1.jpg"
name="pasek_adresu_image_2" width="83" height="25" border="0" ></a><a href="#"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('pasek_adresu_image_3',' ','{$skinDir}images/pas_logow_butt_zal_dw_v1.jpg',1)"
class="href_pasek_adresu"><img src="{$skinDir}images/pas_logow_butt_zal_v1.jpg"
name="pasek_adresu_image_3" width="60" height="25" border="0" ></a><a href="#"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('pasek_adresu_image_4',' ','{$skinDir}images/pas_logow_butt_rejest_dw_v1.jpg',1)"
class="href_pasek_adresu"><img
src="{$skinDir}images/pas_logow_butt_rejest_v1.jpg" name="pasek_adresu_image_4"
width="60" height="25" border="0" ></a></td>
<td
style="width:3px;height:25px;background-image:url({$skinDir}images/pas_logow_tlo_v1.jpg);"></td>
</tr>
<tr>
<td style="width:3px;height:3px;"><img
src="{$skinDir}images/pas_logow_lew_dol_v1.jpg" width="3px" height="3px"
border="0"></td>
<td
style="background-image:url({$skinDir}images/pas_logow_tlo_v1.jpg);"></td>
<td style="width:3px;height:3px;"><img
src="{$skinDir}images/pas_logow_pra_dol_v1.jpg" width="3px" height="3px"
border="0"></td>
</tr>
</table>


Thank you in advance
Marcin from Poland

 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      03-15-2008
Scripsit MZ:

> I don`t know why in one row input field and img are aligned into the
> different position.


Neither do I, and I don't even see the problem, unlike you.

Post the URL and specify which row you are thinking about.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default top and bottom margin disappear in IE7: why GTalbot HTML 0 11-10-2007 04:44 AM
How to vertical align input field text with its label Yohan N. Leder HTML 1 06-11-2007 07:27 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
How do we know the memory arrangement using in microprocessors? Top-Bottom or Bottom-Top? Cuthbert C Programming 8 09-13-2006 12:09 PM
How To pop content into bottom IFrame from top IFrame nc Javascript 0 08-10-2004 01:19 PM



Advertisments