473,804 Members | 3,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:6 3px; 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="th is.src='/xxxxx/xxx/bar_04-over.gif'"
onMouseOut="thi s.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_si te">
<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 3844
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
2583
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 background: url(); my object(<div> do you call that an object?) disappears.
4
2860
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 testcase (2800 B) at all: http://www.hot.ee/idaliiga/bronn1test.htm (MSIE screenshot http://www.hot.ee/idaliiga/bronn1test.gif)
28
7091
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 working fine in Mozilla but it isn't working in Internet Explorer :( Is this a known bug ? do you have any suggestion without using tables or OnResize event ? Best regards,
5
3970
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 is some sample code: ---------------------------------------------------------- <div id='header' style='border:red solid medium'> <p>This is the Header</p> </div>
5
12584
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 a user resizes the window, I would like these controls to center align in the page. Is there a way to do this using visual studio? I did some research and found a way using <table> <tr> <td> tags. But this is becoming cumbersome for me because...
12
20578
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 document.body starting point is (x1, y1), with constraints x1 <= x <= x1 + w1 and y1 <= y <= y1 + w1. Assume absolute positioning of all elements (if in need, I will try to generalize to other positioning types, but not now). Just to note, I am...
6
2918
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 src='photos/thumbs/ bigsmile.jpg'></a><a class='del' href='?p=gallery&del=2'>x</a></div> where 'thumb' is my container, and 'del' should be aligned to the top right. here's the css
4
29395
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 shows this could be done a containing element with "min-height: 100%;" and an absolute positioned element (div) inside, aligned to bottom ("position: absolute; bottom:0px")
2
2455
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, despite the fact that I have gotten a green light from W3. link to problem page: I didn't see a feature to attach my css code so I pasted sections of the code that dealt with layout and navigation below. Thanking you in advance,
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10578
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10321
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.