[Write beautiful blogs] Make Our blogs more beautiful and support responsive layout!

Source: Internet
Author: User

Preface

Many of my friends asked me what software I wrote for my blog. I hope my blog page is quite interesting !!! I am very impressed. Here we will share our methods.

Customized Style

My blog has made some changes to the H1 style, added a background color to H1, and made some changes to its text. Let's look at my blog page;

The centercontent is the main body of the blog. In fact, we set a place where we can customize the style:

You can set it here. Here I write it like this:

{:;:;:;}{:;:;:;:;:;:;:;:;:;:;:;:;}

In this way, our blog will have a sense of excitement. But if this is the end, I will be weak!

Let our blog pages support responsive layout!

Add the following CSS code to the above CSS:

{:;:;:;}{:;:;:;}{:;:;:;}{:;:;}{:;}{:;} {:;} Width: 98%! Important ;}
}

Add the following code here:

<Script type = "text/javascript"> meta = document. createElement ('meta' 'name', 'viewport' 'content', 'initialwidth = device-width, initial-scale = 1' head') [0 </script>

As a result, on the mobile phone on the web page, our blog is simply responsive !!!
PS: The image width must be limited here!

Conclusion

Come on, let's build our beautiful blog together!

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.