1, input and Picture button alignment
<form method= "POST" action= "" >
<input type= "text" name= "title" onfocus= "this.value=" "value=" keyword >
<input type=image src= "#" align= "Absmiddle" >
</form>
You can also add in the style of the button: Vertical-align:middle;
2, input and text alignment
Defines the style of input, input {Vertical-align:middle}, so that text is aligned with the input box.
3, and so on, Selete box, textarea, button
Can be defined in the global CSS:
Input,select{vertical-align:middle;}
HTML, the most concise way to achieve a picture and text alignment 2011-09-20 09:06:34| Category: HTML | Tags: picture and text alignment method picture and text alignment | font size large small and medium subscription.
A align is completely buttoned up, which is the most appropriate implementation in the HTML language.
<p> image in the text </p>, to achieve the text and the bottom of the picture alignment, is also the default way.
<p> image in the text </p>, to implement text and picture bottom alignment.
<p> image in text </p>, to achieve the bottom of text and picture alignment.