Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in HTML CSS only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
HTML CSS
Is it possible to insert a Horizontal Rule using CSS?
Is it possible to insert a Horizontal Rule using CSS?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
tess1243
New Member
Join Date:
Jun 2010
Posts:
20
#1
Is it possible to insert a Horizontal Rule using CSS?
Jul 30 '10, 08:33 PM
Is it possible to insert a Horizontal Rule using CSS?
Please let me know if my idea of inserting HR using CSS is wrong.
Thanks.
zorgi
Recognized Expert
Contributor
Join Date:
Mar 2008
Posts:
431
#2
Jul 31 '10, 02:57 AM
What do you mean by inserting?
Comment
Post
Cancel
Dormilich
Recognized Expert
Expert
Join Date:
Aug 2008
Posts:
8694
#3
Jul 31 '10, 12:54 PM
strictly speaking: no. a horizontal rule is implemented as HTML element. however, a horizontal bar may just be a border, semantically different but looking alike.
Comment
Post
Cancel
tess1243
New Member
Join Date:
Jun 2010
Posts:
20
#4
Aug 12 '10, 10:03 PM
Thanks Dormilich.
Comment
Post
Cancel
Melvin Aragon
New Member
Join Date:
Sep 2016
Posts:
1
#5
Sep 3 '16, 10:29 PM
This is an old post but I am posting a response for others who might be looking for an answer to the same question.
The updated answer is
YES
!
header:after {
content: '';
display: inline-block;
width: 100%;
border: 1px solid red;
}
The above will insert a horizontal bar after the header.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment