html

Using XPath: find last text node of each paragraph under the root node.

I want to trim trailing whitespace at the end of all XHTML paragraphs. I am using Ruby with the REXML library. Say I have the following in a valid XHTML file: <p>hello <span>world</span> a </p> <p>Hi there </p> <p>The End </p> I want to end up with this: <p>hello <span>world</span> a</p> <p>Hi there</p> <p>The End</p> So I w...

Footer knocked out by 1px in IE6

Heres the link: DAMNIE6TOHELL As you can see if viewed in glorious 'IE6-o-color', the footer is shifting 1px over to the left. I'm struggling to find a fix for this, I've whittled it down to a bare minimum of HTML. Is it something to do with haslayout perhaps? Any help much appreciated. ...

php link to image file outside default web directory

Here is the directory structure /domain.com /public_html /functions /image /mobile /www the /domain.com/public_html/www folder has a file index.php the default web directory is /user/public_html/www in the index file is an include that includes the functions with include"../functions/function.inc" this works without problem whe...

CSS div element - how to show horizontal scroll bars only?

I have a div container and have defined its style as follows: div#tbl-container { width: 600px; overflow: auto; scrollbar-base-color:#ffeaff } This gives me both horizontal and vertical scroll bars automatically once I populate my table which is contained by this div. I just want only horizontal scroll bars to appe...

IE6 Bullets on lists

My link is here: Example Page I'm using list-style-image: to give my horizontal lists ( very top and bottom ) seperators. I have a class of .first to remove the image from the first li in each list. Lo and behold in IE6, it doesn't work. What happens is that the bullet images are not being displayed, and also the bottom few pixels of ...

Can you change the width of a scroll bar (scrolling DIV) in IE7

Hi Is there any way to change the entire width of the horizontal scroll bar on a scrolling div (including the nudge arrows and the handle). EDIT: I only need an IE7 solution - it's for a scrolling DIV on a touch screen terminal Thanks Matt ...

What do you use to test the handheld css on your website?

I've been adding css support for handheld to my website but haven't been able to find a good tool for testing. I tried using the webdeveloper plugin for Firefox but it doesn't work for me. Maybe that is because all my css is in the html and not a seperate css file. Are there any other testing tools available aside from going out and b...

Problem with <input type='text' /> and <textarea> width

In the following code, both the INPUT and TEXTAREA elements render wider than they should. How can I limit them to 100% of the usable area within the div? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" ...

<base target="FrameName"> doesn't work on IE7

It seems that the following piece of HTML is ignored in IE7 but works ok in IE6/FF. It supposes to override all the html links to be opened in the desired frame <HEAD> <title>LeftPane</title> <base target="rightFrame"> </HEAD> The above code is the header of a left frame that holds an Infragistics UltraWebTree (tree menu) wh...

.NET text editor that accepts HTML and input/output with spellchecking

I have been searching for something that does this for a while now, but with no luck yet... We have an internal application that stores/uses text in HTML format. Now I am looking for a new control for editing it. I do not need a full-featured HTML editor, just something that can deal with simple formatting. It also needs spell check...

How to attach HTML file to email using content taken from DB in PHP?

Hi, How do I send mail via PHP with attachment of HTML file? -> Content of HTML file (code) is in string in DB. Is there some easy way or free script to do this? I don't want to store the file localy, I need to read it out of DB and send it straightaway as attachment (not included in body). ...

What is the simplest way to implement mouseover background color change for HTML elements?

I the following styles: a.button { background-color: orange; margin: .2cm; padding: .2cm; color: black; font-family: sans-serif; text-decoration: none; font-weight: bold; border: solid #000000; } a.buttonMouseover { background-color: darkGoldenRod; margin: .2cm; padding: .2cm; color: blac...

What is the difference between using HTML or Dreamweaver to make a website? Which is Better?

What is the difference between using HTML or Dreamweaver to make a website? Which is Better? ...

Inner div exceeds outer div boundaries

I can't get the inner div (with Hello World) to fit inside the "box" div in this code example (also at http://www.toad-software.com/test.html). Despite the body being set to 100%, the inner div will not be contained! This is a test case for a larger project in which a variable-width table exceeds the boundaries of its container. The tab...

Javascript - multiple client-side validations on same event

I am performing two validations on the client side on the samve event. I have defined my validations as shown below btnSearch.Attributes["OnClick"] = "javascript:return prepareSave(); return prepareSearch();" Pseudo code for prepareSave(): { if (bPendingchanges) { return confirm('Need to save pending changes first, click ...

What's the best "file format" for saving complete web pages (images, etc.) in a single archive?

I'm working on a project which stores single images and text files in one place, like a time capsule. Now, most every project can be saved as one file, like DOC, PPT, and ODF. But complete web pages can't -- they're saved as a separate HTML file and data folder. I want to save a web page in a single archive, and while there are several ...

Display HTML in an Actionscript 3 project

Folks, I am pulling all my Flash (pure AS3 project, not Flash CS3) content from a Drupal back-end for SEO purposes. This works great, except the HTML rendering built into the TextField object leaves a lot to be desired. Could anyone recommend any libraries that would allow me to display HTML elements? At this stage, commercial or ope...

CSS Layout tricks

I am experementing for the first time with css layouts (have experience of the very basic css setup). All I want to achieve is a 2 column layout (left panel and content). I have found this: #leftcontent { position: absolute; left:10px; top:10px; width:170px; border:1px solid #C0C0C0; padding: 2px; } #centercontent { position...

selected entry with a drop down menu in php

I have this drop down list, displaying all the files from a folder, one of which will be selected for use. Is there a way to show which file is selected when you load the page? at the moment it says "select a file" every time. <select name="image" type="text" class="box" id="image" value="<?=$image;?>"> <option value='empty'>Select a fi...

Stop embedded Windows Media Player from looping?

I've got an embedded Windows Media player in an HTML page, and when the audio gets to the end, it just starts again from the beginning. According to the documentation, there's an autorewind parameter/attribute and also a loop. The problem is, I've set both of those to false (and/or zero) and it doesn't seem to make any difference. Mig...