Question: How to Implement the html layout of an altar friend?

Source: Internet
Author: User

Question: How to Implement the html layout of an altar friend?

Source: http://www.ido321.com/888.html

Requirements of altar friends

This is similar to the implementation of the friend category menu.

Html:

   1: <body>
   2:     <div class="test">
   3:         <div>
   4:             
5: 
6: <span> <a href = "#"> edit </a> <a href = "#"> Delete </a> </span>
   7:         </div>
   8:         <div>
   9:             
10: 
11: <span> <a href = "#"> edit </a> <a href = "#"> Delete </a> </span>
  12:         </div>
  13:         <div>
  14:             
15: 
16: <span> <a href = "#"> edit </a> <a href = "#"> Delete </a> </span>
  17:         </div>
  18:     </div>
  19: </body>
Css:
   1: *
   2: {
   3:     margin: 0 auto;
   4: }
   5: .test
   6: {
   7:     width: 400px;
   8:     height: 500px;
   9:     border: 1px solid black;
  10: }
  11: .test div
  12: {
  13:     border-bottom: 2px solid #ccc;
  14:     height: 150px;
  15:     width: 350px;
  16:     margin-top: 10px;
  17:     margin-bottom: 5px;
  18:     position: relative;
  19: }
  20: h3
  21: {
  22:     position: absolute;
  23:     left: 155px;
  24:     top: 55px;
  25: }
  26: span
  27: {
  28:     position: absolute;
  29:     top: 58px;
  30:     left: 250px;
  31:     font-weight: bold;
  32: }
  33: a{
  34:     color: #000;
  35:     text-decoration: none;
  36: }
  37: a:hover
  38: {
  39:     color: #000;
  40:     text-decoration: none;
  41: }

Effect:



100 !! Write an html div layout!

It's you again... I already answered the original one and posted it again.

<Div id = "wrapper">

<Div id = "header"> </div>

<Div id = "left" style = "float: left; width: 70%"> </div>

& Lt; div id = "right" style = "float: right; width: 29% & gt;
<Div id = "right_top"> </div>
<Div id = "right_center"> </div>
<Div id = "right_bottom"> </div>
</Div>

<Div id = "footer" style = "clear: both"> </div>
</Div>

The label of the body is omitted, and the subject is the above.

Webpage layout code of html + css

<Div class = "biankuang" style = "width: 1024px; height: 768px">
<Div class = "dingbu" style = "width: 100%; height: 30px;"> top </div>
<Div class = "zuobu" style = "width: 200px; height: 100%; float: left;"> left </div>
<Div class = "youbu" style = "width: 100%; height: 100%; float: left;"> right </div>
</Div>

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.