Ask Your Question
4

I want to move react-icons from below the content to beside it.

asked 2023-07-01 13:06:21 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-07-01 13:14:02 +0000

lakamha gravatar image

To move the react-icons from below the content to beside it, you can use CSS to change the display property of the icon container. By default, it's probably set to "block" which means it takes up the full width of the parent element and appears below other elements. To move it beside the content, you can change the display property to "inline" or "inline-block".

Here's an example of how you can do this:

.icon-container {
  display: inline-block;
}

Make sure to replace ".icon-container" with the actual class name of the container that holds your react-icons. Once you change the display property to "inline-block", the icons will appear beside the content instead of below it.

You may also need to adjust the margins or paddings of the elements to achieve the desired layout.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-01 13:06:21 +0000

Seen: 13 times

Last updated: Jul 01 '23