html

Setting table column width

I've got a simple table that is used for an inbox as follows: <table border="1"> <tr> <th>From</th> <th>Subject</th> <th>Date</th> </tr> How do I set the width so the From and Date are 15% of the page width and the Subject is 70%. I also want the table to take up the whole page width. ...

need help with some html/css trickery to get around drawback in struts2

I am trying to get an html page like http://jsbin.com/awoco This is a JSP page so it will include scriptlet. Final html will be kind of like this (i left tags unclosed to save space): <% Iterator it = MyList.iterator() While (it.hasNext()) SomeClass all = it.next(); SomeClass a = it.next(); SomeClass b = it.nex...

How to make Hyperlink in a List Item to hidden on oveflow?

the hyperlink always wraps. is there a way to hide the overflow? ...

Sending MIDI messages in a Web page

How can I play individual MIDI notes in a Web page? I know of two ways to do it: Write an ActiveX control. Then it only works on Windows. I used to write ActiveX controls a long time ago, but now nobody likes to install them. Write a Java applet. This is OK if the user already has Java installed, but many users disable applets. Th...

How/why does the width work on INPUT and SELECT elements if they are inline elements?

As I understand, width/padding/margin properties only work on block level elements. However, on INPUT and SELECT elements I am able to specify the width, which works. Should it? I could write something like this: <input type="text" style="display:block;" /> But is it necessary? Can anyone explain please why it works? ...

Easiest way to convert a PHP page to static HTML page

I want to convert a web pages which is heavily CSS styled is written in PHP to static html so that I can embed it in an email. I have managed to do this but for achieving this I had to convert the whole page into a string and then assign that string as email body. The layout of the page does not look as good as original as I have not be...

Input type file size varies in Linux/ Windows

I have an input type="file" element with size="70" and width="522px". It looks and works fine in all browsers on Windows but in Firefox on Linux the input element is bigger than 522 pixels. Things I tried: max-width:522px but it doesn't work (Linux). setting size="52" and min-width:522px; looks fine in Linux but doesn't work on in Fir...

Two column page with fieldsets

I don't know where to begin learning about doing such a layout without tables, or at most one two column table as a simple container. Where should I start? ...

Where should I include JS files

Hello, I have a PHP application in which there is a div container which includes the app which has been $_GET from the URL string. Currently, there are two applications which require TinyMCE, and one application which requires jQuery and jQuery UI. Question is, where should I include the files on the page? In the header, the page lo...

when i click on this textbox it gets big but when i click away how do i make it go back to normal?

i'm basically mimicking the share button feature on facebook with jquery and what im trying to do is when i click on the textbox area the textbox gets larger by height. and when i click away it should get back to normal. with the last piece of jquery the code doesnt work at all. what are my options in getting this to work? thanks. ps: ...

Why doesn't this search box select all text on click?

You can see the search box in question at: http://www.trailbehind.com. If the user tries to search twice, they have to press backspace a bunch to clear the text, but I'd like to select all text on double click, which inputs should do by default. Why doesn't mind? When the users first clicks, I clear the input as follows: input.onclick...

Why isn't this Yahoo Pipe outputting items?

I have a Yahoo! Pipe that attempts to transform an HTML page into RSS, but the resulting feed contains no items. For each entry I've parsed these elements: link (permalink) title (HTML title) description (HTML entry) guid (segment of the permalink) Various tutorials led me to add these: dc:creator ("Doug") y:id.value (permalink) y:...

javascript, html and browsing, is there an easy solution?

Straight to the point: I would like to parse the source/DOM of a html page. However i cannot because there is missing information which requires javascript and ajax. I am using C# and .NET. There is a site that uses ajax to browse pages. Theres two sections i am interested in, the wiki and media section. If i have the link to the media ...

Good books/resources for learning web programming.

I am a beginner & wanted to know good tutorials to get myself started with javascript,html & other web programming related stuff. many thanks. ...

separating php and html... why?

So I have seen some comments on various web sites, pages, and questions I have asked about separating php and html. I assume this means doing this: <?php myPhpStuff(); ?> <html> <?php morePhpStuff(); ?> Rather than: <?php doPhpStuff(); echo '<html>'; ?> But why does this matter? Is it really important to do or...

is using <a href=" ... " target="window_name"> not a good practice?

Sometimes a user will click on a link on a page, and it seems that there is no reaction -- nothing is loaded. It turns out that all the links on that page is targeting a window name, such as "news_content". The user previously already clicked on a news headline, and so when the user now clicks on another news headline, that window (usu...

Short-cut in textarea

I'm trying to write a text editor. I'd need to: be able to understand what text is selected so that a shortcut could work in the correct portion of text, just like in this editor, if I select a word in the middle of the text and then press Ctrl+B Be able to catch when some keys are pressed like this Ctrl+B and TAB any hint? ...

php modes breaking out of php or not

I asked another question about HTML and PHP separation as I have seen references to it on tutorial and examples pages but I found that separation of HTML and PHP it something different than what people are actually commenting on and I think that is PHP modes. That is breaking out of PHP or not. Should It be done? Is it important? Is it...

Whats the difference between using .Class or #ElementId in CSS?

Ive been wondering... in CSS are there any differences between creating a style class and applying it an element, or creating a style with the #elementId notation (apart from being able to assign a class to different elements)? For example... #div1 { background-color: Yellow; } <div id="div1"> Hello world! </div> Or .div1 { b...

Detect if IFRAME's document is malformed

I'm loading a page into an IFRAME, and I would like to know if the download was incomplete .. and the HTML is malformed, and missing the closing tags like </body> and </html>. Is there any way to detect this in JavaScript? ...