How to remove underlines from table <hr> elements used as links.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to remove underlines from table <hr> elements used as links..

17th Feb 2017, 3:09 PM
suraj pandey
suraj pandey - avatar
11 Answers
+ 4
I don't understand what 'table <hr>' is meaning... and I don't no more see the relation between the question and the answer provided ( about styling list elements )... Anyway, to remove underlines inherited from a <a> link element behavior, you need to style the text to disabled this inherited unwanted style: text-decoration:none; ... targetting what you want, obviously ;)
17th Feb 2017, 4:48 PM
visph
visph - avatar
+ 2
list-style-type: none; to remove the bullets. float: left; on li to place them side by side. I think you have to apply display: inline-box; to li, too.
17th Feb 2017, 3:56 PM
Mario L.
Mario L. - avatar
+ 2
thnx @mario....i'll use this..
17th Feb 2017, 4:15 PM
suraj pandey
suraj pandey - avatar
+ 2
@visph there was a second question :/ must have been deleted... I answered that, because I didn't understand hr in table either...
17th Feb 2017, 5:00 PM
Mario L.
Mario L. - avatar
+ 2
simple, use CSS ! ,100% WORKING
17th Feb 2017, 5:40 PM
Farhan Sindy
Farhan Sindy - avatar
+ 1
@mario it works...but li items not side by side..??
17th Feb 2017, 4:30 PM
suraj pandey
suraj pandey - avatar
+ 1
<hr> headings rows in table
17th Feb 2017, 5:34 PM
suraj pandey
suraj pandey - avatar
+ 1
thnx @ visph
17th Feb 2017, 5:36 PM
suraj pandey
suraj pandey - avatar
+ 1
@suraj pandey: Well, you maybe not talk about <hr> element, but <th> ^^ I never use them, but it's possible that they have the default behavior to be underlined ( as stand for 'Table Header' )... solution is the same, but tagetting <th> instead <a> ( usually the one requiring this solution ;) )
17th Feb 2017, 6:09 PM
visph
visph - avatar
0
please show your code for further help ;)
17th Feb 2017, 4:42 PM
Mario L.
Mario L. - avatar
0
do you by any chance mean <th>?
17th Feb 2017, 6:08 PM
Mario L.
Mario L. - avatar