Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Semrush - keyword research tool

Create your online store today with Shopify

Turn ChatGPT, Claude, Gemini, And CoPilot Into Your Personal Assistant, Business Coach, Content Creator, And More

AFFILIATE MARKETING Your all-in-one performance engine Manage affiliates, creators, and customer referrals in one unified platform—turning every partnership into measurable growth

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Disclosure: My content contains affiliate links.

43,406 questions

56,397 answers

573 users

How to draw diagonal line in HTML5

2 Answers

0 votes
<!DOCTYPE html>
<html>
<head>
</head>
<body>

<svg style='width: 200px; height: 200px;'>
    <line x1="0" y1="0" x2="300" y2="300"
        style="stroke:rgb(255, 0, 0);stroke-width:2"/>
</svg>

</body>
</html>

 



answered May 27, 2016 by avibootz
0 votes
<!DOCTYPE html>
<html>
<head>
</head>
<body>

<svg style='width: 100%; height: 100%;'>
    <line x1="0" y1="0" x2="100%" y2="100%"
        style="stroke:rgb(0, 255, 0);stroke-width:2"/>
</svg>

</body>
</html>

 



answered May 27, 2016 by avibootz

Related questions

1 answer 360 views
1 answer 628 views
1 answer 434 views
434 views asked May 20, 2014 by avibootz
...