How can I style the header of dialog?

Background image and header image not showing up in my website.?

  • Here is my code. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1… <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Kyle Whitney</title> <style type="text/css"> body { background-image: url('g1.jpg'); background-repeat: repeat-x; } a { text-decoration:none } </style> <link rel="stylesheet" href="button.css" type="text/css"/> </head> <body> <div id="imageh"> <img src="frat1.gif"> </div> <div id="menu"> <h1 style="text-align:center">Menu</h1><hr/> <p style="text-align:center"><a href="RPs.html" class="button">My Papers</a></p> <p style="text-align:center"><a href="projectpage.html" class="button">Group Projects</a></p> <p style="text-align:center"><a href="Resume.pdf" class="button">Resume</a></p> <p style="text-align:center"><a href="contact.html" class="button">Contact Information</a></p> <hr/> </div> <div id="main_content"> <h3>GO COUGS</h3> </div> <style type="text/css"> #imageh { position:fixed; top:10px; left:100px; width:800px; height:150px; text-align:center; border:none; } #menu { position:absolute; top:250px; left:125px; width:170px; height:500px; border:none; background-color:white; } #main_content { position:absolute; top:250px; left:300px; width:575px; height:500px; border:none; background-color: white; } </style> </body> </html>

  • Answer:

    CSS should only be used in the header, not body. Try placing it before the </head> tag and see if that helps.

kyle at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.