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.
- C#
.dxImageLeftInText,
.dxImageLeftInTextWrapper
{
margin-right:0.8em;
margin-bottom:0.8em;
}
.dxImageRightInText,
.dxImageRightInTextWrapper
{
margin-left:0.8em;
margin-bottom:0.8em;
}
.dxImageMiddle,
.dxImageLeft,
.dxImageRight,
.dxImageNoAlign,
.dxImageLeftWrapper,
.dxImageRightWrapper,
.dxImageLeftInTextWrapper,
.dxImageRightInTextWrapper,
.dxImageImageMiddleWrapper,
.dxImageNoAlignWrapper
{
margin-bottom:0.8em;
}
.dxImageLeftWrapper .dxImageLeft,
.dxImageRightWrapper .dxImageRight,
.dxImageLeftInTextWrapper .dxImageLeftInText,
.dxImageRightInTextWrapper .dxImageRightInText,
.dxImageMiddleWrapper .dxImageMiddle,
.dxImageNoAlignWrapper .dxImageNoAlign
{
margin:0px;
}
.dxImageText
{
font-family:Verdana, Sans-Serif;
font-size:60%;
margin:0em 0em 0em 0em;
padding:0em 0em 0.1 0em;
line-height:1.2em;
}
Exempel-styles för bilder i tabell-layout och bildspel:
- C#
.dxImagesGridItemText,
.dxPageNav,
.dxImageSlideShowStatus
{
font-family: Verdana, Sans-Serif;
font-size:0.65em;
padding-bottom:5px;
margin-bottom: 0px;
}
.dxImagesGridItemInner
{
background-color:#eeeeee;
margin:4px;
}
.dxPageNav a
{
font-family:verdana;
font-weight:bold;
text-decoration:none;
color:#3177d6;
}
.dxImageSlideShowStatus
{
text-align:right;
margin-top:12px;
}
.dxImagesSlideShowControlPanel
{
height:24px;
}