/    Sign up×
Community /Pin to ProfileBookmark

Can someone tell me how to make colored line? I also need to know how to change the width of the line and length. Thanks in Advance!

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWAug 19.2003 — across or down?
Copy linkTweet thisAlerts:
@DaveSWAug 19.2003 — well, I guess I might as well tell you both:

1) horizontal:

Use tag <hr>

You can add styles to it like:

<hr style="color: #ff0000; width: 90%; height: 10px;" >

2) Vertical:

Use a <div> tag:

<div style="background-color: #ff0000; width: 10px; height: 90%;">

You may need to position this as well depending what you want to do with it:

<div style="background-color: #ff0000; width: 10px; height: 90%; position: absolute; left:50px; top:5%;">


OK?
×

Success!

Help @mikechang2000 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...