CSS - <input> Must Be Closed </input> ??
I get this error from XML-CSS validation.
The element type "input" must be terminated by the matching end-tag "</input>". I'd like to know where it goes. It is this form: <form action="send_survey_results.php" method="POST"> Name: <input type="text" name="user" SIZE="30"><br> e-Mail: <input type="text" name="email" size="30"><br> Interests:<br> <input type="checkbox" name="intere<input type="submit" value="Register"> ------------additional boxes here------------------ <input type="reset" value="Clear Form"> </form> </div>sts[]" value="clothes">Clothes Thank you, Ed Similar TutorialsI am using this style to modify my text fields. My problem is this code also effects checkbox's and I don't want it to. Could this code be altered to effect only text fields? Thanks in advance for any help... input {border: 1px solid #555555; font-family: Verdana, arial, helvetica, sans-serif; font-size: 11px; font-weight: bold; background: #eeeeee; color: 000000;} On this page: http://www. trulyorganicfoods. com/cashew-cacao-cluster-275g.php I have an input box that is a bit big. I used firebig to look at the css but I cannot find the size declaration for it. Any ideas? I use the following code on my page: INPUT{ background-color: gray; } It makes all of my text boxes gray in the background. Unfortunately it also makes all checkboxes gray (since they are also part of the INPUT family), which I don't want I tried this code to override the gray color, but it didn't do anything: INPUT CHECKBOX{ background-color: white; } Is there a way to exclude checkboxes from inheriting styles from INPUT? I do understand that I can create a custom CSS and use class="checkbox" in the checkbox HTML, but it will be too much work since I have hundreds of checkboxes across many pages. Filling them with class="checkbox" would be a pain. Any ideas? Thanks. Hi all, I'm having a problem trying to set some CSS attributes for an input button. The input button is used several times in the site and I want to set it as an image. I tried using background-image:url(../images/button.jpg), but this doesn't work properly. Is there a solution. Many Thanks, Jonathan. I'm not a programmer by nature, but am picking things up as I go along. I'm working on some forms to make my job easier. Hopefully what I will provide below is enough info to provide a solution. If not, let me know what else you might need. I understand that this section of CSS manipulates the size and other attributes of the textarea input box: fieldset div input,fieldset div textarea { width:150px; border-top:1px solid #555; border-left:1px solid #555; border-bottom:1px solid #ccc; border-right:1px solid #ccc; padding:1px;color:#333; } What I am looking for is what do I need to add to my CSS and consequent HTML markup to have other textarea input boxes with different attributes? What I really need is to have 4 small boxes within the same div on the same row. Thanks in advance!! Hello, I defined the width of a form input as follows: fieldset input {width: 24em;} But then the checkbox inputs also get a width. So I uses the following: <input name="IsPublished" id="IsPublished" type="checkbox" class="test" value="Yes" />Check to publish fieldset input.test {width: auto;} But I wasn't able to reset the width. Any idea why? I also tried with: fieldset input.test {width: 10px;} It didn't work either. Thanks, Miguel Thanks for taking the time to read my question. Here is my CSS for the buttons on my forms. Code: input.buttons { color: #5C5C5C; border-top-color: #c0c0c0; border-left-color: #c0c0c0; border-right-color: #989898; border-bottom-color: #989898; border-width: 4px; font-size: 14px; font-family: Veranda, Arial; background-image:url(images/ButtonBackground.jpg); height: 30px; width: 60px; cursor: hand; cursor: pointer; } Is it possible to have :hover on this as well, like you can have on <a> ? a:link{} a:visited{} a:hover{} a:active{} Thanks, Brad is there a way to align the text inside a <input type="text" name="fff" > to the center? thanks for the help in advance I'm designing a web site and I have everything look identical in IE 5.01-7, Firefox 1.5 and Opera 9 (I still have to check mac compatibility) - though one thing that isn't the same on all is the input buttons. In IE, they're relatively the same but in Firefox it is completely off. I've attached an image to show what they all look like. I've tried a few things but I can't manage to get the firefox button to align correctly with the text input to the left of it. Here's my CSS for the inputs: Code: input { background: #fff; border: 1px solid #000; height: 23px; } any help is appreciated, thank you! I know that the input:hover does not work in IE, but is there some sort of workaround that does not use javascript? Any help is greatly appreciated. input fields in tabs not appearing in IE7 though it works fine with IE8 and Firefox3 http://www.refinethetaste.com/html/cp/default.asp?Section=orders&Process=AddOrder Forgive me if this is a very obvious thing, but does such a thing exisit like: input:focused (based upon a:hover, a:visited etc.) I want to have an effect like you have an Mac OS where you get a coloured ring round the currently selected box. Using google is useless because I don't know what this feature of CSS is called! Thanks for your help, Tom I have an absolutely positioned login form that I am having some troubles with... On IE7 and the latest version of Fx it looks great. In some older versions of Fx (1.04 is what I have to test with...), the input size is off compared to the width of the div... And in IE6, the email input is actually wider than the password input (which is really weird since the inputs are set to a size of 25) Is there a better way to do this... What I want is to have the input fields the same width, with the submit button aligned along the right edge and to have the labels of the input fields aligned left. Or, if I am doing it the right way, what's the deal with IE6? I'm not too worried about the older Fx versions since it doesn't look all that bad, but on some computers with IE6, the box actually starts to push too far to the right for some reason... I want to make an input button display on the bottom. Is there a way? This doesn't work: input { bottom:0px; } Any ideas other than wrapping it in a <div>? Hi I'm trying to get the labels of my form to appear above their input boxes and for the input boxes themselves to be side by side (basically a horizontal login form) I've used the label tag in my form after doing some research which looks like: Code: <form> <label for="email">Email</label> <br /> <input type="text" name="email" /> <label for="password">Password</label> <br /> <input type="text" name="password" /> </form> In my CSS I have a label property defined as: Code: label { display:inline-block; } But the outcome is this: Could anyone please shed some light on my problem? Thank you In my first attempt at a heavily CSS-based layout, I've run into this frustrating problem. I currently cannot get IE to remove 2px around my search box and line up correctly. Example FF: Everything lines up perfectly. Example IE: You can see that the box around the search input is 2px lower than the box to the left. Here are the applicable classes: css Code: Original - css Code /* class for the div containing the search input */ .search { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; border-bottom:1px solid black; vertical-align:middle; background-color:#FFFADE; text-align:center; padding-top:3px; margin-bottom:5px; height:20px; } /* class for the input fields */ .inputbox { font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 10px; color : #000000; background-color : white; border : 1px solid black; } /* for the containing table td */ #right_boxes { font-family:arial,helvetica,sans-serif; font-weight:normal; font-size:12px; width:145px; border-left:1px solid black; padding:20px; border-top:4px solid black; }
The HTML for this section: html4strict Code: Original - html4strict Code <td id="right_boxes" valign="top"> <form action="index.php" method="post"> <div align="left" class="search"> <input alt="search" class="inputbox" type="text" name="searchword" size="20" value="search..." onblur="if(ths.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" /> </div> <input type="hidden" name="option" value="search" /> </form> <td id="right_boxes" valign="top"> I have tried everything that I can think of. Any suggestions or answers would be greatly appreciated. TIA, Conor When using Safari, whenever you click inside an input field, a highlight goes around the field (focus ring). Is there anyway to use CSS to remove the focus ring altogether? I am using the following code to create a custom input field: Code: input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus { outline: 0 none; } This essentially removes the border from the input field however this does not work in Safari on a Mac (works fine in Safari on Windows). Any one know how to fix this? Hi I am currently having problems changing the size (or width) of INPUT fields within a form when they have a class assigned to them. If I remove the class that is assigned then the size attribute works fine. Do I need to specify the size of the INPUT field within the CSS file that holds the class? And if so how do I do it? Thanks in advance for any help. |