I'm trying to create a textarea that can contain multiple colors. I created a div and in JS did the following:
element.unselectable = 'off';
element.contentEditable = true;
The div is now editable, but when I click in it, it gets a weird outline. How do I turn this off?
...
can we override inline css through javascript? with IE6 compatibility.
I found this pure css solution but not works in IE.
http://nataliejost.com/override-inline-styles-from-the-stylesheet/
http://www.sitepoint.com/blogs/2009/05/27/override-inline-css/
<div class="block">
<span style="font-weight: bold; color: red;">Hello World</...
Trying to CSS it, I can CSS the cells, and the days of the week, and I think the top part that says the month, but the area around the month is silver, and no attempt at cssing it will change it - I tried all the different Css properties (I think) but it always ends up being silver. It appears in the designer as silver too. I can't find ...
For some reason I can't edit XHTML source. Can we add any attributes to any XHTML Tag through Javascript, for example title in <a title="text">?
...
Hi (please excuse me for my ugly english ;-) )
Do you know if the default CSS of any user agent ... :
depends on its release number ?
depends on its layout engine ?
depends on the release number of its layout engine ?
depends on the OS ?
depends on the OS release number ?
If yes (for any choice), have you any example do demonstrate ...
Hay guys, I'm using this hack to get a cross browser 100% height DIV
/* commented backslash hack \*/
html, body{height:100%;}
/* end hack */
html,body {margin:0;padding:0}
#outer{min-height:100%;height:auto;background:#ffffcc}
* html #outer{height:100%;}/* ie6 and under*/
EDIT: However on my div i have a 1px top border and a 10px t...
I have got a CSS division called home which has got certain attributes with an action for hover for the anchor tags inside the home division like this:
#home a:hover
{
background-image:url(images/template_03_1.png);
position:relative;
top:3.5em;
left:0.5em;
}
Now, what I want to do is access the 'home' id's attributes inside t...
I have a stack of divs down the center of the page (using margin:auto)
now I want to draw a line starting at the center and extending to the right (say 400 pixels). I'm a but stumped, any idea how to make this work nicely?
cheers!
...
How can I remove spacing between the li found here?
http://blog.raveis.com/badge/b.html
Confused on how to do this and I don't want to use negative margins. any help would be greatly appreciated.
...
I am getting the following error in Firebug (console -> show css errors)
Expected ',' or '{' but found '0.2'.
This is on a page with jCarousel.
Is there a way to get more information about this error in Firebug, I can't find it in the code.
...
What resources do you use to make a good and beautiful web site design?
Do you use templates?
What patterns you use?
Are there any web site with good resources and ideas?
...
I have an image with this markup
<img src="wedding_00.jpg" width="900" height="600" />
And I am using CSS to downsize it to 600px width, like so:
img {
max-width:600px;
height:auto;
}
Can anyone explain why this method works in Compatibility mode, but not in standard mode? Is there a way I can modify my CSS so that it will ...
i've created some js codes to scrolling images on the page, but cannot view all images. the problem happened on google chrome. is there any solution? I'm including the js code and css to this.
data=[
[" images/img1.jpg"," Image1","pic01.jpg"],
[" images/img2.jpg","Image2 ","pic02.jpg"],
[" images/img3.jpg","Image3","pic03.jpg"],
[" imag...
I'm testing a website in Internet Explorer 6 and I am baffled by this issue.
I have a data-list on the page, which shows the amount to pay - here it is.
<dl>
<dt>Amount to pay:</dt>
<dd class="note">
<span id="total">£39.99</span> (includes delivery)
</dd>
</dl>
The CSS rule for this is such that it lays out like...
I am looking to hide a number of DIVs based upon the specific text of another DIV. My Javascript (below) isn't working.
The HTML:
<div id="LEGEND">abAB</div>
<div id="small-a"></div>
<div id="small-b"></div>
<div id="big-a"></div>
<div id="big-b"></div>
If the LEGEND DIV contains the text a, then I want it to show only DIV small...
I was looking for some resources about the use of CSS instead of tables and reached this presentation by Douglas Bowman that seems to be a 'classic'. I dug into it and found this sentence about the tables in the slide 6 that is very intriguing:
Keep the cellspacing attribute in the markup.
It's curious that in Eric Meyer's reset C...
I like the 'Recent Activity' effect on http://foursquare.com/. The top activity pushing all beneath. Is there a JQuery plugin or widget I can readily use which does the same?
(I am a lazy developer so please no 'you can develop this yourself' responses)
...
I've seen many examples for animating the background-position of elements to produce nice looking scrolling backgrounds.
These examples tend to also script in reset counters to put the background-position in its original location after a certain amount of pixels.
My question is: Is it feasible to never reset the background-position for...
I'm having a problem with a centered div only on IE7... on Chrome and Firefox it works properly.
Here is the website, it's on Volusion.com so go easy on me it's an old platform :)
http://www.ecosandbags.com
Everything is in a main div:
<div id="MainDiv">
Here is the CSS
#MainDiv {
background-color:White;
border:1px solid black;
ma...
When running in quirks mode, this works as expected however when I declare HTML 4.01 strict the background color disapears. If I remove the YUI reset.css, it seems to work as it should. Anyone know what YUI is doing?
I am using
body{
background-color:#000;
}
.wrap{
width:60em;
min-height:100%;
position:absol...