Menu
Just make sure to use the selector li > * and not li *, if you only want to style block level descendants as regular, but not also inlines like "foo bold word foo. (Check the list item 4 here which is ol/li/code and not ol/li/p/code here.) If you prefer a more generic approach (that would also cover other scenarios like s with descendants other than, you might want to use li > * instead of li > p: This would be also preferable from an IA point of view, especially when s can contain sub-lists (to avoid mixing text nodes with block level elements). Another easy possibility would be to wrap the list item content into a, style the as bold and the as regular.
0 Comments
Leave a Reply. |