Browsing Questions About html (1)



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

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 positio…

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 in an 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 fie…

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 pa…

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 av…

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…

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 acce…

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 H…

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 …

<XMP> Tag

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

Next Page >