Xhtml Input Field Problem

free web hosting
Open Discussion > CONTRIBUTE > The Internet > Web Design

Xhtml Input Field Problem

Pusher
Hi,
i use XHTML Strict and CSS, making one site. Here's some CSS code :
CODE
.LoginFromField {
margin : 9px 3px 0 3px;
width : 120px;
height : 18px;
float : left;
color : #666;
background-image : url(./FormFieldDefaultBg.gif);
background-repeat : repeat;
font-family : Verdana, Helvetica, sans-serif;
font-size : 12px;
border : 1px solid #aaa;
}


XHTML code:

CODE
<?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>...TITLE HERE...</title>
<style type="text/css" media="all">@import "./style.css";</style>
</head>
<body>
<div id="PrimalDiv">
<div id="LeftCell">
<div id="NavigationMenuDiv">
...NAV LINKS HERE...
</div>
</div>
<div id="RightCell">
<div id="ContentsDiv">
...TEXT...TEXT...TEXT...TEXT....
<br />
<br />
<div id="SmallFormDiv">
<form action="login.php" method="post" id="LoginForm">
<p><br /><input type="text" name="Name" id="Name" value="User" class="LoginFromField" title="" /> <input type="password" name="Password" id="Password" value="Password" class="LoginFromField" title="" /> <input type="submit" value="Enter" class="LoginFromButton" title="" /></p>
</form>
</div>
</div>
</div>
</div>
</body>
</html>


With IE and Opera everything is fine, but FF makes the height of input field's, 18px(as defined in CSS code) + 2px(top and bottom border). When i delete the XHTML declaration, FF shows it like IE does. Do you have any suggestions, how can i fix that?

Sorry if i have mistakes, but english isn't my native language, i am still a learner. smile.gif

 

 

 


Reply

jlhaslip
QUOTE
<?xml version="1.0" encoding="windows-1251"?>


Having the xml declaration in the first line of the page will put IE into Quirks mode.

I'd suggest removing it and see what happens. You might need to adjust the heights a little, or margins/padding, etc, but get all the Browsers into Standards Mode will/should make it easier to control.

Quirks Mode is a crap shoot. You never know what you will be able to control or how.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. xhtml input - 6.77 hr back. (1)
  2. xhtml input width problem - 34.39 hr back. (1)
  3. ie problem enter on input field - 38.77 hr back. (1)
  4. ie6 enter text input field problem - 39.45 hr back. (1)
  5. input field width ie6 float - 58.08 hr back. (1)
  6. input mode xhtml - 68.67 hr back. (2)
  7. xhtml input - 75.39 hr back. (1)
  8. xhtml input value - 86.41 hr back. (1)
  9. input text width height ie6 problem - 104.46 hr back. (1)
  10. input 100% ie6 problem - 108.11 hr back. (1)
  11. ie input field not working - 108.91 hr back. (1)
  12. xhtml input image - 119.17 hr back. (1)
  13. xhtml input id name - 124.69 hr back. (1)
  14. how to control the height and width of html input fields - 127.53 hr back. (1)
Similar Topics

Keywords : xhtml, input, field, problem

  1. How Xhtml Is Different From Html?
    (2)
  2. Standard Compliant Cms
    XHTML, CSS, etc (2)
    Which CMS are standar compliant? I know it also depends on the template, but not totally. I know
    wordpress is, and that joomla is not right now. So which are actually compliant (i would like to
    know particularly about mambo, php-nuke and xoops, but if theres another which is also as good as
    those...)?....
  3. Need A Bit Of Input
    (9)
    I just got this software that is supposed to make it easier to stream music from my site without
    using the mp3 format and encrypt the actual song file. I know it works for me, but I need someone to
    visit the page I have for it and tell me if they are able to hear the song that I have up. If you
    can hear what the song is, I would be real appreciative if you would let me know. I've been
    looking for a good program that would do this for quite some time now, that way I don't have to
    worry about thieft. Here's the page you can find it on: Song Please, let ....

    1. Looking for xhtml, input, field, problem

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for xhtml, input, field, problem

*MORE FROM TRAP17.COM*
advertisement



Xhtml Input Field Problem



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE