html

HTML: How to stretch an empty element horizontally

I am trying to achieve a simple effect in HTML + CSS. Something like this _____________________[ Some Div ] Forgive the poor ASCII art. The ____ is to depict a border-bottom. The Div to the right of it shouldn't have the border. I want this border to stretch as much as possible, so that together they occupy the ...

Is it necessary to have selector's name in same case in css and html?

Is it necessary to have selector's name in same case in css and html? is it ok ? <div id="HEADER"> </div> #header{...} or this is necessary? <div id="HEADER"> </div> #HEADER{...} ...

Formatting for displaying source code on a web page

I'm working on a Markdown command line program, and I'd like to format source code blocks in the html output a bit better than a simple <pre><code>....</code></pre>. My criteria are: I want line numbers shown in front of each line I want the code by itself to be selectable so that I can copy only the code (and not the line numbers) to...

PEAR MAIL HTML email not well formatted in Hotmail/Yahoo/GMail

Hello, I'm using PEAR to send HTML emails from my website. My email are sent, but they are not formatted according to the CSS when viewed in Hotmail/Yahoo/GMail. When I view them in Windows Live MAil, they look great. To be more specific, it seems as if non of the CSS is taken into consideration (text format, background images etc.). ...

Display data in columns not rows using Ruby on Rails

I would like to display data in Columns rather than Rows in my web page. What is the most efficient way to do this using Ruby on Rails? Many thanks for your help! ...

Forcing div height with CSS

I have a test three-column page up ( http://hussain.mooo.com ). However, the left and right columns refuse to stretch to the bottom of the page. The XHTML and CSS is valid, I'm using Firefox, and they're all inside a wrapper div. Any help? Thanks in advance. ...

Getting rid of Value attribute of a textBox when using clone method in jQuery

Hi, Im having problem with this form im working on. Whenever I add, or refresh the page, the values are still there. I believe this is because the clone method copies the value attribute from the textBox. Is there any way I can get rid of them when i add another textBox. <html> <head> <title>JQuery Example</title> <script type...

How to enable html content on top of flash content without using the "transparent" wmode parameter or how to optimize framerate when using the "transparent" wmode parameter for a flash object?

I'm developing a Flash application which is communicating with Javascript to allow more features such as custom html input etc., by placing an absolute positioned div on top of the flash application and controlling it's position etc. with Flash & Javascript. Because these html elements have to appear above the flash content, I figured ...

If an HTML form has two <input type="submit"> buttons, how do I know which got clicked?

Hello everyone! Suppose I have the following HTML form: <form> ... <input type="submit" name="queue" value="Queue item"> <input type="submit" name="submit" value="Submit item"> </form> How do I know which button the user clicked (without using javascript)? I looked at submitted data and it seems that when "Queue Item" is clicked the...

HTML/XML Parser for Java

Hello, What HTML parsers have the following features: Fast Thread-safe Reliable and bug-free Parses HTML and XML Handles erroneous HTML Has a DOM implementation Supports HTML4, JavaScript, and CSS tags Relatively simple, object-oriented API What parser you think is better? Thank you. ...

How does Flickr prevent people from downloading images from the site?

Just wondering how does Flickr prevent people from downloading images from its site? What are they using? ...

I need a flash effect like this http://www.contempo.org.mo/Online%20magazine/ISSUE21/index.htm

Please refer to http://www.contempo.org.mo/Online%20magazine/ISSUE21/index.htm Is there any open source or other tools can accomplish this ? If I need to develop it by our own, what technology can we use? please give me more details. ...

IE6 problem: when the last insert table row is deleted, the width of second cell of first table row became 0

I'm sorry that I can't find a property title of my problem. I wrote a simple web page and some javascript to insert table row and delete it. Now my problem is when I delete the last inserted row, the second cell of the first table row's width became zero in IE6. Anyone can give me some advice? Great thanks. <html> <head> <meta http-equi...

Is there a project to generate a widget like uservoice?

I want to build a widget like uservoice that it lays on the left side or right side of the page. And when user click the widget, a dialog will popup and user can do anything we provide. Is there an exist open source project to implement this widget? ...

Alternative to <table> layout in HTML

So right now I have a webpage setup to be exactly the size of the browser window with a couple overflow:scroll 's in it. Basically the page is arranged in two columns and three row of a table. I would like to not use tables for style/formatting so my question is how would I make this migration. My page (in a nutshell): <html><body> <ta...

When are inline event triggered in javascript?

<input onclick=".." /> I mean,bubbling phase or capture phase? ...

Is it possible to achieve paper-turn effect in HTML without using flash?

Hi, I'm aware of several flash-based commercial implementation like flashpageflip. But I'm wondering if it possible to achieve without using flash? Any help will be much appreciated. Thank you. Agung Indrawan. ...

Using Multiple Images with Favicon

Hi all, I was wondering whether it was possible to use Favicon in the following manner. I have 2 types of users. Users from Company A and users from Company B. When a company A user logs into the website, I would like them to see Company A's icon/logo in the URL and TAB areas.... However if another user from Company B logs into that same...

how to convert content between two html elements into image ?

I want to convert html content as image, is it possible? <div class='temp'> <img class='tt'> <div><img class='tt1' /></div> </div> I want to save whole div(class= 'temp') as a image with its content. ...

xslt grab value from other node

I have two xslt dynamic drop down boxes and need a test statement that will test if the other one has been used. <xsl:template match="cat"> <xsl:choose> <xsl:when test = (if dog has already been selected) <select id="selectCAT"> <option value="" onchange="submitCAT()"> <option value="shorthair"> ...