css input middle
by You
Now
|
Select your language
search & comment
|
||||||||||||||||||||||||||||||||||||
|
Slog about css input middle
Wait
Add your comment
Thank you for helping us improve the quality of this site.
|
||||||||||||||||||||||||||||||||||||
Additionally, what you posted as "Java" is not JavaScript. It's HTML, and it's non-W3C compliant HTML at that. If you want to be taken seriously as a Web developer, you need to make cleaner code. You may have found this code on the Web; if so, stop getting code from there, it's crap.
You can leverage the Google Languages API yourself, without the need for this form, by visiting the API's documentation page:
http://code.google.com/apis/ajaxlanguage...
Finally, you should never use reserved words, such as JavaScript, as an ID attribute for an HTML element.
You are unclear on the nature of where you want this form positioned. I'll assume you want the form to take an absolute position from the top and left margins of the page.
Generally speaking, absolute positioning of an HTML element via CSS is straightforward. First, wrap the element to be positioned in a div with a unique id, as you attempted to do:
<div id="fixmyspot">
<!-- code to be positioned goes here -->
</div>
Next, add this declaration to your stylesheet:
#fixmyspot {
position: absolute;
top: 100px;
left: 100px;
}
This will fix the position of the items in the div 100 pixels from the top of the page, and 100 pixels from the left border. Adjust the values as necessary.