html

Hover a td block

Is it possible to change TD background when you hover over it? I have tried td:hover {background:red} and td a:hover {background:red} without success. Does this have to be done with javascript? EDIT: restarted wamp now it works lol ...

How to dynamically change data in the HTML textarea or text field with php?

I will have a web-application which will use a few complex forms. One form will have examples field on the top and field for user on the bottom. There will be approximately 10 examples. It will be great if i can change text and images without reloading full HTML page. Form will be based on HTML. Php will do all logic processes. I haven'...

Vim: gg=G aligns left, does not auto-indent.

When I try to fix the indentation of an HTML file with gg=G, each line looses its indentation and becomes left-justified. Does anybody know what could be going on here? Thanks. ::EDIT:: test.html <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Indent test</title> </head> <body...

help positioning the search bar

Hey guys I have my navigation bar using unordered links and using jquery for ui effects. This works fine. Now I have designed a search bar which matches the theme of the bar and wanna position it to the right of the nav bar. kinda like the vimeo website.. The problem is that i cannot include it in the same list cos i dont want the jque...

How to load a HTML file into canvas?

Hi, I know we can load an image into a canvas but I wonder if we are able to load a simple HTML file into a canvas. If yes, how? Thanks. ...

ASP.NET DropDownList / HTML select list default selection

For my ASP.NET page, in the code behind I load various items/options into a DropDownList but I do not set a default by assigning SelectedIndex. I notice for the postback SelectedIndex is set to 0, even if I never set focus to or changed the value in the DropDownList. If not otherwise specified in the code behind or markup, will a defaul...

Showing default browser bullet points on a <ul> when using YUI CSS reset

I'm using YUI 3 CSS Reset on my page, but want to display a specific unordered list using the browsers default list styling. I've put an example page up on the URL below to explain: http://www.nsmith.me.uk/list.php I want to be able to style <ul> on the page as if the css reset script wasn't included. For an example, add ?hideReset=1 o...

Creating an unordered list with asp.net controls?

I've got this web control that I've been dynamically adding controls to but now the requirement is to add an ordered list around the controls. To render the controls I add the controls to ControlsCollection protected void Page_Load(object sender, EventArgs e) { var document = XDocument.Load(@"http://localhost:49179/XML/...

Applying Hoverintent to a Jquery Hover

Hello all! I'm having some issues with this layout and having a link that displays on hover stay showing! Here's a sample of the table row which is displaying the data... <tr> <td> <div class="heightControl"> <a href="#">data</a> <div class="logRemove"><a href="#" class="sremovelink"></a></div> </div> </td> <td>12.14.09 / 12:3...

Building website like askmeflash.com

Dear All , I am new to html world . I build all our websites with flex . I have concepts of html ,php ,java(architect) ,Mysql( Oracle DBA) Looking for your help to build website like askmeflash.com . I mean Are there any available frameworks I can use to build like that? What should I learn to build website like this? What tools I h...

Simulate a click by using x,y coordinates? - Javascript

Hi folks, is it possible to use coordinates in order to simulate a click? Or is this technically impossible? :O I'm using Javascript within a webpage. Help would be great, and also quite interesting!!! =) ...

How to make a select field show list of options? - Javascript/jQuery

Hi folks, I'm trying to mimic focus on a select field. e.g. When a user gains focus on a select field, the select field shows the options in a drop down list. When using $('select').focus(), the options are not shown. Any help on this one guys? =) ...

Tutorials with CSS/HTML code along with design?

I'm a backend programmer and I'm finding it very difficult to understand CSS/HTML design/layout. Are there tutorials where they display various designs/layouts and show the CSS/HTML code? A lot of programmers just google and copy code anyway, so it would be a time saver if there are sites that give me the code right away. ...

Reduce active area of a div/image to allow for shadow

Some 'buttons' (divs with background images) on my webpage have shadow effects in the image. I don't want the shadow area to cause a click event. Is there any relatively simple way to reduce the active area of a div using css? Or are there any standard techniques for doing this? I have a click effect when the button is pressed (using :a...

Jquery remove link with a certain label and the whole text after this link

For example: <a href="/" title="Go to homepage">Homepage</a> text after link; <a href="/" title="About">About</a> text after link; <a href="/" title="Contact Us">Contact Us</a> text after link; No problem: I can remove the link with: $("a:contains('Homepage')").remove(); My question: How to remove the text after the link previously...

Javascript drop-down form math calculation

I'm trying to create a page where there are two dropdown menus, and then when the user presses submit, it calculates a price based on the data given from the dropdown menu. It needs to take either 1 or 2 from the first dropdown menu choice, multiply that by the value of the second dropdown menu choice, multiply that by 0.2, and output it...

Accordion Menu/Sub-Menu Offset

Hi, menu sample I have an accordion menu that currently expands and collapses all with the same container of the menu system boundaries. My question is, (see menu sample), how can I take the sub-menu of my accordion menu, i.e. the expanded bit, that currently shows "Pool & Spa Maintenance" in the attached example and have it display as...

How do I refer to the file that a user has selected in an input box in HTML?

I have a file input box on my page, created by the following HTML: <input type="file" id="imagefile" accept="image/gif" /> I'm using the file input to upload a file using the Imageshack API. The API states that I need to send the following parameter: fileupload; (input type="file") - image or video file. Mandatory unless url p...

hide cursor movement in textbox

I want to hide cursor movement in text box. ...

Make text avoid a div, layout question.

Here is a pic So this is a picture of a website I host for a non-profit organization. The picture is in a div that has the following attributes: position:absolute; right:50px; top:50px; What I want to do is make the text more visible because on different resolutions the picture will be in different locations, so I can either: -mak...