CSS background color in JavaScript How can I set the CSS background color of an HTML element using JavaScript? Answer : In general, CSS properties are converted to JavaScript by making them camelCase without any dashes. So background-color becomes backgroundColor. function setColor(element, color) { element.style.backgroundColor = color; } source : http://stackoverflow.com/questions/3319/css-background-color-in-javascript

Autosizing textarea using Prototype I'm currently working on an internal sales application for the company I work for, and I've got a form that allows the user to change the delivery address. Now I think it would look much nicer, if the textarea I'm using for the main address details would just take up the area of the text in it, and automatically resize if the text was changed. Here's a screenshot of it currently. Any ideas? @Chris A good point, but there
undefined
Solve the select Overlap bug in IE6 When using IE, you cannot put an absolutely positioned div over a select input element. That's because the select element is considered an ActiveX object and is on top of every HTML element in the page. I already saw people hiding selects when opening a popup div, that leads to pretty bad user experience having controls disappearing. FogBugz actually had a pretty smart solution (before v6) of turning every select into text boxes when a popup
undefined
Creating Rounded Corners using CSS How can I create rounded corners using CSS? Answer : Since CSS3 was introduced, the best way to add rounded corners using CSS is by using the border-radius property. You can read the spec on the property, or get some useful implementation information on MDN: If you are using a browser that doesn't implement border-radius (Chrome pre-v4, Firefox pre-v4, IE8, Opera pre-v10.5, Safari pre-v5), then the links below detail a whole bunch of different approaches. Find one that suits your site and coding style, and go with

CSS background-image Property Css allow set backgroung image / images.Use background-images property for set background image in a web page. Images Allow types is PNG, JPG,GIF,JPEG,SVG,WEBP CSS background-image Property syntax background-image: url("image path"); single background image set Example code <style> body { background-image: url("backgroundimage.gif"); } </style> Multiple background images set Example code <style> body { background-image: url("backgroundimage1.png"), url("backgroundimage2.jpg"); } </style>