Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use a repeating character as table border

Tags:

html

css

I want to create a table with the table border using some repeating character say a $. I want the output to be like

$$$$$$$$$$$$$
$           $
$    asd    $
$           $
$$$$$$$$$$$$$

I thought of using pseudo elements but that won't give the desired result. Is there a way to achieve this using CSS3?

like image 267
Basant Singh Avatar asked Dec 05 '25 04:12

Basant Singh


1 Answers

You can do it using svg

<svg width="500" height="500">
    <defs>
    <pattern id="p" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse" >
        <text x="0" y="30" font-size="40">$</text>
        </pattern>
    </defs>
    <rect x="0" y="0" width="500" height="500" stroke="url(#p)" fill="none" stroke-width="100"/>
like image 158
Akshay Avatar answered Dec 07 '25 19:12

Akshay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!