0

Help in styling

How to Repeat Text as a Background Image in CSS

6th Feb 2025, 4:57 PM
SUJOY Saha
SUJOY Saha - avatar
3 Respuestas
+ 2
SUJOY Saha Create the text in whatever font and size you want in a text editor/word processor, Then take a screenshot and save it. Or do the same thing in any image editing program. Upload the image to webhost. Finally add the image url to CSS in the "background-image" property, probably for body {}. Use these additional CSS properties to control positioning, repeat, and such for the background image background-repeat background-size background-position
6th Feb 2025, 11:43 PM
Shardis Wolfe
+ 2
you can do it with canvas and toDataURL, but you probably would have better design flexibility and tiling options with an actual image from an image or vector editor as Shardis Wolfe suggested. I would probably create a tileable png in Inkscape and use that. https://sololearn.com/compiler-playground/W35yE10cjnpy/?ref=app
7th Feb 2025, 2:38 AM
Bob_Li
Bob_Li - avatar
0
Type css properties background-repeat:repeat;
7th Feb 2025, 1:13 PM
Divyalok Kumar
Divyalok Kumar - avatar