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
Related Q & A:
- How To Set Cell Background Image In Iphone?Best solution by Stack Overflow
- How to add background image from OpenGL ES to iPhone?Best solution by stackoverflow.com
- is there away to change the background image of individual workspaces on Gnome Desktop?Best solution by Super User
- How to place a different background image on each part of a book?Best solution by TeX - LaTeX
- How do I add a background image to my JFrame?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.