My styles will still make that a nice monospace font, size it to be the same as the header, but not apply the background color and padding stuff I like for code within text. One thing this helps with is, say, this: The. On this site right now (v18), I apply some modest styles and scope some of them within textual elements: /* For all */įont-family: MyFanc圜ustomFont, monospace * It seems less common and more annoying to do this: */ * Or maybe scope it to something like: */ It’s just one of those elements where it seems far more natural to just use it raw, as opposed to resetting it to no styles and opting into styles with a class. It’s likely something that you’ll style with the tag itself as well in your stylesheets. It has default (user agent) styles that apply a monospace font-family, which feels like a fine default (as it’s true, most code is looked at in monospace). It is an inline-by-default element that denotes any sort of code. I literally just used it to wrap that tag in the previous sentence - so meta.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |