html

Break the Iframe

I have an iframe on a landing page and I want to break the frame upon the viewers submit. When the viewer goes to the second page the frame cuts the image on the page is there a way to break, if I don't control the iframed page submit button. Could i frame my own button over the existing and have it scripted to "push" both buttons one to...

Best tags to use to draw a legend for a chart in html?

I have a calendar control with various days as various colours. I want a legend at the bottom, basically three coloured boxes + text X bibble Y bibble Z bibble XYZ are different coloured boxes I am wondering what a nice way to do this is. Should I dive in with tables, or use divs or some other control with CSS applied? Any elegant...

How Should I Display This Background Using CSS?

When doing a background in css I am usually just using a gradient background that starts at the top, then eventually ends a solid color. So I slice up a thin layer of the gradient, repeat-x, then have the background set to a certain color (background:#color url(image location.png) repeat-x) However I am faced with a unique obstacle I...

Variable height HTML element with horizontal hidden overflow CSS

I need to hide horizontal overflow of a html element but not the vertical overflow. So assume I have the following HTML: <div class="container"> <div class="inner"> <p>content 1</p> </div> <div class="inner"> <p>content 2</p> <p> and then some more stuff</p> </div> </div> The CSS I wanted to use was something like:...

difference in mouse events on img/div

I have a little tool on a web page that can be clicked and dragged along a horizontal line. First I had the drag handle as an img. I had some problems with layout and realised later that it would probably be better to use a div with an img background. So I changed the drag handle to use a div, and I discovered a pretty obvious error in ...

HTML table using colSpans not displaying as expected

I have an example of a simple HTML table that contains a number of div blocks. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <head></head> <body> <table border=1 width="1000px" > <tr><td></td><td></td><td></td><td></td></tr> <tr valign="top"><td col...

Something in my coding is stretching my page horizontally.

I've just spent the last month or so designing a new layout for my website. I think it's about perfect, however, I've discovered that there's something stretching my site horizontally beyond the page width. I've searched through my code and I can't seem to figure out what it is. If you check out my test page, you'll see that there is ...

Storing the path of a file a user selects from the file input as a session variable to repopulate the field later

I am developing a script in PHP for uploading files to a MySQL database. There various things that need to selected in addition to the actual file that go into the database entry. The script needs to be designed so that it checks to make sure all of the proper selections have been made, and if they are not the script returns to the upl...

Looking for ASP.NET/HTML menu like the one at this page

ComponentArt home's page has a top dropdown nav menu. I like it's professional look with the image and bordered item container. I was wondering if there are any free similar components with can be used in asp.net pages. I am not looking for any dropdown menu. I am looking for one as close as the one I mentioned. JQuery ones are fine. ...

Back Button Handle A Dynamic Form

I have a form with an array of text fields. The user (through javascript) can add an arbitrary number of text fields to the form. After submitting the form and pressing the back button the form displays only with the fields that were on the original form when it was first rendered (any added text fields are lost). What is the best way...

Using jQuery, setting Draggable on an element prevents blur from firing when you click the draggable element.

Using jQuery, when you set a blur event on a text box and set another element as draggable, when you click the draggable element, the blur event does not fire in FireFox. IE is a little better, you get the blur event but you don't get the click event on the draggable element. If you don't specify the cancel: "" in the draggable constru...

Formatting SelectList Items

Hi all, I was wondering if there was a way to format 2 strings in a selectlist and display them as following: String begins with Item1 and spaces following it until 10 spaces are taken up followed by a Delimiter "|" and string 2 So all Selectlist items binded to a drop down list will be displayed as following Item 1 |Name1 Item 2...

pass variable to child in javascript?

I want to pass a variable in my parent window to an iframe html document (child). Example: var myValue = 10; want to pass myValue to a child element (hidden input)... How would I do this? ...

is it possible to do this on a input type ="file"?

I need to pass the filename of a file-input to a parent page... is this even possible? The input type ="file" has a value, but can I use it like this? I have used the value of the file-input to check the extension of the file, and it works! So I guess there is a value, but can this be done and is it reliable? If not, how would you hav...

css html definition list question

Is it possible to HAVE a bullet in front of a <dd> tag just like <li> i cannot use <li> because i need to validate and <dl><dt>and <dd> is just fine ...

Firefox Unable to Handle %2b in Page Links

I noticed an issue where with the following HTML: <html> <head> <title>UrlEncode Test</title> </head> <body> <a href="http://example.com/Process.php?OrderID=y%2bog%3d"&gt;Process&lt;/a&gt; </body> </html> Instead of replacing %2b with +, Firefox does so with a space instead so that clicking on the link ...

h1 tag class (alternate)

I know that h1 tag is important for SEO, so all my title is H1 (bravo!) now i need to have title (as the first line of a texte) a little different on some page usually i just duplicate h1 as h2 and alternate the question: is it possible to add a class to the title tag... (i have try without success) ...

HTML Redirect To Original Page.

I have a one page site that has PHP code in it. Once the user presses 'Send', this sends the information to my email, then displays a messagebox saying that the action was a success to the user - great. After the messagebox is closed, the website stays at website.com/report.php. Is there a way to redirect it back to the original page. ...

Hover next / previous element

I need to be able to have the next element / previous element to change the background color with the current element. How do I do that. The element that I am working is TR, table row, and nextSibling, previousSibling doesn't do the trick for me, don't know why ? ...

drop right menu

I'm looking for a drop-right menu, not dropdown. Based on list of lists, ex html <ul> <li> item1 <li> fold1 <ul><li> fold1it1 <li> fold1it2 </ul> <li> item2 <li> fold2 <ul><li> fold2it1 <li> fold2it2 </ul> </ul> When you mousover fold1, it would expand to the right right (drop right) item1 fold1 fold1it1 fold1it2 fold2it3 ...