What is wrong in this <div style="position: absolute HTML code?
What am I doing wrong in this HTML code:
<html>
<head>
</head>
<body>
<div style="position: absolute; left: 50px; top: 100px; width: 1px; height: 1px; color: red;"></di开发者_Python百科v>
</body>
</html>
I was given it here about an hour ago, but it doesn't work - I don't see a red pixel in my "MS FrontPage" editor
You need to use background-color: red
instead of color: red
. Voila... a red pixel!
精彩评论