div (6,381)


How to set CSS background color of HTML using JavaScript

How to set CSS background color of HTML using JavaScript

How can I set the CSS background color of an HTML element using JavaScript?…


Setting a div's height in HTML with CSS

I am trying to lay out a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background color. The content in the…


javascript - How can I enable disabled radio buttons?

The following code works great in IE, but not in FF or Safari. I can't for the life of me work out why. The code is supposed to disable radio buttons if you select the "Disable 2 radio buttons" opt…


html - How to create an all browser-compatible hanging indent style in CSS in a span

The only thing I've found has been;.hang{text-indent:-3em; margin-left: 3em;}The only way for this to work is putting text in a paragraph, which causes those horribly unsightly extra l…


Scrolling Overflowed DIVs with JavaScript

I've got a div that uses overflow:auto to keep the contents inside the div as it is resized and dragged around the page. I'm using some ajax to retrieve lines of text from the server, then append the…



javascript - Click an image, get coordinates

I know it can be done and I even have a vague idea of how to do it but it stops at being vague. I have a standard HTML image tag with an image in it, 100 by 100 pixels in size. I want people to be ab…


c# - Controls versus standard HTML

I'm getting into ASP.NET(C#-I know it doesn't matter for this particular question, but full disclosure and all that), and while I love that the asp:-style controls save me a lot of tedious HTML-cr…


css - SPAN Height in Firefox

Using CSS, I'm trying to specify the height of a SPAN tag in Firefox, but it's just not accepting it(IE does, funnily enough). Firefox accepts the height if I use a DIV, but the problem with using a…


Abstraction away from CSS

Let me make something quite clear. I. Hate. CSS. It is a never-ending nightmare. Every minor layout change feels like a hack. Solutions to problems seem to often involve jiggering numbers around like…


How to set encoding in.getJSON jQuery

In my web app, I submit some form fields with jQuery's $.getJSON() method. I am having some problems with the encoding. The character-set of my app is charset=ISO-8859-1,but I think these fields are s…




css jquery javascript html how not element text and working