html

What characters are allowed in DOM IDs?

Underscores seem fine. What about dashes? Other special characters? ...

stripping a text from a form

Here is the input form code <tr valign="top"> <td align="right" class="innertablestyle"><font class="normal"><strong>Homepage</strong></font></td> <td>&nbsp;</td> <td><font class='normal'>http:// <input name="website" type="text" id="website" value="<?php echo $website; ?>"> &nbsp; </font><font class="normal">&nbsp; </font></td> ...

Css: cannot change size of <li>

Hi, I asked a friend to help me with web site and I have to finish it by myself. I've got little screenshot boxes and I want to change their size, but I do not succeed. Those boxes are used for choosing a screenshot to show. I've got a Firefox addon that shows me the size of the screenshot box. And it's always constant - 25x25 pixels. I...

Equal height columns w/ footer using CSS?

I am creating a business application that has a variable width sidebar and content area, along with a footer. For the life of me, I can't figure out how to make the footer ALWAYS display correctly using CSS, regardless of sidebar height. Here's an illustration of the issue: The footer and sidebar is fine if the content area is large...

Centering a heading <h1>

Hi Everyone Quick question, I have a DIV with a H1 inside it, now , I wish to Center my H1 inside this DIV... I try the following which does not work: set the H1: display:inline margin-left: auto ; margin-right: auto ; But I try this and it does work, can someone explain why the above DOESN'T work? set the H1: width: 35%; margi...

Is it possible to handle up/down key in HTML input field?

I am building a autocomplete feature for input text field. Currently I could use mouse click to choose the selection, I'd like to add keyboard control to allow autocomplete control. I monitored the keycode in onkeyup event, it appears for up/down key, the key codes are both 0. I am wondering whether there is any better way to do so. T...

HTML <input> size attribute not working?

I have the following element which specifies the size="15". However the rendered element, which has the size attribute, has a width that fits 25 characters and could fit 30 or so if maxlength was greater? Maxlength does limit the # of characters. <input id="txtSearch" name="txtSearch" type="text" maxlength="25" size="15" /> ...

html button not inheriting font-size (css)

I'm sure it is meant to be like this (e.g. not a bug or browser flaw), but is it correct that the button text does not use the font size declared higher up? <div style="font-size:10px;"> This text would be 10px sized <div> This text would be 10px sized </div> <input type="button" value="OK" /> </div> ...

internal mechnism of <bgsound> tag in html

what is the internal mechanism of tag html? ...

Are nested span tags OK in XHTML?

Will this validate in XHTML? <span>hello<span>world</span></span> ...

How to pass textbox values in <a href>

Name <input type="text" id="Name" name="Name"> Password<input type="password" id="Password" name="Password"> <a href="file:///home/naveen/Desktop/imp/nav2.html?Name="+document.MyForm.getElementById('Name').value;"Password"+document.MyForm.getElementById('Password').value;"> Please help ...

How come that Chrome doesn't render certain sites

I know that this page is pretty messed up code wise (www.tracker.it). But I was wondering the reason why Chrome (and safari btw) completely refuses to render this page (works 100% ie and firefox). Is it something about nested table or about that javascript poup? Thank you very much David ...

Make input invisible through css?

I have a form where depending on the website's brand one of two input fields should be visible at one given spot. I figured I just put both input fields in the same container and then through my stylesheet set one of them to display:none; This does hide the field, but it still makes it take up space. I also tried setting the height and ...

HTML image storing???

I had created one HTML page for my experiance. In this i had use the background image like c:\documents ans settings.....\leftline.png. But i don't know how to add images from a common directory. (like background-image= ('./images/leftline.png'). how i can do like this? ...

Jquery: how to register an event on all pages?

I want to run the following jquery code on every page in my website. $(document).ready(function(){ $("#more").click(function(){ $("#morediv").slideToggle("slow"); return false; }); }); In all my pages I have the more and morediv elements defined, for every page I have different js file and adding this code in ev...

Why is element <u> considered outdated according to VS2008?

Why do I get the following message in Visual Studio when I use the <u> element? "Element 'u' is considered outdated. A newer construct is recommended" Has it aged? ...

Write html code inside asp.net (C#) (.cs) page

I would like to add some paragraphs or new lines or words dynamically but I want to make gaps between every part and the other. How is it possible to do that in the c# code page? ...

Why have my images got extra spacing?

Can anyone tell me what is causing the space below the images? There seems to be extra padding in the divs with the red border relating to the images. I cant find this spacing in firebug at all. Baffled. ...

What's the difference between IFrame and Frame?

Hello Looking at options of embedding the 3D Secure page inside my own Order form, I came across the following: "Some commerce sites will devote the full browser page to the authentication rather than using a frame (not necessarily an iFrame, which is a less secure object anyway)." from http://en.wikipedia.org/wiki/3-D_Secure Can som...

What is a polyglot document?

In this answer to this question, Lachlan-Hunt writes the following: With HTML5, you can choose to use HTML-only syntax, meaning that it is only compatible with being served and processed as text/html it is not well-formed XML. Or use XHTML-only syntax, meaning that is is well-formed XML, but uses XML features that are not compatible ...