• 0

Who is the idiot, Phoenix or me? Simple div help


Question

Ok so I want to get rid of tables and switch over to layers and divs and bla bla bla. Oh and xhtml compliant too.

So http://www.patbert.com/spam.asp is my first try, and it failed right out of the gate.

IE 6 seems to display it fine, but Phoenix .5 doesnt display the div at all, like its not there. Well as you can see it displays the text inside the div, but it doesnt display the background colour.

Am I retarded? I havent messed with css in a long time but I cant see what I am missing to make it not show.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Patbert</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<div id="menubackground" style="position:absolute; width:209px; z-index:1; background-color: #339933; left: 0px; top: 0px; height: 100%; visibility: visible;">
What
</div>
</body>
</html>

Done. Watch for the neowin wrap (if any);

Link to comment
Share on other sites

  • 0

Everything looks kosher to me. Displays fine in IE as well as opera. Could be a problem with the browser and not the actual page itself. I cant see any errors in the code.

Link to comment
Share on other sites

  • 0
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Patbert</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<div id="menubackground" style="position:absolute; width:209px; z-index:1; background-color: #339933; left: 0px; top: 0px; height: 100%; visibility: visible;">
What
</div>
</body>
</html>

Done. Watch for the neowin wrap (if any);

Ok you'll have to excuse me but what exactly did you do?

Removed the layer-background property, added px to the positions, and line breaks in the div? Which one of these fixed it?

http://www.patbert.com/spam2.asp

Not complaining, it certainly works, thanks!

Link to comment
Share on other sites

  • 0
Removed the layer-background property, added px to the positions, and line breaks in the div? Which one of these fixed it?

Adding the '#' to the color code probably. I did it all in one go.

You should use correct notation - always.

Link to comment
Share on other sites

  • 0
Removed the layer-background property, added px to the positions, and line breaks in the div? Which one of these fixed it?

Adding the '#' to the color code probably. I did it all in one go.

You should use correct notation - always.

Tell that to Dreamweaver!

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.