cssでシンプル矢印
2023年7月9日
まずはhtml
1 | < span class = "simplearrow" ></ span > |
次にbefore after
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | .simplearrow::before { content : "" ; position :: absolute ; top : 0 ; bottom : 0 ; left : 0 ; width : 20px ; height : 1px ; margin : auto ; background-color : #686868 ; } .simplearrow::after { content : "" ; position : absolute ; top : 0 ; bottom : 0 ; left : 50% ; width : 8px ; height : 8px ; margin : auto ; border-top : 1px solid #686868 ; border-right : 1px solid #686868 ; transform : rotate ( 45 deg); } |