html

Why doesn't the percentage width child in absolutely positioned parent work in IE7?

I have an absolutely positioned div containing several children, one of which is a relatively positioned div. When I use a percentage-based width on the child div, it collapses to 0 width on IE7, but not on Firefox or Safari. If I use pixel width, it works. If the parent is relatively positioned, the percentage width on the child works...

How can I determine a web user's time zone?

Is there a standard way for a web server to determine what time zone offset a user is in? From an HTTP header or part of the user-agent description, perhaps? ...

Multiple submit buttons on a HTML form

Let's say you create a Wizard in an HTML form. One button goes back and one goes forward. Since the "back" button appears first in the markup, when you press Enter it will use that button to submit the form. Ex: <form> <input type="text" name="field1" /> <!-- put your cursor in this field and press Enter --> <input type="submit"...

How do I print an HTML document from a web service?

I want to print HTML from a C# web service. The Web Browser control is overkill, and does not function well in a service-environment, nor does it function well on a system with very tight security constraints. Is there any sort of free .NET library that will support the printing of a basic HTML page? Here is the code I have so far, th...

How do you test layout design across multiple browsers/OSs?

What is a good method for testing website layout designs across multiple browsers and operating systems?...

Detecting font in JavaScript

Suppose I have the following CSS rule in my HTML. body { font-family:Calibri,Trebuchet MS,Helvetica,sans-serif; } How can I detect which one of the defined fonts was used in the user's browser? Edit for people wondering why I want to do this: The font I am detecting contains glyphs not available in other fonts and when the user does n...

In HTML, how to word-break on a dash?

give a relatively simple css: <div style="width:150px;"> 12333-2333-233-23339392-332332323 </div> How do I make it so that the string stays constrained to the width of 150, and simply wraps to a newline on the hyphen? ...

How do I give my web sites an icon for iPhone?

How do I set the icon that appears on the iPhone for the web sites I create?...

Wordpress theme development offline tools

Are there any offline tools available for Wordpress theme development other than Dreamweaver extentions? I'm looking for something that renders a page in a Gecko (or related widget) window in response to my editing of the theme code so I don't need keep editing files on a web server. Any ideas? EDIT: Should have been more clear. I ha...

Html CSS Editor

I'm looking for a good editor for both HTML and CSS. I currently use the Firebug Firefox extension, and this is a great tool, but I'm looking for something I can use without necessarily firing up a browser. Ideally it would have a live preview of what I'm coding. Edit: As a student, I have access to MSDN. also, i have access to Windows,...

How do I make a checkbox toggle from clicking on the text label as well?

Checkboxes in html forms don't have implicit labels with them. Adding an explicit label (some text) next to it doesn't toggle the checkbox....

How do you disable browser Autocomplete on web form field / input tag?

How do you disable Autocomplete in the major browsers for a specific input (or form field)? ...

Options for HTML scraping?

I'm thinking of trying Beautiful Soup, a python package for HTML scraping. Are there any other HTML scraping packages I should be looking at? Python is not a requirement, I'm actually interested in hearing about other languages as well. The story so far: Python Beautiful Soup lxml Ruby Hpricot scrAPI scRUBYt! .NET Html Agility ...

HTML version choice

When developing a new web based application which version of html should you aim for? EDIT: cool I was just attempting to get a feel from others I tend to use XHTML 1.0 Strict in my own work and Transitional when others are involved in the content creation. I marked the first XHTML 1.0 Transitional post as the 'correct answer' but bel...

<XMP> Tag

Does anyone remember the XMP tag? What was it used for and why was it depreciated?...

Is a "Confirm Email" input good practice when user changes email address?

My organization has a form to allow users to update their email address with us. It's suggested that we have two input boxes for email: the second as an email confirmation. I always copy/paste my email address when faced with the confirmation. I'm assuming most of our users are not so savvy. Regardless, is this considered a good practi...

Wrapping lists into columns

I'm using ClodFusion(sic) to populate a template that includes HTML lists (<ul>'s). Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns. Is there an HTML, ColdFusion or perhaps JavaScript (I have jQuery available) way to do this easily? It's not worth some over-complicat...

Setting a div's height in HTML with CSS

Hi. I am a CSS newbie trying to layout a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background color. The content in the right side is almost always going to be smaller than that on the left. I would like the div on the right to always be tall...

HTML Comments Markup

I am currently in the process of creating my own blog and I have got to marking up the comments, but what is the best way to mark it up? The information I need to present is: Persons Name Gravatar Icon Comment Date The Comment Any idea's would be much appriciated. PS: I'm only interested in semantic html markup....

HTML comments break down

I have a page that is generated which inserts an HTML comment near the top of the page. Inside the comment is a *nix-style command. <!-- command --option value --option2 value2 --option3 --> This comment breaks the page completely. What is wrong with the comment to cause this to happen, and why is this the case?...