Why won't my html / css code make a button? -
for reason page i've made has stopped showing image, it's showing small broken page icon, though showed before. haven't changed name of image or location.
i'm trying create button, it's not showing up
here's html code:
<!doctype html> <html> <head> <title>title</title> <link href="design.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="pic"> <img src="c:\users\a\desktop\untitled.jpg" id="pic"> </div> <div class='banner'> </div> <div class="button"> </div> </body> </html>
and here's css code:
#pic { position: absolute; margin-left: 40px; margin-top: 4px; z-index: 1; } .banner { height: 100px; width: 100%; background-color: #ffffff; position: absolute; top: 0; left: 0; z-index: 0; } .button { height: 50px; width: 120px; background-color: #bcd2ee; border-color: #6495ed; z-index: 3; } body { background-color: #e8e8e8; }
the page shows white banner @ top of page , grey background, image shows small broken page icon, , button isn't being created.
you referencing file local file system. security reasons not possible, , should never possible. upload image server, or move correct folder if use localhost, , reference image via url relative domainname.
Comments
Post a Comment