I was reading a question on here trying to get the font size of a text.  The answer they gave was to get the pixel size using a measure method.  All i want to be able to do is get the font size value so i can change it.  For example:  var x = docum...
Is it possible to detect the computed font-size of a DOM element, taking into consideration generic settings made elsewhere (In the body tag for example), inherited values, and so on?   A framework-independent approach would be nice, as I'm wor...
I am drawing a canvas that needs to be on full available screen (100% width and height). I set the width and height of canvas using javascript like this    var w = window.innerWidth;   var h = window.innerHeight;   var canvas = document.getElementB...
I'm trying to do something that should be very simple but I've spent my day between failures and forums..  I would like to adjust my font in order to match my baseline. On indesign it's one click but in css it looks like the most difficul...
I am allowing my users to print but the output is way too large (I have to manually adjust to about 60% in the print dialog). I use a css media query (below) to control the content and have tried changing the font-size of the html, body{}without any...
Is there any way to specify different font sizes for fallback fonts in CSS? I want to do something like this (which obviously does not work):  div {     font-family: "Arial Narrow", Arial, Helvetica, sans-serif;     font-size: 20px, 18px, 18p...
As you know em is a relative font measurement where one em is equal to the height of the letter "M" in the default font size. An advantage in using it is because you will be able to resize the text.  But how can i get default font size of cur...
What is the best way to get a browser's minimum font size?  I whipped up the following code, which does a binary search.  It works, but I would like to know if there is a standard or more efficient method.  function getMinimumFontSize() {   var e...
As we know, the font-size of a HTML-element is either set explicitly like style="font-size:10px" or calculated by the browser according to rules and properties from style sheets and parent properties.  It could be a rather complex task to cal...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.