html

Using a form HTML form in Cognos 8.4

Hi, Iam using a HTML form in my Cognos 8.4 report the code for which is seen below:- <form name="floodzone"><p> <input type="text" size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" /> <input type="button" value="Go!" onclick="showAddress();" /> </p> <div id="map_canvas" style="width: 1000px; height: 3...

100% sized Table inside a div, breaks when padding or margin is set.

If I put a table inside a div and set it to 100%, when I set the margin or padding to stop the text inside the table touching the edge of the div, the table ends up outside the div... its like the 100% doesn't take into account the margin size. Is there a common solution to this issue? ...

IE PNG fix problem

I have applied ie PNG from here: http://www.twinhelix.com/css/iepngfix/ So I can use transparent PNG background images in my CSS. It works on divs but the problem is when I give a transparent background to unordered list (ul) it doesn't work. Here is the markup: <div id="footer"> <ul> <li><a href="#">Link 1</a></li> ...

Syncfusion TreeView Control CSS Problem

I am working with the Syncfusion TreeView control to create a folder browser on a web page, our design uses CSS to control the layout of tables, but I cannot figure out how I can stop the table CSS affecting the layout of the TreeView. Currently my Treeview is looking like this: http://imagebin.org/63035 See how the checkboxes and th...

How to select the first element in the dropdown using jquery?

I want to know how to select the first option in all select tags on my page using jquery. tried this: $('select option:nth(0)').attr("selected", "selected"); But didn't work ...

HTML/CSS - Very tall <textarea> disappears off A4 page when printing.

I have a problem where a very tall <textarea></textarea> control doesn't fit on an A4 page when the web page is printed. On the web page inside a browser, the textarea displays just fine, but when I go to print it the bottom of the textarea gets chopped off the bottom of the page, it doesn't continue to print onto the next page. I have t...

How do I display HTML code (entities) on a web page?

how do you write html code so the user and see it on a webpage (like a how-to for html) ...

Browser opening text/xml in external program

Is there a smart way to - from a browser - open hrefs to text files and XML files in an external program. My target platform is Win32 so preferably I'd have the files open in the default editor for it (as set in explorer.exe). The solution must work in Firefox. It's a bonus if it works in IE and Crome. My html is generated from a local...

Link in sticky footer not clickable in Firefox and Chrome

I am using a sticky footer like described in: http://stackoverflow.com/questions/42294/how-do-you-get-the-footer-to-stay-at-the-bottom-of-a-web-page http://ryanfait.com/resources/footer-stick-to-bottom-of-page/ I have a paragraph with a link that I want to be at the bottom of the page, so I put it in .footer. The problem is that the...

What should i use instead of a frame?

Hi. Lots of people have told me that i should not use a frame on my website. Now my question is, what should i use instead? What do you guys think is the best solution for my shoutbox? http://www.anitard.org/indexx.html ...

Is it acceptable to use tables for forms? Or is it still more correct to use divs?

I'm wondering whether it's acceptable to use tables for forms. Strictly speaking, name/value pairs are tabular data, aren't they? And a form is just a user customisable set of name/value pairs. So is it right to use tables in this case? Or should I use divs styled with CSS? ...

Scraping html tables into R data frames using the XML package

How do I scrape html tables using the XML package? Take, for example, this wikipedia page on the Brazilian soccer team. I would like to read it in R and get the "list of all matches Brazil have played against FIFA recognised teams" table as a data.frame. How can I do this? ...

Tool to find malformed HTML?

I'm looking for a tool that could help me fix malformed HTML. For example: <div id="foo"> <div id="bar"> <span>Test</span> </div> The tool would detect a missing and inform me the the div with id 'bar' on line 2 is not closed. I know about the w3c validator (using it with the Web Developer Toolbar). But I find the validator...

Is margin property of an element ignored until its value is equal or greater than...

1) a) Even if inside CSS file we don’t specify a margin property for a particular block ( like <p> ), browser still displays it as if this block has a linebreak before and after it. Is that space ( let’s call that “default” space a dS ) considered a margin with some default value? b) I would assume that if I add ( inside CSS fil...

Why isn't this JavaScript executed?

I was actually not going to, and am afraid of asking such a silly question, but i have completely no clue what is going wrong here. My JavaScript function ahah(url, target) { document.getElementById(container).innerHTML = ' Fetching data...'; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXO...

Selectable input fields and textareas but no other content selectable in Firefox?

I need to prevent users from selecting elements in my web app UI, except for text in input fields and textareas. For Firefox, the technique seems to be to use this css: * { -moz-user-select: none; } And that works well enough (tested Firefox 3.5.2), except that you cannot then select within input fields or textareas. I tried dividin...

IE8 render bug

Check out this page in Firefox or Chrome: http://minorityrecruitonline-com.si-vs1222.com/college/Default1.aspx Now check out the same page in IE8. I have tried everything to get them to appear the same in both browsers, but no can do. Any ideas from any HTML gurus out there? ...

How do I create borders around tbody/thead sections of a table?

I am attempting to create a page with tabular data, which must appear as multiple tables. I have two conflicting requirements to get around, however: Each table must have a border around it. Column widths for each table must be able to re-size based upon the content. However, the column widths must be consistent across all tables. (i...

Multiple file selection for an upload control

Hi, I was trying to do something like this: http://www.element-it.com/Examples/MultiPowUpload/AdvancedHTMLinterface.html But in my search for information I found that is not possible to perform multiple file selection with simple HTML and JavaScript (and JSP in the server side). There is a way to do this without using Flash? A third pa...

Adsense Javascript aligning site on to the right while loading

Basically the page is coded centered, but what happens is that on load it goes to the right, completely loads the page with all the images, all the ads, and then when it's finally done, it'll move back to the center. Here is the CSS: note I'm a total noob, so most of it is cobbled together from other websites. The only javascript on the...