1 / 32

Applied Online Programming

ECA 225. Applied Online Programming. Cascading Style Sheets, pt 2. background-color. background-color: <color value>. body { background-color: red; }. background-image. background-image: <url> | none. body { background-image:url( imageName.gif); }. background-repeat.

patty
Download Presentation

Applied Online Programming

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 225 AppliedOnline Programming Cascading Style Sheets, pt 2

  2. background-color • background-color: <color value> body { background-color: red; } ECA225 Applied Interactive Programming

  3. background-image • background-image: <url> | none body { background-image:url( imageName.gif); } ECA225 Applied Interactive Programming

  4. background-repeat • background-repeat: repeat | repeat-x | repeat-y | no-repeat body { background-repeat: repeat-x; } ECA225 Applied Interactive Programming

  5. background-attachment • background-attachment: scroll | fixed body { background-attachment: scroll; } ECA225 Applied Interactive Programming

  6. border-color • border-color: <color value> p.box { border-color: #ff0000; } ECA225 Applied Interactive Programming

  7. border-style • border-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset p.box { border-style: groove; } ECA225 Applied Interactive Programming

  8. border-width • border-width: thin | medium | thick | <length> p.box { border-width: thin; } ECA225 Applied Interactive Programming

  9. color • color: <color value> h3 { color: red; } ECA225 Applied Interactive Programming

  10. display • display: none | block | inline | list-item a { display: block; } ECA225 Applied Interactive Programming

  11. float • float: left | right | none img.floatExample { float: right; } ECA225 Applied Interactive Programming

  12. font-family • font-family: <specific family> | <generic family> h2 { font-family: Helvetica, Arial, sans-serif; } ECA225 Applied Interactive Programming

  13. font-style • font-style: normal | italic | oblique p.italic { font-style: italic; } ECA225 Applied Interactive Programming

  14. font-size • font-size: <length> | <percentage> | <absolute-size> | <relative-size> p.sizeExample { font-size: 2em; } ECA225 Applied Interactive Programming

  15. font-variant • font-variant: small-caps | none .sml { font-variant: small-caps; } ECA225 Applied Interactive Programming

  16. font-weight • font-weight: normal | bold | bolder | lighter | numeric values 1 - 9 p.bold { font-weight: bold; } ECA225 Applied Interactive Programming

  17. letter-spacing • letter-spacing: <length> p { letter-spacing: 0.4em; } ECA225 Applied Interactive Programming

  18. line-height • line-height: <multiplier> | <percentage> | <absolute value> p { line-height: 1.5em; } ECA225 Applied Interactive Programming

  19. 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; } ECA225 Applied Interactive Programming

  20. list-style-image • list-style-image: <url> | none ol { list-style-type: url( imageName.gif ); } ECA225 Applied Interactive Programming

  21. list-style-position • list-style-position: inside | outside ol { list-style-position: inside; } ECA225 Applied Interactive Programming

  22. margin • margin: <length> | <percentage> ( margin-left, margin-top, margin-right, margin-bottom) h1 { margin-top: .5em; } ECA225 Applied Interactive Programming

  23. padding • padding: <length> | <percentage> ( padding-left, padding-top, padding-right, padding-bottom) h1 { padding-top: 2em; } ECA225 Applied Interactive Programming

  24. position • position: relative | absolute | left | top | right | bottom .imagePosition { position: absolute; left: 0px; top: 0px; } ECA225 Applied Interactive Programming

  25. text-align • text-align: left | right | center | justify td { text-align: right; } ECA225 Applied Interactive Programming

  26. text-indent • text-indent: <length> | <percentage> p { text-indent: 3em; } ECA225 Applied Interactive Programming

  27. text-decoration • text-decoration: none | underline | overline | line-through | blink a:hover { text-decoration: underline; } ECA225 Applied Interactive Programming

  28. text-transform • text-transform: capitalize | uppercase | lowercase | none ul { text-transform: capitalize; } ECA225 Applied Interactive Programming

  29. vertical-align • vertical-align: baseline | sub | super | top | middle | bottom | text-top | text-bottom td { vertical-align: top; } ECA225 Applied Interactive Programming

  30. white-space • white-space: <pre> | <nowrap> | <normal> #toc { white-space: nowrap; } ECA225 Applied Interactive Programming

  31. word-spacing • word-spacing: <length> p { word-spacing: 0.4em; } ECA225 Applied Interactive Programming

  32. z-index • z-index: <integer>higher numbers are higher in the stack .topImage { z-index: 4; } ECA225 Applied Interactive Programming

More Related