# CSS-ühikute teisendaja > Mitu rem-i on see pikslite arv? Teisenda CSS-i pikkusi ühikute px, rem, em, pt, pc, in, cm, mm ja Q vahel oma fondisuuruse järgi. Tasuta CSS-ühikute teisendaja: px ühikuteks rem, em ja pt ning tagasi mis tahes juurfondi suurusega, lisaks tollid, cm, mm, picad ja Q W3C CSS Values järgi. - Page: https://how.box/et/css-units/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/et/about/terms/ ## Inputs Answer link: https://how.box/et/css-units/?v={v}&from={from}&to={to}&fs={fs} - `v` (number 0 to 1e15): The CSS length to convert, in the from unit. Example: `1`. - `from` (px, rem, em, pt, pc, in, cm, mm or q): Unit of v (unit id: px, rem, em, pt, pc, in, cm, mm, q). Example: `rem`. - `to` (px, rem, em, pt, pc, in, cm, mm or q): Unit to convert to (unit id). Example: `px`. - `fs` (number 1 to 400): The font size in CSS px that 1 em and 1 rem stand for (1 to 400). Example: `16`. Example answer: https://how.box/et/css-units/?v=1&from=rem&to=px&fs=16 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `css_units_convert`: Converts a CSS length between units using exact definitions (1 in = 96 px = 2.54 cm, 1 pt = 1/72 in = 4/3 px, 1 pc = 16 px, 1 cm = 96/2.54 px, 1 mm = 1/10 cm, 1 Q = 1/40 cm; 1 rem and 1 em = the font size in px (context, default 16); W3C CSS Values and Units Level 4 §6). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"css_units_convert","arguments":{"value":1,"from_unit":"rem","to_unit":"px","context":16}}}` - GET: https://how.box/mcp/run/css_units_convert?value=1&from_unit=rem&to_unit=px&context=16 ## How it works CSS-is on absoluutsed pikkused, mis on omavahel kindlas suhtes, ja fondisuurusest sõltuvad pikkused. CSS-is on toll alati 96 px, seega 1 pt (1/72 tolli) on 4/3 px, pica on 16 px ja 1 cm on umbes 37,8 px. Need CSS-i pikslid ei ole ekraani füüsilised pikslid; brauser skaleerib neid. Rem on juurelemendi fondisuurus ja em elemendi enda fondisuurus. Brauserite vaikeväärtus on 16 px, seega rem = px ÷ 16 ja 24 px = 1,5 rem. Kui juurfondi suurus on 20 px, on 24 px 1,2 rem. Teisendaja kasutab mõlema jaoks üht fondisuurust, mille määrad, nii et em-i puhul sisesta selle elemendi suurus. Määratlused pärinevad W3C dokumendist CSS Values and Units Module Level 4. Vaateala ja konteineri ühikud (vw, vh, cqw) sõltuvad ekraanist ega ole kaasatud. ## FAQ **Mitu pikslit on 1 rem?** Brauserite vaikimisi fondisuuruse juures 16 px. See muutub koos juurfondi suurusega, näiteks html { font-size: 62.5% } korral on see 10 px. **Mis vahe on em-il ja rem-il?** rem kasutab alati juure (html) fondisuurust; em kasutab selle elemendi fondisuurust, millel ta on, nii et pesastatud em-id korrutuvad. **Mitu pikslit on 12 pt?** 16 px: punkt on 1/72 tolli ja CSS-i toll on 96 px. **Kas CSS-piksel on alati üks ekraanipiksel?** Ei. CSS-pikslid on võrdlusühikud. Seadme pikslisuhe ja suum määravad, mitu füüsilist pikslit vastab ühele CSS-pikslile. **Kas saan siin teisendada vw või vh ühikuid?** Ei. Need sõltuvad vaateava mõõtmetest. Teisendaja toetab kindlaid CSS-pikkusi ning em/rem ühikuid sinu määratud fondisuurusega. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/et/about/agents/)