1 / 21

By Tuyet Le & Madhura Pitale

By Tuyet Le & Madhura Pitale. Seating Chart with CSS3. Talk Outline. Create Rounded Corners Drop Shadow Create Gradient Buttons Multiple background images Multi-Column Layout Transform Transition. Create Rounded Corners. border -*-*-radius : [ x ] [ y ]?.

Download Presentation

By Tuyet Le & Madhura Pitale

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. By Tuyet Le & Madhura Pitale

  2. Seating Chart with CSS3

  3. Talk Outline • Create Rounded Corners • Drop Shadow • Create Gradient Buttons • Multiple background images • Multi-Column Layout • Transform • Transition

  4. Create Rounded Corners border -*-*-radius: [x] [y]? x = horizontal radius [ <length> | <%> ] y = vertical radius [ <length> | <%> ] border-top-right-radius: xy; border-top-left radius: xy; border-bottom-left-radius: xy; border-bottom-right-radius: 0;

  5. Create Rounded Corners border-radius: [x] {1,4} [ /[y] {1,4} ]? border-radius:5px 10px 10px 10px /10px 10px 5px 5px; border-radius:5px 10px /10px; border radius: 10px;

  6. Create Rounded Corners

  7. Create Rounded Corners • Safari and Chrome: • V3.0: use -webkit- prefix

  8. Talk Outline • Create Rounded Corners • Drop Shadow • Create Gradient Buttons • Multiple background images • Multi-Column Layout • Transform • Transition

  9. Drop Shadow text-shadow: xybcolor • x = horizontal offset • x < 0: left of the text • x > 0: right of the text • y = vertical offset • y < 0: above the text • y > 0: below the text • b = blur radius

  10. Drop Shadow box-shadow: xybcolor Examples: -webkit-box-shadow: -3px 3px 3px #999999; -moz-box-shadow: -3px 3px 3px #999999; text-shadow: -4px 4px 3px #999999;

  11. Seating Chart with CSS3

  12. Talk Outline • Create Rounded Corners • Drop Shadow • Create Gradient Buttons • Multiple background images • Multi-Column Layout • Transform • Transition

  13. Create Gradient Buttons • rgba(r, g, b, opacity) • background:-webkit-gradient(linear,0% 0%,0% 100%, from(rgba(255,255,255,1)),to(rgba(185,185,185,1))); • background:-moz-linear-gradient(top,rgba(255,255,255,1), rgba(185,185,185,1));

  14. Talk Outline • Create Rounded Corners • Drop Shadow • Create Gradient Buttons • Multiple background images • Multi-Column Layout • Transform • Transition

  15. Multiple background images background: <image> <position> <size> <repeat> <attachment> <box>, <image> <position> <size> <repeat> <attachment> <box>, <image> <position> <size> <repeat> <attachment> <box>, <image> <position> <size> <repeat> <attachment> <box> <color>;   OR background-image: <image>, <image>, <image>, <image>; background-repeat: <repeat>, <repeat>, <repeat>,<repeat>; background-position: <position>, <position>, <position>,<position>; /* plus any background attachment and/or box properties as needed */

  16. #example {width: 500px;height: 250px;background-image: url(decoration.png), url(ribbon.png), url(old_paper.jpg);background-repeat: no-repeat;background-position: left top, right bottom, left top;}

  17. Talk Outline • Create Rounded Corners • Drop Shadow • Create Gradient Buttons • Multiple background images • Multi-Column Layout • Transform • Transition

  18. Multi-Column Layout #multi-column { /* For Mozilla: */ -moz-column-width: 13em; -moz-column-gap: 1em; /* For WebKit: */ -webkit-column-width: 13em; -webkit-column-gap: 1em; }

  19. Multi-Column Layout #multi-column { -moz-column-count: 3; -moz-column-gap: 1em; -moz-column-rule: 1px solid black; -webkit-column-count: 3; -webkit-column-gap: 1em; -webkit-column-rule: 1px solid black; }

  20. Talk Outline • Create Rounded Corners • Drop Shadow • Create Gradient Buttons • Multiple background images • Multi-Column Layout • Transform • Transition Demo: http://ecs.fullerton.edu/~madhura/css3.html

  21. Thank you! Questions?

More Related