Oldalak

Sunday, June 19, 2016

Advenced backround example with CSS





Advenced backround example with CSS

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Advenced backround example</title>

<style>
   
    body{
        margin-left:200px;
        background:#5d9ab2;}
       
    .container{
        text-align:center;}
       
    .center_div{
        border:1px solid gray;
        margin-left:auto;
        margin-right:auto;
        width:40%;
        background-color:#d0f0f6;
        text-align:left;
        padding:10px;}


</style>



</head>

<body>

    <div class="container">
   
        <div class="center_div">
       
            <h1>Hello CSS Programmers</h1>
            <p>Advenced backround example</p>
       
        </div>
   
    </div>

</body>
</html>




No comments:

Post a Comment