html

Best Way to View Generated Source of Webpage?

I'm looking for a tool that will give me the proper generated source including DOM changes made by AJAX requests for input into W3's validator. I've tried the following methods: Web Developer Toolbar - Generates invalid source according to the doc-type (e.g. it removes the self closing portion of tags). Loses the doctype portion of th...

Bug in video gallery ,jquery...Please help

I am not able to fix the bug in this file.I cant paste code here cause its too lengthy for every one to work on it.. so im posting this rapidshare link (file size is just 740kb) Whats the problem: Open the html file and click on any image, and that will be displayed in the right side div.I tried to do the same for the video but i do...

Validating radiobuttons with an "other" textbox item

I have a HTML form with a couple of radio buttons. The first few are normal radios, but the last one is associated with a text box. I'd like to run some JavaScript validation to warn users when they select "other" without providing a value using the text box. Functional HTML + JS is linked below, but the rough outline of the HTML is: <...

Nicely formatted source code

The source code is already formatted using newline characters and whitespace. Goals: keep source formatting as long as lines fit in the screen horizontally (e.g. pre) show line numbers on the left side aligned with the lines (e.g. a table with line numbers in a separate column) break lines into multiple lines when they do not fit in t...

Layout-neutral tag for CSS?

Is there an "invisible" tag in HTML (4) that I can use to make CSS distinctions tag.myclass tag.mysubclass h1 { } without having any visual impact on the HTML rendered? My background is that I have areas in a form that belong to different groups. As I am opening those in lightboxes (long story involving DOM operations and such, not ...

Links within and outside List elements not working

I'm trying to create a unordered list, with each li element having it's own background image (no text, just image), but I'm having trouble (in Firefox at least, it works in Safari) getting the link to work. In Firefox, the image changes on hover, but doesn't let you click. How do I get it to work in Firefox? I've tried the A tag within a...

Why are quotation marks showing up on certain text only in Safari?

See this page: http://www.humanperformanceadvisors.com/Prairie/Oklahoma/Postcards/1.html and the pages following. Why am I seeing quotation marks surrounding the product descriptions? These do not appear in Internet Explorer, only in Safari. Any help? Thank you! ...

How to access child element with javascript?

Im familiar with accessing parent windows like this: window.parent.document.getElementById("ad_nr") But what if I want to access a child window from a parent? (iframe for example) and then set a hidden input in there to some value created in the parent window, how is this done? Probably easy but I have missed it, so Im asking you guy...

Html printed page resolution (or size in pixels)

Does anybody know what is the resolution that will be used to render a printed HTML page. I'd like to know what size (in centimeters or inches) will be a printed image of say 500x500pixels. I know this value will change if I set the zoom value (IE and FF), but I am interested in the default value (when zoom is at 100%). Also, is there a...

is there a max size to the length of a hidden input in html?

in other words: <input type="hidden" value="Can I put as much as I want in here, or is there a limit?" /> and if so, what is it? ...

Expanding paragraph (html) for news section

I'm not sure how to go about this. I have a news section on a website (http://bit.ly/1RIXpM) I maintain and I'm trying to get it to display about 10 news items. Then I want to give users the option to click "more" for the rest, and the "less" for back to default. The document is xhtml and css and I'm trying to use as little javascript...

Firebug shows "offset" as Outer displacement ring enclosing Margin, Border, Padding, Element

In Firebug's HTML Layout view, what HTML property does "offset" represent. I have goggled around looking for a coherent answer and have yet to find one. ...

Align a div using CSS

I have the following defined in my css file: body { text-align: center; float: right; position: fixed; } .twoColFixRtHdr #container { width: 780px; margin: 0 auto; border: 1px solid #000000; text-align: left; } and I have my HTML defined as follows: <body class="twoColFixRtHdr"> <div id="container"> ...

Textfield and Go Button

I would like to place search textfield and the Go button side by side. It looks aligned equally in Moz, Opera, IE8, Safari but not in IE7. IE7 shows 1px gap in height. How it can be done for IE7? ...

What's the HTML code to limit the access to my web-page?

I have a question about HTML. I know that there is this mechanism that wouldn't allow users to get a direct access to a web-page unless they enter a password and a name. What's the HTML code for that? ...

How to apply class to first button of the div?

I have this html and I want to apply class to first button of the DIV. <div class="button-container"> <button class="save" /> <button class="reset" /> </div> I want to add class to the first button. I want to use jQuery for this solution. ...

How to fix the table height?

Hi guys, I want to fix the table height to 600px, eve if the content goes long. Thanks for your help... ...

CSS Display and Float Properties

Will the display property of an inline element change once a float property is applied? e.g. What will be the the display property of an anchor tag with float:left? Also, what will happen with its parent display property, will it also change? ...

Clean HTML using C#

How do I repair malformed HTML using C#? A great answer would be an HTML Agility Pack sample! I'm scraping a site (for legitimate use). The site's HTML is OK but there are some annoying problems. One way I could go would be through regular expressions. I used Expression Web to analyse the problems and the regular expressions needed t...

Unicode, VBScript and HTML

Hi all, I have the following radio box: <input type="radio" value="&#39321;">&#39321;</input> As you can see, the value is unicode. It represents the following Chinese character: 香 So far so good. I have a VBScript that reads the value of that particular radio button and saves it into a variable. When I display the content with a mes...