html

javascript not being called

Hello, I am using this HTML <html> <head> <Title>EBAY Search</title> </head> <script language="JavaScript" src="ajaxlib.js"></script> <body> Click here <a href="#" OnClick="GetEmployee()">link</a> to show content <div id="Result"><The result will be fetched here></div> </body> </html> With ...

floating images in a layer, inside another layer

Hello, I have the following HTML to center images and links within a layer: edit: a better example <style> body { background-color:#000; color: #FFF; } a { font-family: "Broadway", Broadway,monospace; font-size: 14px; color: #FFF; } #images a { width: 24.99%; display: block; float: left; text-align: center; } #contain...

Firefox doesn't take table styling from master style?

I have a stylesheet in my master page that defines several general things (basic doc structure, header images, control styling etc). Amongs those styling rules are the table stylings. Now in all pages that inherit from the master page, the tables are styled the same. It works in Opera and it even works in IE. But WHY oh WHY doesn't it w...

Is there a fully-functional dropdown replacement for HTML SELECT that works in IE?

We determined in a previous question that many features of HTML SELECTs are not supported in IE. Is there an alternative widget that you would recommend from your experience that meets the following requirements? Respects the contentEditable property (does not allow selection changes if true) Respects the disabled property of individu...

c# XML manipulation VB code conversion query... and more!

I am following a VB tutorial to do some HTML manipulation using LINQ It has the following construct Imports <xmlns="http://www.w3.org/1999/xhtml"&gt; How do I do the same in C#? There appears to be something called an XMLNamespaceManager that may hold the solution, but I am too foolish to understand how to work it, and I am not sur...

How to align checkboxes and their labels consistently cross-browsers

This is one of the minor CSS problems that plagues me constantly. How do folks around StackOverflow vertically align checkboxes and their labels consistently cross-browser? Whenever I align them right in Safari (usually using vertical-align: baseline on the input), they're completely off in Firefox and IE. Fix it in Firefox, and Safar...

Modifying the style attributes of selected table cells with jQuery?

I'm building a pretty basic HTML table creator/editor (based on a designMode iframe) at work, using direct DOM manipulation. It's a pain, obviously due to Internet Explorer. When in designMode, a table inserted into the editing area iframe is resizable and the contents of the cells can be freely edited. In Firefox, rows and columns can ...

Fluid CSS layout and Borders

In designing a fluid layout, how do you use borders without ruining the layout. More specifically, I have a HTML widget which consists of five divs. I would like the five divs to take up all the room in the containing element. I would also like to have a 1px border around each. I tried: .box { float: left; height: 100%; width: 100%; ...

Checkbox size

Is it possible to set the size of a checkbox using css or html ? "width" and "size" work under IE6+ but not with firefox, where the checkbox stays 16x16 even if I set a smaller size ...

How do I filter all HTML tags except a certain whitelist?

This is for .NET. IgnoreCase is set and MultiLine is NOT set. Usually I'm decent at regex, maybe I'm running low on caffeine... Users are allowed to enter HTML-encoded entities (<lt;, <amp;, etc.), and to use the following HTML tags: u, i, b, h3, h4, br, a, img Self-closing <br/> and <img/> are allowed, with or without the extra spa...

Any Tools To Find Missing HTML Tags?

What is the best way to find missing closing tags in my HTML? Validator shows that I have some issues but its really hard to track anything down. I guess the best solution would be something that indents the code. That way a missing tag would be easier to identify. Anyone know of a tool to do this? ...

How to reproduce: Script Error, "Object does not support this property or method."

Can any one give me a scripts (HTML/CSS/Javascript) that can reproduce this error on IE 7.0? I am trying to fix this bug in my page where I get this warning but could not exactly found the problem. Line number does not match with the source either. I thought the better approach would be to create a bug and then work on it incrementally...

IE does not render <A> tag properly

SOLVED: Nevermind, the links were visited, and the border definition was missing for visited links (as someone pointed out, thanks). As for the color being first place in the border definition, the snippet comes from the IE Developper Toolbar, this is not directly my code. Anyway, thank you guys ! Why does the link in the following snip...

Need quick way to validate proper nesting of HTML tags.

Is there a firefox plugin or something similar I can use to validate that my html output has properly closed tags? ...

What is the Best method to http transfer a file from the client to a server, in Java 1.5?

What is the Best method to http transfer a file from the client to a server, in Java 1.5? ...

The Standard For Linking <h> Tag Elements

Is either: <a href="#"><h1>text here</h1></a> or <h1><a href="#">text here</a></h1> "correct". Is there any benefit of using the first one, it seems more logical to me. Perhaps from an SEO point? ...

Float a div right, without impacting on design.

Hi, I want to float a div to the right at the top of my page. It contains a 50px square image, but currently it impacts on the layout of the top 50px on the page. Currently its: <div style="float: right;"> ... </div> I tried z-index as I thought that would be the answer, but I couldn't get it going. I know it's something simple ...

How do you create a toggle button?

I want to create a toggle button in html using css. I want it so that when you click on it , it stays pushed in and than when you click it on it again it pops out. If theres no way of doing it just using css. Is there a way to do it using jQuery? ...

CSS block elements on a line

What's the most common way to deal with a series of block elements that need to be on a line (if javascript needs to be able to modify their widths, for example)? What are the pros and cons to applying float:left to each of them vs. using positioning to place them? ...

What is the best way to display HTML in Flex?

I have HTML that includes symbols such as the Trademark "TM" as superscript (). In normal HTML, I would use "&trade;" or &#153; to display the Trademark TM. However, I can find no way to import HTML like this into Flex and have it displayed correctly. I am having similar issues with the <li> tag. My HTML: <p>This information is intelle...