1 / 31

ECA 228 Internet/Intranet Design I

ECA 228 Internet/Intranet Design I. Cascading Style Sheets. background-color. background-color: <color value>. body { background-color: red; }. background-image. background-image: <url> | none. body { background-image:url( imageName.gif); }. background-repeat.

caelan
Download Presentation

ECA 228 Internet/Intranet Design I

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. ECA 228 Internet/Intranet Design I Cascading Style Sheets

  2. background-color • background-color: <color value> body { background-color: red; } ECA 228 Internet/Intranet Design I

  3. background-image • background-image: <url> | none body { background-image:url( imageName.gif); } ECA 228 Internet/Intranet Design I

  4. background-repeat • background-repeat: repeat | repeat-x | repeat-y | no-repeat body { background-repeat: repeat-x; } ECA 228 Internet/Intranet Design I

  5. background-attachment • background-attachment: scroll | fixed body { background-attachment: scroll; } ECA 228 Internet/Intranet Design I

  6. border-color • border-color: <color value> p.box { border-color: #ff0000; } ECA 228 Internet/Intranet Design I

  7. border-style • border-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset p.box { border-style: groove; } ECA 228 Internet/Intranet Design I

  8. border-width • border-width: thin | medium | thick | <length> p.box { border-width: thin; } ECA 228 Internet/Intranet Design I

  9. color • color: <color value> h3 { color: red; } ECA 228 Internet/Intranet Design I

  10. float • float: left | right | none img.floatExample { float: right; } ECA 228 Internet/Intranet Design I

  11. font-family • font-family: <specific family> | <generic family> h2 { font-family: Helvetica, Arial, sans-serif; } ECA 228 Internet/Intranet Design I

  12. font-style • font-style: normal | italic | oblique p.italic { font-style: italic; } ECA 228 Internet/Intranet Design I

  13. font-size • font-size: <length> | <percentage> | <absolute-size> | <relative-size> p.sizeExample { font-size: 2em; } ECA 228 Internet/Intranet Design I

  14. font-variant • font-variant: small-caps | none .sml { font-variant: small-caps; } ECA 228 Internet/Intranet Design I

  15. font-weight • font-weight: normal | bold | bolder | lighter | numeric values 1 - 9 p.bold { font-weight: bold; } ECA 228 Internet/Intranet Design I

  16. letter-spacing • letter-spacing: <length> p { letter-spacing: 0.4em; } ECA 228 Internet/Intranet Design I

  17. line-height • line-height: <multiplier> | <percentage> | <absolute value> p { line-height: 1.5em; } ECA 228 Internet/Intranet Design I

  18. list-style-type • list-style-type: disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-alpha | upper-alpha | none ul { list-style-type: square; } ol ol { list-style-type: lower-roman; } ECA 228 Internet/Intranet Design I

  19. list-style-image • list-style-image: <url> | none ol { list-style-type: url( imageName.gif ); } ECA 228 Internet/Intranet Design I

  20. list-style-position • list-style-position: inside | outside ol { list-style-position: inside; } ECA 228 Internet/Intranet Design I

  21. margin • margin: <length> | <percentage> ( margin-left, margin-top, margin-right, margin-bottom) h1 { margin-top: .5em; } ECA 228 Internet/Intranet Design I

  22. padding • padding: <length> | <percentage> ( padding-left, padding-top, padding-right, padding-bottom) h1 { padding-top: 2em; } ECA 228 Internet/Intranet Design I

  23. position • position: relative | absolute | left | top | right | bottom .imagePosition { position: absolute; left: 0px; top: 0px; } ECA 228 Internet/Intranet Design I

  24. text-align • text-align: left | right | center | justify td { text-align: right; } ECA 228 Internet/Intranet Design I

  25. text-indent • text-indent: <length> | <percentage> p { text-indent: 3em; } ECA 228 Internet/Intranet Design I

  26. text-decoration • text-decoration: none | underline | overline | line-through | blink a:hover { text-decoration: underline; } ECA 228 Internet/Intranet Design I

  27. text-transform • text-transform: capitalize | uppercase | lowercase | none ul { text-transform: capitalize; } ECA 228 Internet/Intranet Design I

  28. vertical-align • vertical-align: baseline | sub | super | top | middle | bottom | text-top | text-bottom td { vertical-align: top; } ECA 228 Internet/Intranet Design I

  29. white-space • white-space: <pre> | <nowrap> | <normal> #toc { white-space: nowrap; } ECA 228 Internet/Intranet Design I

  30. word-spacing • word-spacing: <length> p { word-spacing: 0.4em; } ECA 228 Internet/Intranet Design I

  31. z-index • z-index: <integer>higher numbers are higher in the stack .topImage { z-index: 4; } ECA 228 Internet/Intranet Design I

More Related