• A little CSS problem
    2 replies, posted
[B][I]SOLVED! PLEASE, DELETE TOPIC! :smile:[/I][/B] I do have a little css problem: I can't show an image with background-image. Website: [url]http://217.123.25.166/[/url] Note: if it's offline, try again later. Codes: HTML: [HTML]<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Voorbeeld</title> <LINK rel="stylesheet" href="css/style.css" type="text/css"> </head> <body bgcolor="#4E8BEE" text="#8BB1A5"> <div id="background"><br/> <div id="banner">lol</div> </div> </body> </html> [/HTML] CSS: [CODE]#background { width:1024px; height:768px; z-index:1; margin-left: auto; margin-right: auto; background-color: #1B6BE3; } #banner { width:1000px; height:200px; z-index:2; margin-left: auto; margin-right: auto; font-family: Georgia, Times New Roman, Times, serif; font-size: medium; background-image: url(img/banner.jpg) } body,td,th { font-family: Georgia, Times New Roman, Times, serif; font-size: medium; } a:link { color: #0F0; text-decoration: none; } a:visited { color: #0F0; text-decoration: none; } a:hover { text-decoration: underline; } a:active { text-decoration: none; } h1,h2,h3,h4,h5,h6 { font-family: Trebuchet MS, Arial, Helvetica, sans-serif; } h1 { color: #FFF; } h2 { color: #FFF; } h3 { color: #FFF; } h4 { color: #FFF; } h5 { color: #FFF; } h6 { color: #FFF; } [/CODE]
Works fine here, both on Chrome and Firefox, what browser are you using? In the future, these sort of simple questions should go in the [URL="http://www.facepunch.com/threads/1092866"]Web Development Questions That Don't Need Their Own Thread[/URL] thread.
-snip-
Sorry, you need to Log In to post a reply to this thread.