This statement doesnt work:
<script type="text/javascript">
$(document).ready(function () {
$('p').css( {'color':'Black', 'background-color':'Red'});
<p > DDDDDDDDDDDDDDDDDDDDDDDDDD</p>
why?.. no red background appears!
$('p').css( {color:'Black', backgroundColor:'Red'});
here is the fiddle http://jsfiddle.net/CAarv/1/
you can use backgroundColor REF or if you want to use background-color use the quotes around them like 'background-color'
$('p').css( {color:'Black', 'background-color':'Red'});
here is the fiddle http://jsfiddle.net/CAarv/4/
It works fine
http://sandbox.phpcode.eu/g/8f030.php
<script type="text/javascript">
$('p').css( {'color':'Black', 'background-color':'Red'});
</script>
you have to close <script> and you can remove $(document).ready