Issue
I need to put this element [b] at the end of the available space so it lines up at the same spot every line. But nothing works.
restOfList = albumArray.slice(3).map((d) => <Link className="artistLink" to={{ pathname: "/itemPage/" + d.id, album: d}}>{album? <div className={"artist4"}>{i++}. {d.artist} - {d.title} <b style={{color: "#720607", marginLeft: "1%", marginRight: 0, display: "inline block<i"}}>{getRating(d)}</b></div> : ""} </Link>)
Solution
You can wrap the list item with div and add a class with flex display. Then the b element will be styled with margin-left : auto
Answered By - Huik
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.