Bild

Exempel på en bild

 

Med innehållstypen bild kan redaktörer lägga ut bilder i sektioner.

Det är inte mycket du behöver tänka på som utvecklare för att komma igång med denna innehållstyp.

Det finns lite olika style-klasser som man anger för olika justeringar. Detta för att text få en snygg marginal runt bilder.

  • dxImageMiddle (display:block;margin-left:auto;margin-right:auto;text-align:center)

  • dxImageLeftInText (float:left)

  • dxImageLeft (float:left) + <br clear="all" />

  • dxImageRightInText (float:right)

  • dxImageRight (float:right) + <br clear="all" />

  • dxImageNoAlign

Exempel på styles för bild.

  1. C#
  1. .dxImageLeftInText,
  2. .dxImageLeftInTextWrapper
  3. {
  4. margin-right:0.8em;
  5. margin-bottom:0.8em;
  6. }
  7. .dxImageRightInText,
  8. .dxImageRightInTextWrapper
  9. {
  10. margin-left:0.8em;
  11. margin-bottom:0.8em;
  12. }
  13. .dxImageMiddle,
  14. .dxImageLeft,
  15. .dxImageRight,
  16. .dxImageNoAlign,
  17. .dxImageLeftWrapper,
  18. .dxImageRightWrapper,
  19. .dxImageLeftInTextWrapper,
  20. .dxImageRightInTextWrapper,
  21. .dxImageImageMiddleWrapper,
  22. .dxImageNoAlignWrapper
  23. {
  24. margin-bottom:0.8em;
  25. }
  26. .dxImageLeftWrapper .dxImageLeft,
  27. .dxImageRightWrapper .dxImageRight,
  28. .dxImageLeftInTextWrapper .dxImageLeftInText,
  29. .dxImageRightInTextWrapper .dxImageRightInText,
  30. .dxImageMiddleWrapper .dxImageMiddle,
  31. .dxImageNoAlignWrapper .dxImageNoAlign
  32. {
  33. margin:0px;
  34. }
  35. .dxImageText
  36. {
  37. font-family:Verdana, Sans-Serif;
  38. font-size:60%;
  39. margin:0em 0em 0em 0em;
  40. padding:0em 0em 0.1 0em;
  41. line-height:1.2em;
  42. }

Exempel-styles för bilder i tabell-layout och bildspel:

  1. C#
  1. .dxImagesGridItemText,
  2. .dxPageNav,
  3. .dxImageSlideShowStatus
  4. {
  5. font-family: Verdana, Sans-Serif;
  6. font-size:0.65em;
  7. padding-bottom:5px;
  8. margin-bottom: 0px;
  9. }
  10. .dxImagesGridItemInner
  11. {
  12. background-color:#eeeeee;
  13. margin:4px;
  14. }
  15. .dxPageNav a
  16. {
  17. font-family:verdana;
  18. font-weight:bold;
  19. text-decoration:none;
  20. color:#3177d6;
  21. }
  22. .dxImageSlideShowStatus
  23. {
  24. text-align:right;
  25. margin-top:12px;
  26. }
  27. .dxImagesSlideShowControlPanel
  28. {
  29. height:24px;
  30. }