html

When will you start using HTML 5?

So HTML 5 has been widely publicised as expected to be ready in 2022. This is a long time to wait, and the test for that readiness is that "at least two browsers to completely pass [HTML 5 test suites]" Obviously for browsers to pass this test they have to start implementing usable HTML 5 features before that. The list of new HTML5 fea...

Side By Side Panes

I'm building a HTML template for my site and would like to have a main content pane on the left and a navigation pane on the right (similar to Twitter). I'm assuming DIVs are not the preferred approach since they are by defaulted listed top-to-bottom. I've played around with float:left and float:right but those cause the parent div to ...

Aligning a background image to the top of text in a header element

I'm having a problem aligning an image to the top the text in an <h2> element because the space between the top of the text and the top of the elements box is different across browsers (so far it's been different between IE7, Safari 4, and FF3 - haven't tested anything else). Particularly noticeable because I'm using a large font (48px)...

Writing a dropdown form to translate current page; Google thinks I'm translating from English to English

I'm trying to write a dropdown form with a submit button that uses Google translation to translate the current page that I'm on. Here's what I currently have (someone helped me with this): <form action="http://www.google.com/translate_c" method="get"> <input type="hidden" name="hl" value="en" /> <input type="hidden" name="u" value=...

Function not defined javascript

For some reason my javascript code is messed up. When run through firebug, I get the error "proceedToSecond not defined". But it is defined! please help <script type = "text/javascript"> function proceedToSecond () { document.getElementById("div1").style.visibility="hidden"; document.getElementById("div2").style.visibility="vi...

Javascript complex array "element reduction" - building an HTML table based on array elements

I have a project that requires the following. Four arrays will be declared in the code as such: var ROW1 = ['module1']; var ROW2 = ['module2', 'module3']; var ROW3 = ['module4', 'module5', 'module6']; var ROW4 = ['module7', 'module8']; Each element of these arrays represents a module in a configurable HTML widget. Based on what eleme...

css custom checkbox layout

Hi, What I'm trying to accomplish is simple : change the layout of the browser checkboxes via CSS. Is it possible? Or do I need to use javascript for that? And how? Thanks in advance! ...

Problem with Select box Onchange event in html

<script> function options(){ alert("asdfasdf"); } </script> <select type="selectbox" name="crPaymentOption" id ="crPaymentOption"onchange="options()"/> <option selected="" value="--">--</option> <option value="Check">Check</option> <option value="Credit Card">Credit Card</option> <option value="Cash">Cash</...

HTML attribute disabled="disabled" doesn't work with IE8

I have a ASP.NET MVC application. The code in the aspx is like that <input '<%= ViewData["Disabled"] %>' class="Text1" type="text" name='test' value='0'/> ViewData["Disabled"] contains at this state a string = 'disabled="disabled"' the result in firefox: <input class="Text1" type="text" value="0" name="test" disabled="disabled"...

How to fix @font-face glitches in Firefox 3.5

In existing code I had CSS @font-face declarations for .EOT embedded fonts that worked flawlessly actually, in internet explorer. So now I read that Firefox does embedded now too, in 3.5, except it embeds .ttf fonts directly. So I altered the @font-face declaration for firefox and gave it a shot: @font-face { font-family: FontX; sr...

Problem with <div> border around table in FireFox

I would expect this code to display a border around a table. It does in Internet Explorer but not in Firefox. In firefox it displays a horizontal line above the table. If I add anything else e.g. <br /> within the div the border is displayed correctly. It also works if I remove the align attributes. What is the reason for this behaviour?...

How to add a border on HTML5 Canvas' Text?

I can draw text using these code: myCanvas.fillStyle = "Red"; myCanvas.font = "30pt Arial"; myCanvas.fillText("Some Text", 10, 30); I want to add a border around "Some Text", any ideas on that? ...

How to link a relative html file in the scenario where user can call the files from the browser by adding a / at the end.

(Sorry I am not able to frame question correctly.) Following is the scenario. I have 2 Html files. File1.Html has <a href="File2.html">Click Me</a> File2.Html has <a href="File1.html">Click Me</a> Now when I open the file1.html in browser by typing following in browser. http://Localhost/File1.html The file1.html with a link i...

Troubles with html-forms.

Hi guys, I have index.php: <form action="update_db.php" method="post"> <?php require_once 'modules/' . $currentModule . '.php'; ?> </form> modules/*some_module*.php ... <input type="submit" /> ... update_db.php: @extract( $_POST ); print_r( $_POST ); After loading index.php i see need form. But duri...

I don't want to show the HTML file name as the home page, such as stackoverflow.com, instead of stackoverflow.com/home.

Using htaccess I was able to hide the file extensions, making it /home instead of /home.html. However, for the homepage, I would like to hide the file name altogether, for example stackoverflow.com, instead of stackoverflow.com/home. How do I achieve this? ...

need help with this html css fragment

Hi, I need the #infoBar div and the #actualCover div to sit to the right of (next to) the #covers div but for some reason, the covers div is acting like its not even there and floats on top of the other divs please help <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Untitled Page</title> <style type="text/css"> ...

Unexpected Whitespace in DIV

Hi, I am going nuts with a whitespace problem inside a div. Two of my divs have unexplained whitespace but a third similar one has none. When I use the compatability mode of IE8 the whitespace disappears so I am guessing it is something to do with the CSS but for the life of me I can't seem to see what. The page causing the issue is at...

How can I simulate a click to an anchor tag?

I know this is similar to this question and this question, but given solutions didn't address the "target" property. I want to simulate a click to an anchor tag with all extras like correct target handling. There seems to be a "click()" method for anchor's DOM object but not all browsers support that. Firefox throws this error: Err...

HTTP Request Log - unique visitors without ip

How can i log Requests to get unique visitors of my webpage but without saving his ip? Hashing? ...

How to parse XML and insert content into HTML form using jQuery ?

Hello ! I have a simple XMl file with image tags: XML: <img src="images/image1" alt="My Image 1" /> <img src="images/image2" alt="My Image 2" /> <img src="images/image3" alt="My Image 3" /> <img src="images/image4" alt="My Image 4" /> I need to insert this content ("src" attrib) inside a <div> tag in my HTML form. HTML: <div id="p...