Cascading Style Sheets Tutorial

CSDN, creating the most personality Blog layout (HTML + CSS)

  Oh, from yesterday to today, Lane has been in the Blog CSDN landscaping.    Originally, I dislike the most is the web programming, but no way, 
  Blog Buhaokan their own.    .    .    .    Therefore, HTML and CSS from 0 began a full 24-hour self-study, the layout is now done.    .    .    . 
  I have 24 hours to talk about the experience of it a little bit.    I was at the beginning of opening other people's Blog, right to see the source code, to make the analysis, 
  Internet search learning materials.    Here, on one of CSS good book: "Chinese CSS Manual", hematemesis recommended.    .    .    . 
  With CSS in the understanding about the future can live combat.    I would first talk about the source of others, 
  I find several good: CSDN own Blog into the background, add the configuration of CSS code. 
  Since that did not experience, I started to copy a few that can get results, in combination with "Chinese CSS Manual," the key is to know what is the id, class, as long as these two know that the concept of the case, in a Blog began on the board in the design of encouragement enough. 
  See here, you should not feel that they can also modify CSS Blog basis of the board of the bar, huh.    .    .    .    Below is my CSS code, 
  Blog in the first of the overall layout of CSS to a profile: 

  / * Comments related to this value is set to transparent background * / 
  . CommentsTable ( 
  Background-color: # 000; 
  ) 

  / * Hide "slogan," I have plans for their own background * / 
  . HeaderText ( 
  Display: none; 
  ) 

  / * The top of the entire Banner * / 
  . Header ( 
  Border: none; 
  Height: 200px; 
  Background: url ( "http://p.blog.csdn.net/images/p_blog_csdn_net/dl88250/260239/o_Banner_.jpg") no-repeat; 
  ) 

  / * Set up for a domain in the text * / 
  A ( 
  Font-family: Chinese Choi Wan; 
  Font-size: 17px; 
  Color: darkgreen; 
  Text-decoration: none; 
  ) 
  A: link ( 
  Color: mediumvioletred; 
  Text-decoration: none; 
  ) 
  A: visited ( 
  Color: # 990066; 
  Text-decoration: none; 
  ) 
  A: active ( 
  Color: # 660066; 
  ) A: hover ( 
  Color: # 660066; 
  Text-decoration: underline; 
  ) 

  / * Left-hand navigation bar contents * / 
  (# Leftcontent 
  Border: none; 
  Padding-top: 99; 
  Background-color: transparent; 
  ) 

  / * "Article", "book", etc. * / 
  . Listtitle ( 
  Font-family: Chinese Xing Kai; 
  Color: # 6666CC; 
  Background: none; 
  ) 

  / * Do not show WMP players, players on the settings are done in HTML * / 
  (# MediaPlayer 
  Display: none; 
  ) 

  / * The content of the entire article column * / 
  (# Centercontent 
  Padding-top: 0; 
  Font-size: 100px; 
  ) 

  / * Calendar, I now use the template with the * / 
  . CalTitle ( 
  Background-color: transparent; 
  ) 
  . CalDayHeader ( 
  Color: # 993366; 
  Font-family: Chinese Choi Wan; 
  Background-color: transparent; 
  ) 
  . Entrylist ( 
  Background-color: transparent; 
  Font-family: Chinese Xing Kai; 
  Font-size: 130%; 
  Color: green; 
  Border: none; 
  ) 

  / * Set the entire layout of the table * / 
  (Table 
  Filter: alpha (opacity = 60); 
  Border-collapse: collapse; 
  ) 

  / * CSDN Home, CSDN community, CSDN technology centres and the like, something * / 
  (# Mytopmenu 
  Display: none; 
  ) 
  (# Mylinks 
  Display: none; 
  ) 

  / * The bottom of most pages Powered by * / 
  . Footer ( 
  Display: none; 
  ) 

  / * Hide "Special Mention" * / 
  (# Csdn_zhaig_ad_yahoo 
  Display: none; 
  ) 

  / * Main page * / 
  Body ( 
  Background: url ( "http://p.blog.csdn.net/images/p_blog_csdn_net/dl88250/260239/o_% e8% 83% 8c% e6% 99% af.jpg"); 
  Cursor: url ( 'http://webme.bokee.com/inc/mouse020.ani'); 
  Font-size: 0.8em; 
  Font-family: Geneva, Arial, Helvetica, sans-serif; 
  ) 

  / * Comment column related * / 
  (# Comments 
  Padding-left: 40px; 
  Font-size: 10pt; 
  Background-color: # 000; 
  ) 
  (# CommentForm 
  Background-color: # 000; 
  Width: 500; 
  Background: url ( "http://p.blog.csdn.net/images/p_blog_csdn_net/dl88250/260239/o_% e8% af% 84% e8 ba%%% ae e8% 83% 8c% e6% 99% af . gif 
  ") No-repeat;) 

  / * Bulletin Board * / 
  . NewsItem ( 
  Font-family: Chinese Xing Kai; 
  Color: red; 
  ) 

  / * All img map * / 
  Img ( 
  Filter: invert (); 
  ) 

  / * Text article * / 
  . Post ( 
  Border: dotted # 663333; 
  Background-color: # 000; 
  Padding-bottom: 5px; 
  Padding-top: 5px; 
  Line-height: 120%; 
  Color: chocolate; 
  ) 
  . PostFoot ( 
  Color: # 33CCFF; 
  ) 
  / * Article * Abstract / 
  . PostText ( 
  Color: chocolate; 
  ) 

  The above code is that I now use this CSS, can be both the first in their own CSS look at the effect of amending box it ^ ^ 
  Blog is now on the CSS should be about how to have a understanding.    I think landscaping Blog most important thing is to look at their own 
  Blog code.    It can be, first opened its home page, right to see source.    Especially when we look at class and id idea 
  These two keywords, these two concepts on the details please refer to the "Chinese CSS manuals."    Whatever the first to find 
  Id class or put on the background to see what effect, huh.    .    .    . 

  Well, on the CSS can be modified during a paragraph, below the pendant Add to talk about HTML.    My Blog, which is mainly used in a transparent goldfish Flash, a WMP player and one watches.    Code as follows: 

  <EMBED align = right height = 200 = 700width 
  Src = http://imgfree.21cn.com/free/flash/17.swf style = "LEFT: 10px; POSITION: absolute; TOP:-70px" width = 700; quality = "high" wmode = "transparent"> 
  <font Size=4> 
  <object Classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" id="MediaPlayer" width="200" height="65"> 
  <param Name="ShowStatusBar" value="-1"> 
  <param Name="Volume" value="1"> 
  <param Name="Filename" value="http://www.sy53.com/mp3/brave.mp3"> 
  <Embed type = "application / x-oleobject" codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab # Version = 5,1,52701" flename = "wmv" src = "http://www.wangyanpiano.com/file/Tears0372.wma" 
  Width = "185" height = "80"> </ embed> </ object> 
  <EMBED SRC=http://bbs.smgbb.cn/Skins/Default/clock.swf WIDTH=170 HEIGHT=190 wmode=transparent quality=high loop=true menu=false> 

  Copy the code can be directly past, when adjusted to show that the size will be able to use the.    Here, we must remind is not put too much of the Flash, a CPU consumption drops.    .    .    . 
  Well, my brief CSDN Guide to beautify the Blog here ended, and I wish you all have a personality of the Blog! 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: css layout, div css layout, div layout, html, layout examples, w3c html

Releated Posts

  • Rational use HTML tags to CSS layout
  • HTML thorough analysis (4) layout marking
  • Making Guide website: CSS page layout realization
  • CSS primary entry: (1) The overall layout statement
  • CSS: Beyond the layout grid

This entry was posted on Wednesday, December 5th, 2007 at 12:00 am and is filed under Css+Div Web Design. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« AJAX version of the browser
Web production skills —— DIV CSS style tags in the application design »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial