imHeader { background-color:transparent; background-image:url(http://flammen-odense.dk/style/top.png); background-position:0 0; background-repeat:no-repeat no-repeat; height:207px; margin-bottom:1px; }
<!DOCTYPE html> <html> <head> <TITLE></TITLE> <meta charset="utf-8" /> <meta="keywords" content="" /> <meta="description" content="" /> <link rel="stylesheet" href="stylesheet.css" type="text/css"/> </head> <body> <div id="ramme"> <div id="logo_wrapper"> <div id="logo"> </div> <div id="top_border_gfx"> I denne div vil du skulle bruge noget grafik for at kunne lave det skrå stykke af borderen. </div> </div> <div id="content_wrapper"> <div id="content"> Her kan du skrive indhold på din side</div> </div> </div> </body> </html>
#content_wrapper { margin: 0 auto 0 auto; width: 1000px; height: 600px; border: 2px solid black; border-radius: 25px; border-top-left-radius: 0; background-color: black; display: block; } #content { padding: 15px; color: white; } #logo_wrapper { display: block; height: 100px; width: 1004px; margin: 50px auto 0 auto; border: 0; } #logo { height: 100px; width: 150px; float: left; display: inline-block; border: 2px solid black; border-top-left-radius: 25px; background-color: black; } #top_border_gfx { display: inline-block; float: left; height: 90px; width: 400px; background-color: black; color: white; border: 1px solid white; padding: 5px; }
<!DOCTYPE html> <html> <head> <TITLE></TITLE> <meta charset="utf-8" /> <meta="keywords" content="" /> <meta="description" content="" /> <link rel="stylesheet" href="stylesheet.css" type="text/css"/> </head> <body> <div id="ramme"> <div id="logo_wrapper"> <div id="logo"> </div> </div> <div id="content_wrapper"> <div id="content"> Her kan du skrive indhold på din side</div> </div> </div> </body> </html>
#content_wrapper { margin: 0 auto 0 auto; width: 1000px; height: 600px; border: 2px solid black; border-radius: 25px; border-top-left-radius: 0; background-color: black; display: block; } #content { padding: 15px; color: white; } #logo_wrapper { display: block; height: 100px; width: 1004px; margin: 50px auto 0 auto; border: 0; } #logo { height: 100px; width: 650px; float: left; display: inline-block; border: 2px solid black; border-top-left-radius: 25px; border-top-right-radius: 110px; background-color: black; }
<!DOCTYPE html> <html> <head> <TITLE></TITLE> <meta charset="utf-8" /> <meta="keywords" content="" /> <meta="description" content="" /> <link rel="stylesheet" href="stylesheet.css" type="text/css"/> </head> <body> <div id="ramme"> <div id="logo_wrapper"> <div id="logo"> <a href="index.html"> <div id="logo_image"> Her er der en anden div som indeholder logo'et </div> </a> </div> </div> <div id="content_wrapper"> <div id="content"> Her kan du skrive indhold på din side</div> </div> </div> </body> </html>
body { background-color: red; } #content_wrapper { margin: 4px auto 0 auto; width: 1000px; height: 600px; border: 2px solid black; border-radius: 25px; border-top-left-radius: 0; background-color: black; display: block; opacity:0.8; } #content { margin: 20px auto 0 auto; height: 520px; width: 900px; padding: 15px; color: white; } #logo_wrapper { display: block; height: 100px; width: 1004px; margin: 50px auto 0 auto; border: 0; } #logo { height: 100px; width: 650px; float: left; display: inline-block; border: 2px solid black; border-top-left-radius: 25px; border-top-right-radius: 90px; background-color: black; opacity:0.8; } #logo_image { background-color: transparent; background-image: URL('logo.png'); background-position: top left; background-repeat: no-repeat; height: 132px; width: 200px; margin-left: 20px; margin-top: -40px; text-align: center; padding-top: 80px; } #top_border_gfx { display: inline-block; float: left; height: 90px; width: 400px; background-color: black; color: white; border: 1px solid white; padding: 5px; }