HTML and csss implement simple blog code sharing

Source: Internet
Author: User

This article mainly to share with you HTML and CSSS implementation of simple blog Code, hope to help you with HTML and CSS to complete a simple blog.

Over-animation

-webkit-transition:color 200ms;  -o-transition:color 200ms;  Transition:color 200ms;

Shadow

-webkit-box-shadow:0 0 3px 2px rgba (0,0,0,.2);
box-shadow:0 0 3px 2px rgba (0,0,0,.2);

CSS Code

. side-bar{  Float:left;  width:20%;}. main{  float:right;  width:80%;  Color: #555;} a{  Text-decoration:none;} A, body{  color: #eee;} body{  background: #454545;  line-height:1.5;}. header. logo{  padding:10px 20px;  font-size:30px;  Display:inline-block;  border:5px solid #eee;  margin-bottom:10px;  Line-height:1;}. Side-bar > *{  padding:10px 15px;}. Side-bar. Nav a,.side-bar. tag-list a{  display:block;  padding:5px;  Color: #777;}. Side-bar. Nav a:hover,.side-bar. Tag-list a:hover{  Transition:  color: #eee;}. Side-bar. Nav a,.side-bar. tag-list a{  font-weight:700;}. article-list{  margin-right:30%;  Background: #fff;  padding:20px 30px;}. Article-list. Item. title{  font-size:  22px;  font-weight:700;  Color: #454545;}. Article-list. Item. status{  font-size:17px;  Color: #ccc;}. Article-list. item>*{  margin:  10px 0px;}. Article-list. item{  margin-bottom:20px;}

HTML code

<! DOCTYPE html>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.