hey guys I' am new to css and i have a problem which is the div statement
e.g

<style type="text/css" media="all">

div{

content:"the string is placed inside div stat.";
border: thick solid black;
backgound: skyblue;
color: black;
font-size: xx-large;
padding: 20 px;

}
</style>

<body>
<div></div>
</body>

but it is not working i dunno why i tried it many times on different text editors but there is no hope...

misspelled "background"

Also, you have a space inbetween 20 and px (padding). You should note that ie6 only supports pseudo if you have no DOCTYPE declaration (which is strange, since ie5.5 does). Which means your document will not validate. Rather just stay away from it

yeah thanx guys there are some problem in the code syntax but if you correct it , it wont work on any browser it only works on opera

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.