Log in

View Full Version : Align a Button



tomyknoker
09-21-2006, 02:49 AM
Hi All,

In the attached file you can see I can't align the button to the text field... Any ideas? I want them to be horizontally aligned... When I test it on different browsers the button sits slighlty below the box...

jscheuer1
09-21-2006, 09:20 AM
Why do you need 2.1k zipped to show a button?

codeexploiter
09-21-2006, 10:14 AM
I've changed a your HTML source code a bit, my changes are in red color and are as follows:



<input name="textfield22" type="text" size="12" style="height:15px;" align="top" />
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('go_but1','','images/go_but_1.gif',1)">
<img src="images/go_but_0.gif" alt="GO" name="go_but1" width="23" height="19" border="0" align="top" id="go_but1" /></a>

I've viewed the page in IE, FF, NN & Opera and looks ok. I've attached the page on which i've made the changes here.

jscheuer1
09-21-2006, 11:05 AM
I've changed a your HTML source code a bit, my changes are in red color and are as follows:



<input name="textfield22" type="text" size="12" style="height:15px;" align="top" />
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('go_but1','','images/go_but_1.gif',1)">
<img src="images/go_but_0.gif" alt="GO" name="go_but1" width="23" height="19" border="0" align="top" id="go_but1" /></a>


You cannot use the colors in HTML blocks in the editor. Use code blocks:


<input name="textfield22" type="text" size="12" style="height:15px;" align="top" />
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('go_but1','','images/go_but_1.gif',1)">
<img src="images/go_but_0.gif" alt="GO" name="go_but1" width="23" height="19" border="0" align="top" id="go_but1" /></a>

codeexploiter
09-21-2006, 11:08 AM
Thanks John for that info, I've changed my post now

:)