html

Present tabular data on webpage so the user can directly copy it into Excel.

On my webpage I want to able to present tabular data and give the user the possibility to copy it directly into excel. This however doesn't work, all of the data is pasted in one cell: <table> <tr><td>Column 1</td><td>Column 2</td></tr> <tr><td>Data 1.1</td><td>Data 2.1</td></tr> <tr><td>Data 1.2</td><td>Data 2.2</td></tr> </table> Ho...

Embed Flash Object by bypassing rules?

Hi there i want to embed a youtube video to a profile page, but the social system does not allow embedding flash objects now i wonder if theres a possibility to bypass this rule, the first thing i was thinking of was embedding an iframe to a page that links the object. sadly the social network also disallows iframes. do you have any i...

How might I force a floating DIV to match the height of another floating DIV?

My HTML code is just dividing the pages into two columns, 65%,35% respectively. <div style="float : left; width :65%; height:auto;background-color:#FDD017;"> <div id="response"> </div> </div> <div style="float : left; width :35%;height:auto; background-color:#FDD017;"> <div id="note"> </div> </div> In the response div, I ...

Statistics or resources: which gets disabled first (more often than others)? Images or Javascript?

I am creating a new website and this question came up, statistically, including all browsers (phone browsers as well), which gets disabled more often? Images, Javascript, or CSS? Reason Im looking for an answer is to design the image-replacement technique that covers the most recurrung scenarios. ...

What's the deal with CSS and scroll bars?

I've got a client with an HTML page with a couple of scrolling divs with text content. She's using a heavily image-based design so the default scroll bars don't suit it at all. She'd like to use a different style but to my knowledge that isn't possible. What do you think? ...

What HTML/CSS would you use to create a text input with a background?

I have a website design that includes text input fields that look like this: I'm wondering what the best solution for creating this input field is. One idea I have is to always have a div around the input with a background image and all the borders disabled on the input field and specified width in pixels, such as: <div class="borde...

Why should I use conditional stylesheets?

The question covers most of it, but I'm trying to present a well articulated argument towards a senior developer who wants to abandon conditional stylesheets altogether (IE6, mobile, etc). Bear in mind we're not actually eliminating IE6, just the stylesheet. Or am I being crazy and should just accept this? ...

Specifics of website development for Japanese mobile phones; testing?

Is there any good advise on developing websites specifically for Japanese mobile phones? As I see it so far, the site basically has to be bare-bone HTML, mostly <p>s and <br>s and tiny, compressed postage stamp graphics if need be. There are also some UTF-8 codes for pre-defined graphics. Are there any other conventions one should be awa...

How to tell if a string is a web address?

What is the best way to determine if a string represents a web address? I need to let the user enter a web address into a form, but how do I validate the input? The user should be allowed to enter strings like "http://www.google.com" or "www.vg.no", but he shouldn't be required to enter the "http://". Also, there are web pages like "tv2....

How to adapt WordPress theme to BlogEngine.net

Do you know any guidelines on how to create a new BlogEngine.net theme having source code of a WordPress theme? ...

IE7 : an excessive margin in form for textarea

I am trying to deal with an IE7 bug in my application. Here is the HTML/CSS code <div style="margin-left: 320px"> <form method="post" action=""><fieldset> <textarea name="prj_comment" id="prj_comment" rows="5" cols="50" style="margin: 0; padding: 0"></textarea> </fieldset></form> </div> In Firefox/Op...

Copy half of an HTML child nodes array

I have an HTML element (let's say a division) that contains a set titles (h2) and paragraphs (p) with other element inside (some links for example, a). My goal is to cut my HTML element in 2 same size element. Constrains : paragraphs, titles, and block should not be cut My idea asbout this was to browse inside the child nodes list and...

Why is ContentEditable removing “ID” from div

I am having problems with getting a HTML editor working. We are using “contentEditable” to implement it, however when any paragraph formatting option is done without contents selected, IE removes the ID from one of the divs in the page. The problem repeats for me with the HTML, just save it to a file, then open it in IE enable jsc...

using jQuery after someone else's Javascript

Scenario: I have a Javascript-generated web page that someone else wrote a long time ago that I'd like to pretty up using jQuery. My goal is to clean up the Javascript generated html that someone else produces just by using some jQuery calls against that HTML, after it has been generated. This will be much simpler than modifying the ot...

how to save the generated xml file using jsp?

hi i have generated xml file using jsp,but i want the generated xml file should be saved as a file. my code is <?xml version="1.0" encoding="UTF-8"?> <%@ page contentType="text/xml;charset=ISO-8859-1" %> <playlist version="1" xmlns = "http://xspf.org/ns/0/"&gt; <title>My Band Rocks Your Socks</title> <trackList> <%! S...

How to fade the background

I was going to look up how to do this, but I don't really know what to call it to look it up, so I was hoping I could describe it here and someone could point me in the right direction. Anyways, I'm looking for how to make it so on a website, when you click on something, a new sorta layer pops up and fades the background. I see sites do ...

How can I make links white?

How can I change the colour of hyperlinks to white in HTML and CSS? ...

Setting a css class for TD

I am using a customized user control (that I don't have the permission to modify) which renders the HTML for a table as shown: <tr> <td></td> <td></td> </tr> It lets me add any control dynamically within the tags. My question is how would I set the style of the cell for the table cell. Normally, I would do <td class="myClass">. ...

HTML DIV and IMG tag spacing in IE vs. FF

I'm having trouble with the layout of a simple HTML page. Please help. Here's the layout I'm going for... orange = body blue/red = frame div green = header image black/white = menu div It looks correct in Internet Explorer, but in Firefox, Safari, and Chrome there's a 4-pixel gap between my image (header) and my div (menu). Inte...

What CSS properties can be applied to which HTML elements

I'm looking for a source/spec that can tell me what CSS properties can applied to which HTML elements. For instance, the css property; "overflow". I know I can apply this to div, p, textarea but what other elements can I apply this too? Is there a spec somewhere I can reference? ...