back to CanAdapt home


Definition list inline with bullets

Success Criterion 1.4.6 Contrast (Enhanced)§

(Level AAA)

The visual presentation of text and images of text has a contrast ratio of at least 7:1, except for the following:

Large Text:

Large-scale text and images of large-scale text have a contrast ratio of at least 4.5:1;

Incidental:

Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.

Logotypes:

Text that is part of a logo or brand name has no contrast requirement.




CSS for it

dt.sc {
float: left;
clear: left;
margin-right: 5px;
font-weight: bold;
padding-left: 20px;
background: url(https://www.davidmacd.com/images/list-item.png) no-repeat left center;
}

dd.sc {
margin-left: 0px;

}



gm


My first attempt: not as good

I put an unordered list around the definition list. It was a bit hacky but I'll leave it here in case its a useful for something.

Success Criterion 1.4.6 Contrast (Enhanced)§

(Level AAA)

The visual presentation of text and images of text has a contrast ratio of at least 7:1, except for the following: