typography

Using CSS, is there any way to display different characters using different font?

半腔热情 提交于 2021-02-16 11:54:20
问题 My HTML text is just like this: <p>abcdefghijklmnopqrstuvwxyz</p> What I want is to display a-n using "Times New Roman", and display o-z using "Courier New", and this should be done using CSS, say, with no change to the HTML text. Simply stated, I want CSS to automatically choose the specified font corresponding to which character it is. a-n should be displayed using "Times New Roman"; o-z shoule be displayed using "Courier New". Is there any way to accomplish this? If this problem can be

Using CSS, is there any way to display different characters using different font?

删除回忆录丶 提交于 2021-02-16 11:53:07
问题 My HTML text is just like this: <p>abcdefghijklmnopqrstuvwxyz</p> What I want is to display a-n using "Times New Roman", and display o-z using "Courier New", and this should be done using CSS, say, with no change to the HTML text. Simply stated, I want CSS to automatically choose the specified font corresponding to which character it is. a-n should be displayed using "Times New Roman"; o-z shoule be displayed using "Courier New". Is there any way to accomplish this? If this problem can be

Font messes up alignment of numbers

社会主义新天地 提交于 2020-12-29 10:15:41
问题 I'm using the Raleway font, but this font doesn't align numbers properly with letters. You can see this in this snippet: h1 { font-family: Raleway; font-size: 2rem; border-bottom: 1px solid $text-color; border-top: 1px solid $text-color; padding: 2rem 0; } <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <h1>5 Comments</h1> Can I solve this easily? Or is this just a faulty font and should I chose another one? 回答1: The Problem This is part of the

Font messes up alignment of numbers

旧城冷巷雨未停 提交于 2020-12-29 10:15:14
问题 I'm using the Raleway font, but this font doesn't align numbers properly with letters. You can see this in this snippet: h1 { font-family: Raleway; font-size: 2rem; border-bottom: 1px solid $text-color; border-top: 1px solid $text-color; padding: 2rem 0; } <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <h1>5 Comments</h1> Can I solve this easily? Or is this just a faulty font and should I chose another one? 回答1: The Problem This is part of the

Font messes up alignment of numbers

柔情痞子 提交于 2020-12-29 10:15:03
问题 I'm using the Raleway font, but this font doesn't align numbers properly with letters. You can see this in this snippet: h1 { font-family: Raleway; font-size: 2rem; border-bottom: 1px solid $text-color; border-top: 1px solid $text-color; padding: 2rem 0; } <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <h1>5 Comments</h1> Can I solve this easily? Or is this just a faulty font and should I chose another one? 回答1: The Problem This is part of the

Font messes up alignment of numbers

不羁岁月 提交于 2020-12-29 10:14:50
问题 I'm using the Raleway font, but this font doesn't align numbers properly with letters. You can see this in this snippet: h1 { font-family: Raleway; font-size: 2rem; border-bottom: 1px solid $text-color; border-top: 1px solid $text-color; padding: 2rem 0; } <link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> <h1>5 Comments</h1> Can I solve this easily? Or is this just a faulty font and should I chose another one? 回答1: The Problem This is part of the

vue 3 组件库(基于 element-ui 修改)

為{幸葍}努か 提交于 2020-10-01 02:40:13
(wip)Element-UI 3 (Ale-UI) for vue3 这是一个基于 element-ui 修改的,支持 Vue 3 的组件库,你可以叫它 element3,也可以叫它 Ale (爱了)。 目前 0.1.0 版本已经发布到 github,完成了 17 个组件的修改。 不过一个人力量有限,所以在希望可以得到更多的开发支持,非常欢迎各位大神可以 star 和 commit 提交 请注意代码规范(项目内嵌了 prettier)。 提交前请先拉取代码,以免产生不必要的冲突 提交规范: key: value 。比如:重构了 button 按钮 -> refactor: refactor button key 可选 : feat:新功能(feature) fix:修补bug docs:文档(documentation) style: 格式(不影响代码运行的变动) refactor:重构(即不是新增功能,也不是修改bug的代码变动) test:增加测试 chore:构建过程或辅助工具的变动 release: 发布 已移植组件 - Layout 布局 - Container 布局容器 - Color 色彩 - Typography 字体 - Border 边框 - Icon 图标 - Button 按钮 - Link 文字链接 - Radio 单选框 - Checkbox 多选框

CSS text ending indentation

耗尽温柔 提交于 2020-07-03 03:23:09
问题 I'm trying to achieve the red highlighted effect with CSS. The first row to be the longest, the second shorter and so on. https://codepen.io/make96/pen/QmMJyx I'm using Jade and SASS and below is my code: #section min-height: auto width: 100vw background: black .content margin: 0 auto padding: 7vh 0 width: 52vw //border: 1px solid white position: relative h1,h2 color: #c9d0d4 font-family: 'Helvetica Neue', sans-serif font-size: 1.2em font-weight: 100 letter-spacing: 1px padding: 0 margin

H1-H6 font sizes in HTML

时光毁灭记忆、已成空白 提交于 2020-05-24 08:02:52
问题 In HTML (and in typography in general, I suppose), there appears to be some defined sizes for H1-H6 -elements. Ie., if the baseline font size is 16px (or 100%), then h1 (w/c)ould be 2.25em (36px). And H2 (w/c)ould be 1.5em (24px). Et cetera. Where do these variables come from? The H1=36px, H2=24px, H3=21px, H4=18px, H5=16px, H6=14px, that is. (or, if you like, H1=2em, H2=1.5em, H3=1.17em, etc., the point isn't the numbers themselves, but the relation between them) Is there some mathematical

H1-H6 font sizes in HTML

允我心安 提交于 2020-05-24 08:02:45
问题 In HTML (and in typography in general, I suppose), there appears to be some defined sizes for H1-H6 -elements. Ie., if the baseline font size is 16px (or 100%), then h1 (w/c)ould be 2.25em (36px). And H2 (w/c)ould be 1.5em (24px). Et cetera. Where do these variables come from? The H1=36px, H2=24px, H3=21px, H4=18px, H5=16px, H6=14px, that is. (or, if you like, H1=2em, H2=1.5em, H3=1.17em, etc., the point isn't the numbers themselves, but the relation between them) Is there some mathematical