Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <p>Это просто какой-то текст</p>
- </body>
- p{
- width:100%;
- text-align:justify;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <title>Scaling text demo</title>
- </head>
- <body>
- <svg width="100%" height="100%" version="1.1" viewBox="0 0 100 100"
- preserveAspectRatio="none"
- xmlns="http://www.w3.org/2000/svg">
- <text x="12.5" y="25" font-size="15">Stretch to fit</text>
- </svg>
- </body>
- </html>
- <body>
- <p id="myp">Это просто какой-то текст</p>
- <style>
- #myp{
- position: absolute;
- left: 0px;
- top: 0px;
- line-height: 100%;
- font-size: 9px;
- }
- </style>
- <script>
- function onres(){
- var browwidth=document.documentElement.clientWidth;
- var myp=document.getElementById("myp");
- myp.style.fontSize=browwidth/5+"px";
- }
- window.onresize=onres;
- onres();
- </script>
- </body>
- Может это тебе поможет letter-spacing: 11px;
Add Comment
Please, Sign In to add comment