MasterKaos
Programmer
Ok i'm trying to create a customized text input and submit button on the front page of my site, to access the search function. I have been able to set the background colour and the border colour and border style without any trouble.
But my problem is getting the size right. I want the input and the submit button to be the exact same height and width, so they align correctly when one is placed above the other.
So i used the same class (above) for both the text input and the submit button. Now in IE5, Netscape 6.2 and Opera 7.2 they both display as identical height and width.
However in IE6 and FireFox 0.8 the text input is displayed about 2 pixels wider and taller than the submit button.
Why is this so? They are both the same class, and both have the same width and height.
Is there anyway i can use CSS to display the text input and submit button as the same width and height across the above mentioned browsers? I don't mind if the sizes vary slightly between browsers but they need to be consistent! I mean if the text input is larger than the submit button should be larger too!
----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
But my problem is getting the size right. I want the input and the submit button to be the exact same height and width, so they align correctly when one is placed above the other.
Code:
input.search{
font-size : 10px;
line-height : 10px;
height : 16px;
width: 84px;
background-color :#333366;
color : White;
border-width : 1px;
border : 1px solid;
border-color : White White White White;
}
So i used the same class (above) for both the text input and the submit button. Now in IE5, Netscape 6.2 and Opera 7.2 they both display as identical height and width.
However in IE6 and FireFox 0.8 the text input is displayed about 2 pixels wider and taller than the submit button.
Why is this so? They are both the same class, and both have the same width and height.
Is there anyway i can use CSS to display the text input and submit button as the same width and height across the above mentioned browsers? I don't mind if the sizes vary slightly between browsers but they need to be consistent! I mean if the text input is larger than the submit button should be larger too!
----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.