font-size

Why does user agent stylesheet override my styles? [closed]

馋奶兔 提交于 2019-12-18 03:01:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I want a font-size of a 11, but Chrome and Firefox are giving me 16. When I examine the element in Chrome I see and look at the computed property I see: font-size: 16px; table - medium user agent stylesheet Style Attribute - 11px table - medium user agent stylesheet .v11gray - 11px style.css Under computed

How can I override the minimum-font-size in Firefox?

依然范特西╮ 提交于 2019-12-17 23:45:04
问题 My site displays just like in need in IE and Opera, but in Firefox I can't get (via CSS) to have font sizes smaller than Firefox' default minimum-font-size. Of course I can go to Tools>Options and remove this value, but other users will see some of the elements displaced. I have tried using !important, but it doesn't work. And I can't substitute the text by images, they are dynamic fields. 回答1: Okay. I'm going to explain how you do this, but you need to know a few things first. 1. You shouldn

CSS Font Size Specifics

天涯浪子 提交于 2019-12-17 20:26:17
问题 I have a couple of specific questions about font size: Is pt (I.E. 12pt) standardized? I think I read somewhere that pt = 1/72 of an inch. However, the size of 24pt font in photoshop is significantly different from size 24pt font in css. What exactly does font-size determine? Is it a sort of unstandardized arbitrary description about letter size or does it actually refer to the specific height or width attribute of letters? Thanks Stack! 回答1: font-size is the baseline height of the font (the

CSS font size: relative vs. absolute values. Which to use? [closed]

一曲冷凌霜 提交于 2019-12-17 18:27:12
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . What's the best way to size text across browsers? What are the advantages and disadvantages of defining font size in pixels / em? 回答1: Which to use? Both. Relative for main body text that users are going to have to read a lot of (so they'll want to be able to read it comfortably);

How to change Bootstrap's global default font size?

南笙酒味 提交于 2019-12-17 17:39:12
问题 Bootstrap's global default font-size is 14px, with a line-height of 1.428. How can I change its default global settings? Will I have to change bootstrap.min.css in all the multiple entries? 回答1: There are several ways but since you are using just the CSS version and not the SASS or LESS versions, your best bet to use Bootstraps own customization tool: http://getbootstrap.com/customize/ Customize whatever you want on this page and then you can download a custom build with your own font sizes

Create single size dynamic UILabel font

五迷三道 提交于 2019-12-17 17:16:22
问题 We all know how to create dynamic UILabel font(Single Line) - lbl.adjustsFontSizeToFitWidth = true lbl.numberOfLines = 1 lbl.minimumScaleFactor = 0.1 lbl.baselineAdjustment = UIBaselineAdjustment.AlignCenters lbl.textAlignment = NSTextAlignment.Center The problem is that it gives different results for each given string. So for example if i have a string "Hello" and "Hello World" the calculated font size will be different.I need to create dynamic font with a single size for all strings.

How to properly use css-values viewport-relative-lengths?

和自甴很熟 提交于 2019-12-17 17:11:58
问题 As per Is there a way to up-size the font with CSS to fit the screen?, it's possible to use css3-values/#viewport-relative-lengths (dev3, dev), vw , vh , vmin , vmax , to make the document more fluid. However, coming from the conservative side, I'd like to ensure that my desire to fit the screen on larger displays doesn't do harm on smaller ones. I know that with <meta name = 'viewport' content = 'width = device-width' /> and the implicit font-size: 1em; , I'm supposed to be guaranteed that

Font size extremely small on mobile devices

十年热恋 提交于 2019-12-17 16:34:05
问题 I have a <p> block in a huge <div> in the main body of my html with 80% in font-size , and also I have a footer <div> in the lower part of my body. The text in the footer has also 80% font-size , and if I test it on my PC it is equal, but if I test it in a mobile device, the text of the footer is extremely small, impossible to be read. How is this possible? Which is the explanation and how can this be avoided? My main text: <div id="mainTextContainer" class="text"> <p>test text</p> </div> my

Consistent font-size across browsers (web development)

前提是你 提交于 2019-12-17 16:19:00
问题 When creating web pages how do we achieve a consistent font size across browsers. I have used something like "font-size: 11pt; font-family: Helvetica,'Lucida Grande'" in my CSS, but the text looks different in Firefox, IE, Google Chrome and Safari (and this is not even on different platforms). Basically on the same machine, that is running Windows Vista, I get a different look and feel under different browsers. How can this be fixed so that the size of text appears same on all the different

淘宝手机rem的如何使用

陌路散爱 提交于 2019-12-17 16:17:30
1.主要介绍几个移动端常用的单位rem、vw、vh,配合传统的px、百分比、<viewport>标签,兼容适配移动端的各种分辨率的手机端。   rm : 这个单位是以父元素为标准来进行计算 , 例如:父元素 font-size:16px; 子元素 : font-size:0.875em ; 则子元素 font-size: 0.875*16   rem : 而这个单位是以 root 根元素标准来计算的。   vw : 屏幕宽度相关,1vw是屏幕宽度的1%   vh : 屏幕高度相关,1vh是屏幕高度的1% 2. 用 rem 进行 移动端适配      定义html一个标准样式,当宽度为 320px 时候,根font-size 为16 px;   html{     width:320px;     font-size : 16px;   }      我们可以得到 1rem = 16px;   html{     font-size:16px;     width:20rem   }      那么当屏幕为 400 时候呢?我们的 width 还应该是 20rem;   这个时候我们就要计算出 1rem 为多少(也就是 html 的 font-size为多少 );   1rem = 400/320*16 , 所以得到   html{     font-size : (400/320