How to add the banner button to the DW

Source: Internet
Author: User
This time to bring you how to add the banner button in the DW, add the banner button in the DW note what, here is the actual case, take a look.

1, prepare a banner material, put in the IMG picture library

2. Open Dreamweaver software,CTRL + N create a new HTML file and save

3. Build Content box and set class name in body

<p class= "banner" ><input type= "button" value= "left"  class= "Bt_left" >    <input type= "button" value= "right" class= "Bt_right" ></p>

Include the picture and two arrow keys in a large box, and then position the left and right positions

4. Add the style tag to the head and set the value of the banner property to the width:

<style>.banner{width:1200px;height:300px;margin:0 Auto;overflow:hidden;}. Banner img{width:100%;} </style>

5, the large frame banner set to relative positioning, set the left button absolute positioning, and set the location

. bt_left{position:absolute;top:50%;left:20px;}

6. Set the absolute positioning of the right button and set the position

. bt_right{position:absolute;top:50%;right:20px;}

Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!

Recommended reading:

20 CSS code usage precautions in front-end combat project

Using pure CSS3 to intercept strings

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.