A forest logo implemented using css and html

高洛峰
Release: 2016-11-24 10:58:05
Original
1197 people have browsed it

A forest logo implemented with css and html

The html code is as follows:

<div class="logo">
    <div id="tree"></div>
    <div id="trunk">
        <div id="left-branch"></div>
        <div id="right-bottom-branch"></div>
        <div id="right-top-branch"></div>
    </div>
</div> www.php.cn
Copy after login

The css code is as follows:

* {
    margin:0;
    padding:0;
}
.logo {
    height:300px;
    width:260px;
    margin:150px auto;
    position:relative;
}
#tree {
    border-bottom:300px solid #063;
    border-left:130px solid transparent;
    border-right:130px solid transparent;
    position:absolute;
    left:0;
    top:0;
    height:0;
    width:0;
}
#trunk {
    height:180px;
    width:32px;
    background:#3b543f;
    position:absolute;
    left:109px;
    bottom:-60px;
}
#left-branch {
    background:#3b543f;
    height:70px;
    width:10px;
    position:absolute;
    left:-18px;
    top:15px;
    transform:rotate(-40deg);
    -webkit-transform:rotate(-40deg);
    -moz-transform:rotate(-40deg);
    -o-transform:rotate(-40deg);
    -ms-transform:rotate(-40deg);
}
#right-bottom-branch {
    background:#3b543f;
    height:100px;
    width:10px;
    position:absolute;
    top:20px;
    left:50px;
    transform:rotate(40deg);
    -webkit-transform:rotate(40deg);
    -moz-transform:rotate(40deg);
    -o-transform:rotate(40deg);
    -ms-transform:rotate(40deg);
}
#right-top-branch {
    background:#3b543f;
    height:50px;
    width:10px;
    position:absolute;
    left:40px;
    top:0px;
    transform:rotate(40deg);
    -webkit-transform:rotate(40deg);
    -moz-transform:rotate(40deg);
    -o-transform:rotate(40deg);
    -ms-transform:rotate(40deg);
}
Copy after login


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template