Advanced CSS Techniques for Web Design

slide1 n.w
1 / 22
Embed
Share

Explore advanced CSS techniques including HTML5 semantic elements, positioning, background images, and border styling. Learn how to create responsive layouts and beautiful designs using CSS3 properties. Dive into creating menus and optimizing for SEO.

  • CSS Techniques
  • Web Design
  • HTML5
  • Responsive Layouts
  • SEO Optimization

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. CSS

  2. 1. div <div id="container"> <div id="header"> </div> <div id="content"> </div> <div id="vmenu"> </div> </div> * HTML5 Semantic Elements: http://www.w3schools.com/html/html5_semantic_elements.asp

  3. 2. div div margin div width ( %) div height div float float: left position: absolute left: xpx; top: ypx;

  4. #container { width: 720px; margin-left: auto; margin-right: auto; } <body> <div id="container"> </div> </body> : margin: 0px auto;

  5. (bg.png) #container { width:665px; margin-left:auto; margin-right:auto; background: url(bg.png) repeat-y center; position:relative; padding: 20px }

  6. tbg.png bg.png bbg.png * CSS3: border-image https://www.w3schools.com/cssref/css3_pr_border-image.asp

  7. <div id="container"> <img id="tbg" src="tbg.png" alt=""> <img id="bbg" src="bbg.png" alt=""> </div> #tbg { position: absolute; top: 0px; z-index:-1; } #bbg { position: absolute; bottom: 0px; z-index: -1; }

  8. menu <ul><li> <ul> <li><a href="http://www.ncnu.edu.tw/">NCNU</a></li> <li><a href="https://webmail.ncnu.edu.tw/"> Web Mail</a></li> <li><a href="http://www.im.ncnu.edu.tw/"> </a></li> </ul> ul list-style-type list-style-type: none

  9. menu li display display: inline a text-decoration: none; padding, margin, border a:hover text-decoration: none; padding, margin, border

  10. menu a display display: block a width text-align a text-decoration: none; padding, margin, border a:hover text-decoration: none; padding, margin, border

  11. Examples menu1.html menu.html

  12. displayinline, block, inline-block https://www.w3schools.com/CSSref/pr_class_display.asp p.ex1 {display: none;} p.ex2 {display: inline;} p.ex3 {display: block;} p.ex4 {display: inline-block;} block, inline-block (width) (height) inline https://www.w3schools.com/CSSref/tryit.asp?filename=trycss_display

  13. Drop Down Menu https://ycchen.im.ncnu.edu.tw/www2011/lab/ddmenu1.html https://ycchen.im.ncnu.edu.tw/www2011/lab/ddmenu2.html

  14. https://ycchen.im.ncnu.edu.tw/www2011/lab/cursor.html <ul id="menu"> <li><span>Portal</span> <ul class="menu2"> <li><a href="#">Google</a></li> <li><a href="#">Yahoo!</a></li> <li><a href="#">HiNet</a></li> </ul> </li> <li><span>Web Technology</span> <ul class="menu2"> <li><a href="#">W3Schools</a></li> <li><a href="#">W3C</a></li> <li><a href="#">Web Prog</a></li> </ul> </li> <li><span>News</span> <ul class="menu2"> <li><a href="#">Yam News</a></li> <li><a href="#">Yahoo News</a></li> <li><a href="#">CNN</a></li> </ul> </li> </ul> ul { list-style: none } #menu > li { display: inline; position: relative; cursor: pointer } .menu2 { display: none; position: absolute; top: 22px; left: -40px } .menu2 li { display: block; line-height:24pt; width:150px } #menu li:hover .menu2 { display: block }

  15. span { background-color: #363; color: ivory; padding: 4px 20px } li a { display: inline-block; text-decoration: none; background-color: #363; color: ivory; width:120px; padding-left:15px; margin-top:1px } a:hover, span:hover { background-color: #393; color: white; }

  16. CSS Menu Generator ({CSS} Portal) http://www.cssportal.com/css-menu-generator/ CSS Menu Generator: http://www.cssmenumaker.com/ CSS Menu Builder http://www.cssmenubuilder.com/

  17. http://colorschemedesigner.com/ https://kuler.adobe.com/ http://colourco.de/ http://color.hailpixel.com/

  18. CSS Advanced https://www.w3schools.com/css/default.asp CSS 2D Transforms https://www.w3schools.com/css/css3_2dtransforms.asp CSS 3D Transforms https://www.w3schools.com/css/css3_3dtransforms.asp CSS Transitions https://www.w3schools.com/css/css3_transitions.asp CSS Animations https://www.w3schools.com/css/css3_animations.asp

  19. CSS Animation Examples https://ycchen.im.ncnu.edu.tw/MothCube/ https://blog.hubspot.com/website/css- animation-examples https://www.w3schools.com/css/css3_anim ations.asp

Related


More Related Content