473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

aligning form elements with absolute positioning

Hi group,

I have a problem with a small project i'm doing at the moment. Here's
my code below.

<table width="668" height="63" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td height="63" align="right" valign="middle"
background="/xxxxx/xxx/plain.gif" style="height:63px; width:668px;
background-repeat:no-repeat; text-align: right; padding-top:20px;
padding-right:5px;">
<form method="post" action="/search/index.cgi">
<input type="text" size="12" name="terms">
<input name="image" type="image"
onMouseOver="this.src='/xxxxx/xxx/bar_04-over.gif'"
onMouseOut="this.src='/xxxxx/xxx/bar_04.gif'"
src="/xxxxx/xxx/bar_04.gif" alt="Search" width="44" height="18"
border="0">
<input type="hidden" name="help" value="whole_site">
<input type="hidden" name="find" value="english">
</form></td>
</tr>
</table>

The proble is that the textfeild's and image's (search button) base
aren't aligned, flat on the bottom. Their tops are both level but i
can see to be able to position the image in the center of the search
field, side by side. I can't use position: absolute etc because this
need to look relatively similar in IE, Mozilla and Netscape 4.7 and PC
and Mac and thats not compatible with some versions.

Hope u guys can shed some light

Cheers

T
Jul 20 '05 #1
1 3828
junior wrote:

I have a problem with a small project i'm doing at the moment. Here's
my code below.
[code snipped]
Please provide a url instead of code.
The proble is that the textfeild's and image's (search button) base
aren't aligned, flat on the bottom. Their tops are both level but i


If you want more control of layout, I'd suggest css. It is far more
flexible than deprecated html presentation stuff. And your site will
be better for it, and not only in terms of presentation.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Heath | last post by:
I also posted this as a reply to another string, I have no idea why? Too much time infront of the pretty blinking screen I suppose. A curious thing is happening, when I use display:inline; and...
4
by: Marek Mänd | last post by:
xHTML 1.0 strict and valid css. But though only IE shows up like I like it. Not Opera7.50PR1, not Mozilla1.6. Mozilla and Opera doesnt take interest in absolute positioning herein this...
28
by: jonjon | last post by:
Hi, I want to be able to define the right property of my absolute positionned elements... for example if a button is 50px left and 150px right, it will resize when the page is resized. This is...
5
by: Tony | last post by:
I seem to be missing something in my understanding. If I leave off absolute positioning, shouldn't nested DIV/SPAN be displayed inside the parent, and ones outside that display separately? Here...
5
by: Raj | last post by:
Hi, I have a ASP.NET project which is working fine and I need to align controls in a .aspx page. The webform( .aspx page) has variety of controls (labels, textboxes, radio buttons etc) and when...
12
by: whytwelve13 | last post by:
Is there a way to find all elements that are "under" some point on the screen in JavaScript? That is, given (x, y) find all elements of size (w1, h1) whose absolute position compared to the...
6
by: Mark | last post by:
hi, i'm trying to position something in the top right corner of a container, but i can't seem to figure out how to get it working. here's the html <div class='thumb'><a href='image.jpg'><img...
4
by: john | last post by:
Hi to All, I am new to html authoring, so sorry if my terminology is not correct or exact. I would like to position a footer div to the bottom of the browser window. As I research in the web...
2
by: agbee1 | last post by:
Hello: I've finally made the effort to ween myself from overly using tables and use CSS for my positioning. However, I am having a problem with my navigational menu properly aligning in Firefox,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.