1

Hi I have a problem adjusting my linear gradient border. It is looking like this :

What it looks like

What I want it too look like

I want it to be looking like this ^ . Could anyone help please.

.bot-right { position: relative; height:400px; } .bot-right:before, .bot-right:after { content: ""; position: absolute; bottom: -3px; right: -40px; } .bot-right:before { top: -3px; width: 3px; background-image: -webkit-gradient(linear, 0 100%, 0 0, from(#009ee3), to(transparent)); background-image: -webkit-linear-gradient(transparent, #009ee3); background-image: -moz-linear-gradient(transparent, #009ee3); background-image: -o-linear-gradient(transparent, #009ee3); } .bot-right:after { left: -3px; height: 3px; background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#009ee3), to(transparent)); background-image: -webkit-linear-gradient(right, #009ee3, transparent); background-image: -moz-linear-gradient(right, #009ee3, transparent); background-image: -o-linear-gradient(right, #009ee3, transparent); }
<div class="bot-right "></div>

1 Answer 1

4

a simple border-image and can do it

.bot-right { position: relative; height:400px; border:3px solid; border-image: linear-gradient(90deg,transparent, #009ee3) 3; }
<div class="bot-right "></div>

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.