The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

CSS/HTML color gradient

5 posters

Go down

Solved CSS/HTML color gradient

Post by Mineko November 9th 2020, 3:25 pm

Hello, again Very Happy
I would have a question that I have this CSS code below.
Code:
background: rgb (255,255,255);
background: linear gradient (90deg, rgba (255,255,255,1) 0%, rgba (209,209,209,1) 50%, rgba (255,255,255,1) 100%);
How could this be rewritten to use as a border-color?
Or maybe I should use a completely different code to do a gradient? q.q
Mineko
Mineko
Forumember

Female Posts : 57
Reputation : 1
Language : Hungarian
Location : Hungary

https://blackmoonfrpg.hungarianforum.com

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by YoshiGM November 9th 2020, 4:08 pm

Hello,
You can use that in any zone of your forum. Simply inspect and then add the properties. For example:

Code:

.module {
background: rgb (255,255,255);
background: linear gradient (90deg, rgba (255,255,255,1) 0%, rgba (209,209,209,1) 50%, rgba (255,255,255,1) 100%);
}

This is for your widgets.
You can also check this for more information: https://css-tricks.com/gradient-borders-in-css/
and of course this: https://help.forumotion.com/t42099-learning-the-basic-css



YoshiGM
YoshiGM
Active Poster

Male Posts : 1500
Reputation : 144
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by Mineko November 9th 2020, 4:21 pm

I want to snag the gradient into this.
Code:
<div style = "width: 490px; border-right: 5px double; border-left: 5px double; border-color: # C0C0C0; border-radius: 20px; padding: 10px; margin-top: 10px; line-height: 20px; "> </div>
How?
Mineko
Mineko
Forumember

Female Posts : 57
Reputation : 1
Language : Hungarian
Location : Hungary

https://blackmoonfrpg.hungarianforum.com

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by YoshiGM November 9th 2020, 4:24 pm

All CSS attributes that you add after the equal sign be readed by the browser.

Code:
<div style="width: 490px; border-right: 5px double; border-left: 5px double; border-color: # C0C0C0; border-radius: 20px; padding: 10px; margin-top: 10px; line-height: 20px; background: rgb (255,255,255);background: linear gradient (90deg, rgba (255,255,255,1) 0%, rgba (209,209,209,1) 50%, rgba (255,255,255,1) 100%);"> </div>

YoshiGM
YoshiGM
Active Poster

Male Posts : 1500
Reputation : 144
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by Mineko November 9th 2020, 5:07 pm

https://i.imgur.com/Jrww6zc.png

Well ... it looks like the forum is protesting now because it doesn't do it. Sad
Mineko
Mineko
Forumember

Female Posts : 57
Reputation : 1
Language : Hungarian
Location : Hungary

https://blackmoonfrpg.hungarianforum.com

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by TheCrow November 9th 2020, 5:42 pm

@Mineko,

You want this to be on the borders? Not as a background?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by Mineko November 9th 2020, 6:46 pm

I want it for Border, but that's how the code generator issued it. :/ q.q
Mineko
Mineko
Forumember

Female Posts : 57
Reputation : 1
Language : Hungarian
Location : Hungary

https://blackmoonfrpg.hungarianforum.com

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by tikky November 9th 2020, 10:02 pm

Hello @Mineko,

How could this be rewritten to use as a border-color?
Here:
Code:
  border: 5px solid;
  border-image: linear-gradient(90deg, rgba(255,255,255,1), rgba(209,209,209,1), rgba(255,255,255,1)) 1;
  box-sizing: border-box;

and
I want to snag the gradient into this.
Code:
<div style="width: 490px; border: 5px solid;  border-image: linear-gradient(90deg, rgba(255,255,255,1), rgba(209,209,209,1), rgba(255,255,255,1)) 1;  box-sizing: border-box; margin-top: 10px; line-height: 20px;"></div>
tikky
tikky
Forumember

Posts : 897
Reputation : 157
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

BlackScorpion and TonnyKamper like this post

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by Mineko November 9th 2020, 10:39 pm

Oh, I love * - *
You solve all my problems <3
Thanks, @pedxz <3

Solved Very Happy
Mineko
Mineko
Forumember

Female Posts : 57
Reputation : 1
Language : Hungarian
Location : Hungary

https://blackmoonfrpg.hungarianforum.com

tikky likes this post

Back to top Go down

Solved Re: CSS/HTML color gradient

Post by SLGray November 10th 2020, 12:30 am

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


CSS/HTML color gradient Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum