html

How to horizontally center an unordered list of unknown width?

It is common to have a set of links in a footer represented in a list, such as: <div id="footer"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </div> I want everything inside div#footer to be centered horizontally. If it was a paragraph, you w...

Why File Upload didn't work without enctype?

Most of time, the source of File Upload didn't work was forgetting enctype in HTML Form (for me). Normally, we do not need to add enctype in HTML Form for regular requests. But we do need to add this in HTML Form for file upload... enctype="multipart/form-data" I just curious, why file upload didn't work without enctype. Thanks. ...

iframe background image

I have a iframe on my page. I have inserted a background image on it. but its not showing the Image. Here is my code. <iframe scrolling="auto" allowtransparency="true" name="main" style="width:100%;height:90%" style="background-image:url(img/bg2.jpg)"> </iframe> ...

Help Cursor is not working in the firefox browser...

<html> <head> <title>Question</title> <script type="text/javascript" > function MouseOverHand(ID) { var Cursor='hand'; var ID=ID; if (!document.all){ Cursor='pointer'; } document.getElementById(ID).style.cursor=Cursor; } </script> <script type="text/javascript" > function MouseOverHelp(ID) { var Cursor='help'; var ID=ID; if (!docum...

What is quirks mode?

In a lot of articles about design, quirks mode is mentioned. Anybody have an idea about this thing in plain text and in a development prospective? ...

Scala and html parsing

How do you load an html dom document into scala. The XML singleton had errors when trying to load the xlns tags. import java.net._ import java.io._ import scala.xml._ object NetParse { import java.net.{URLConnection, URL} import scala.xml._ def netParse(sUrl:String): Elem = { var url = new URL(sUrl) var connect...

Iframe not showing object from struts action class.

Hi all, This is in continuation with my previous question which was not framed properly. I have an iframe in a jsp class which is calling a struts2 action class in its src, but instead of opening inside the frame the file is getting downloaded, Inside file TempContentPage.jsp: <s:form> <iframe id="displayFrame" src="ContentPage.actio...

IE6 - Element jumps when loading

In IE6 one element (an iframe in a table, to be precise) on my page for a short time appears at an absolutely wrong position, and then, when loading is done, jumps into the correct position. There are many bugs documented on the internet, but I couldn't find any information about how to fix this. The page can be viewed here: http://www.f...

PHP/HTML: 500 Internal server error...?

The code provided in the link has problems. When trying to go to the real webpage, it gives me a 500 internal server error. What is wrong with the code? Anybody knows? http://www.gdscei.com/myphp.txt I am using iWebKit. (I know you cannot read the text, it's Dutch. But I am not seeing any problem with pure text.) ...

Displaying unicode symbols in HTML

I want to simply display the tick (✔) and cross (✘) symbols in a HTML page but it shows up as either a box or goop ✔ - obviously something to do with the encoding. I have set the meta tag to show utf-8 but obviously I'm missing something. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Edit/Solution: From comm...

Orient text vertically in HTML like in Excel

I'm trying to replicate Excel's Vertical Text feature in HTML and wondering if anyone has tried this or knows of an easy way to do this? I want my text to look like: T H I S inside of a <th> element ...

Naming "class" and "id" HTML attributes - dashes vs. underlines

<div id="example-value"> or <div id="example_value">? This site and Twitter use the first style. Facebook and Vimeo - the second. Which one do you use and why? ...

How to set a value to a file input in HTML?

<input type="file" /> How can I set the value of this? ...

Extracting pure content / text from HTML Pages by excluding navigation and chrome content

Hi, I am crawling news websites and want to extract News Title, News Abstract (First Paragraph), etc I plugged into the webkit parser code to easily navigate webpage as a tree. To eliminate navigation and other non news content I take the text version of the article (minus the html tags, webkit provides api for the same). Then I run th...

Text limit inside <span> XHTML?

I would like to limit the text inside a tag so when I add a new article in my ASP admin panel, it only has 350 characters max. How do I go about doing this? ...

Clickable lines and circles with HTML Canvas

I'm thinking of making an application where at some points a graph is displayed that maps people over time and space. The vertical access is location, the horizontal access is time, and each person is identified by a line. At any point where the person did something of significance, there is a bigger dot on their line. Conceptually, clic...

Limiting characters inside HTML paragraph

I want to make it so there's only 350 characters inside the paragraph, regardless of how many characters are put into it, I only want 350 displayed. How can I do this? The text is just in a div tag in text. Cheers ...

iFrame background image problem on IE8

Hi i am trying since so long for background image on iframe its working fine on firefox and other browsers but serious problem i am facing on IE. Its showing nothing on IE. Pls help me out. Here is my code: I am using IE8. <iframe scrolling="auto" frameborder="0" allowtransparency="true" name="main" style="width:100%;height:90%; backgr...

recommendation for html parser library in as3 for flex project

Hi, Can somebody recommend a simple html parsing library, written in as3 for a flex project? Thanks, Nava ...

Android: How can I add HTML links inside a ListView?

How would I go about adding clickable links inside a ListView? ...