Website Design trend: Stereo box

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Website design is gradually becoming popular with creative trends. In fact it is very easy to implement, only need to add an additional element and unique design.

Let's see how we can achieve the effect of the stereo box, and then we'll show you some good examples.

Get ready

First prepare your page and picture, we use this picture:

  

We simply write HTML like this:

<div id= "Container" >
<img id= "logo" src= "logo.png" alt= "Lee Munroe"/>
</div>

CSS styles might look like this:

Body{background: #999;

#container {
width:960px;
Background: #fff;
margin:20px Auto;
padding:10px;
}

Here's an effect preview:

  

Set to relative positioning

When we locate the logo, we want it to be positioned relative to the container, so use relative positioning:

#container {
width:960px;
Background: #fff;
margin:20px Auto;
padding:10px;
position:relative;
}

Locate it outside the box.

Now all you have to do is position the logo and position it horizontally to make it stand out from the container.

#logo {
Position:absolute;
left:-15px;
}

Now we can see that the logo has been shown outside the box.

  

Change in Command

  

Icon Designer

  

Yoast

  

Twiistup

  

The design superhero

  

  

Hipsterist

  

Creamscoop

  

Article Source: http://www.cn8f.com/.

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.