html

What the typical viewport size on a 1024x768 screen?

I am designing a web application, and I wish to know the largest size (x and y) that I can design for. As of January 2008, about half of users are using 1024x278 screens, and probably less than 10% are using smaller screens. (Phone and palmtop users are an exception here.) So we are designing for minimum screen size of 1024x768. Howeve...

Including .asp file into html file.

How can include .asp file inside of html file and have it proccessed besides having to process all html files with asp. ...

Aligning image and text vertically within TD element

<td> <img src="http://blog.garethjmsaunders.co.uk/wp-content/feed-icon-16x16.gif"/&gt; My feed </td> This is how it looks like: My feed The icon and the text is misalligned vertically. The icon is on the top of the table cell, the text is on the bottom. Both the text and the icon occupy 16 pixel but the cell still eats up 19. H...

.NET - Server-side Markdown to HTML Conversion

What is a good open source .NET library to convert markdown to HTML on the server? If this has been answered somewhere else please point me to the post. Thanks. ...

pdf to web page

I get a .pdf complete with images, fancy fonts, styles, gradients and what have you. Basically it's handed off to me with the message, "Make me a web page that looks exactly like this." I've tried a few pdf to html tools and they all look terrible. I figure I've only got 2 options and i hate them both. convert the pdf to one big ima...

static html blog/cms to run on a USB stick?

What are the options for having a simple blog, content management system that will deploy the full site as static html over FTP/SFTP and any blog API? I am aware of Thingamablog but it hasn't been updated in more than a year so i guess is dead now. What are my alternatives that must export at least static HTML to a FTP server? It would...

Nested hyperlinked areas without nested link elements in HTML source

I'd like to have something that looks and behaves as hyperlink inside larger rectangle (full page wide) which is also hyperlink. Below there is ASCII-art representation of what it should look like: |-------------------------------------------| | Some text [_link_] | |-----------------------------------------...

ASP.NET DataList - defining "columns/rows" when repeating horizontal and using flow layout

Here is my DataList: <asp:DataList id="DataList" Visible="false" RepeatDirection="Horizontal" Width="100%" HorizontalAlign="Justify" RepeatLayout="Flow" runat="server"> [Contents Removed] </asp:DataList> This generates markup that has each item wrapped in a span. From there, I'd like to break each of these spans out into rows ...

Providing alternative images if Adobe Flash isn't available

Are there any ways providing an alternate GIF/PNG image, in case the user has no Adobe Flash installed and/or deactivated. I’ve found recommendations, like the following from W3C, which determine via JavaScript the existence of Adobe Flash on the client: W3C Providing alternative images Honestly, I would prefer a non JS technique. I’m t...

Single page display, multi page print problem

A web page displays the following:- Bob Fred John However when the user (that would be me) prints the web page I want multiple repeats of this output with slight variations to be printed on separate pages :- Bob Fred John >page break here< Bob Fred John >page break here< Bob Fred John In reality the page content is larger...

html <input> element ignores CSS left+right properties?

Hi, I've noticed that the <input> element in HTML ignores the CSS pair of "left" and "right" properties. Same for the pair "top" and "bottom". See the sample code below: <html> <head> <style><!-- #someid { position: absolute; left: 10px; right: 10px; top: 10px; bottom: 10px; } --></...

Subscript text in HTML

Dear All I am Using the following code to write the table, Now i wish to add subscript text,after the table text ,How can it achieved ? My code has oCell = document.createElement("TD"); oCell.innerHTML = data; oRow.appendChild(oCell); how to add a subscript text followed by data ? ...

Multiple elements with same width equal to widest element

I have two elements (a button and an anchor tag) both with a dynamical text inside that grow to the length of their content. I cannot know which one of them will be the longest at compile time, nor can I know what the maximum/minimum width will be. The shorter one should always adapt to the longest one. <span id="buttonsColumn"> <butto...

Make CSS Div Width Equal To Contents

Hello, I have a layout similar to: <div> <table> </table> </div> I would like for the Div element to only expand to as wide as my table element becomes. Any suggestions? Thanks! ...

Going beyond the iframe

Hey! I am trying to get an iframe B communicate with site A. I've searched and searched and every thing I read says it's impossible if they are of different domain (the iframe src is coming from a sub domain). I want to communicate because my company has ads on its page and it needs to refresh them every X minutes. This is ok if it's a...

Do you know of a resource that lists all the font-families with their fall-backs that are good on the web?

Note: I've made a few edits here as I didn't get my question across very well the first time around. Update: After doing some of my own research on this subject, I've come up with a perfect example of why I'm searching out the perfect list of font-family with fall-backs: http://www.brownbatterystudios.com/sixthings/2007/03/14/lucida-h...

<pre> tag loses line breaks when setting innerHTML in IE

I'm using Prototype's PeriodicalUpdater to update a div with the results of an ajax call. As I understand it, the div is updated by setting its innerHTML. The div is wrapped in a <pre> tag. In Firefox, the <pre> formatting works as expected, but in IE, the text all ends up on one line. Here's some sample code found here which illustr...

What is the best way to emulate an HTML input "maxlength" attribute on an HTML textarea?

An HTML text input has an attribute called "maxlength", implemented by browsers, which if set blocks user input after a certain number of characters. An HTML textarea element, on the other hand, does not have this attribute. My goal is to emulate the behavior of maxlength on an HTML textarea. Requirements: At a minimum, show (CSS chan...

How do I allow Pasting of data into a web page?

I have a neat little javascript data grid and I want people to be able to paste data into it. I know there are security issues attached to accessing the clipboard, but I am wondering if there is a way to do it. It is by far the most intuitive approach for the end user. Is there some cunning hack I could do with, say, a text input? ...

Multiline JavaScript Text

I have a long snippet of HTML I want some javascript variable to equal and for maintainability I want to store it with actual newlines instead of adding \n (or as it is HTML just omitting newline characters). In Python I would do something like: largeString = """Hello This is long!""" And that would work perfectly. However, I haven't ...