html

idea for morphing captcha

I've been thinking of a dynamic way of creating a CAPTCHA that uses morphing shapes or dynamic colors. My first idea is to have a graphic, flash or something, that gradually changes from, say a square into a sphere. The user will be required to click the button when it becomes spherical enough. Second idea is to have an area of colo...

Getting actual height of an auto-heighted element in IE

hi hi guys, I'm pretty confused! with this: ... <div id="main"> <div id="content"> <div class="col1"> ...COLUMN1 CONTENT GOES HERE... </div> <div class="col2"> ...COLUMN2 CONTENT GOES HERE... </div> </div><!-- #content --> </div><!-- #main --> ... there are columns as you see, an...

rails: how to html encode/escape a string? is there a built-in?

Yay, silly question time. So I have an untrusted string that I simply want to show as text in an html page. All I need to do is escape the chars '<' and '&' as html entities. The less fuss the better. I'm using utf8 and don't need no other stinking entities for accented letters and so on. Is there anything built-in in ruby or rails, ...

Is it possible to add an anchor to a FORM post/get?

I noticed that in Firefox I can add a #MyAnchor tag to the action attribute like... <form action="#MyAnchor"> <input type="text" name="a" /> <input type="text" name="b" /> <input type="submit" /> </form> and when the form is submitted, the anchor automatically shows up in the URL like mypage.aspx?a=1&b=2#MyAnchor However, t...

Managing header templates?

I'm new to creating html pages etc - but am using VS 2008 just for the editing/intellisense capabilities. My problem is I have a pure HTML only website (no ASP.NET) and have a fairly extensive header that has to be used in every page. It's frustrating to change the header parts of the HTML across all pages every single time it changes...

How would I convert this table layout to divs/css?

Hi, I'm really trying to work with div's and I can't seem to get the equivalent to the following simple table layout: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Table example</title> <me...

Problem displaying side tab navigation in IE7

I am attempting to build a "Tabbed" side navigation menu using html/css. I am going with the most convenient approach of using a table that has a single row and two cells (columns). The left cell is for the "tabs" and the right cell is for the content to be displayed. The left cell containing the tabs has a right border set to be the ...

Data protocol URL size limitations

Is there any size limitation for data protocol URL "data" URL scheme values? I'm interested in limitations in popular web browsers. In another words, how long data:image/jpg;base64,base64_encoded_data can be in <img src="data:image/jpg;base64,base64_encoded_data" /> or background-image: url(data:image/jpg;base64,base64_encoded_data)? ...

two tone background in html?

So I want to make the background of my website two tone. What I mean is have a dark gray in the center, going all the way down, but then have a lighter gray on just the sides. Maybe 80-85% of the pages width. Do would I go about doing this? So what I want is the middle to be one color, and the two sides to be another color. Is there ...

HTML Entity displaying wrong in Camino

I'm trying to show the characters ☜ and ☞ in my HTML page. Every single browser I've tested displays them properly, except for (inexplicably) Camino. Instead, it shows this: That's what it renders for ☜. The symbol it shows for ☞ is similar. If for some reason you can't see those characters properly, here's the HTML entities I'm usi...

Are you allowed to have an input without a value?

Is the following allowed? <input type="hidden" name="field" /> ...

How do I create an html report without hardcoding the html?

I'm currently refactoring a console application whose main responsibility is to generate a report based on values stored in the database. The way I've been creating the report up til now is as follows: const string format = "<tr><td>{0, 10}</td><td> {1}</td><td>{2, 8}</td><td>{3}</td><td>{4, -30}</td> ...

how to achieve label popups on imagemap

This is my first time using map tag in html. I assume getting the tags on a image where I want is 'trial and error' Is it possible to have a tooltip type lable when user does a mouse over on the 'clickable' part of the image? something cooler would be a comic book style tooltip :) any ideas? ...

What's the best way to convert table layout to CSS layout?

I'm about to begin working on a web page with a complex table-based layout (coded years ago). One of the things I'd like to do is convert the layout to a proper CSS layout with divs and spans. Can you suggest a good approach for tackling problems like this? Should I use a CSS framework like Blueprint? Just get in there and hack on it...

How to bind ASP.NET Treeview control to a datatable?

I have this table structure: - CategoryID - CategoryName - ParentID I want to load data from this table into a treeview control, to be able to edit/delete these records. How to do that? ...

When highlighting html on a page, it colors the words blue, but doesn't give it blue background?

I have a simple page with some html. When I hold and drag the mouse to highlight a part of it, for example a paragraph, it changes the forecolor of the text to blue, it does not change the forecolor to white and change the backcolor to blue as it normally does. Does anyone know anything that would cause this, for example, a certain CSS...

Dynamic height of iframe

I am currently working on an existing site that uses iframes(sigh!), these are pretty painful to work with and I'm having problems getting the height of the iframe to scale with the height of the HTML content. I've tried a few different script snippets that floats around on the interwebs, but none of them have worked for me. I really wa...

Send a web page through javascript

Hi friends, I want to email a web page through javascript. Its enough to open the outlook new mail option. I try to move a Here i am using mailto: option in html. Actually i am try to create a dynamic email template and want to send that template in html format. Its showing error "comment line argument is not valid. verify the switch ...

pure CSS minimized-height header, maximized-height body within an absolutely positioned DIV

I have an HTML editor widget that I want to appear within an absolutely positioned, fixed-size DIV. However, I don't know the absolute size of the DIV beforehand, and it may change, like if the user resizes the window. The editor, naturally, has controls and an editable area. Each has their own DIV. I want the controls to take up as ...

Displaying high resolution image

I have a really high resolution images (e.g. this one) that needs to be viewed. I would like to either fit it into the browser screen or have user scroll around the picture (without changing the image). What are some good ways to do such things? I'm guessing that there is a way to do this with CSS (using width/height) or Javascript. I...