0

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...

4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by Abdel_eid
0

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

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.