n49 / react-stars

A simple star rating component for your React projects :star:
http://developers.n49.com/react-stars/
218 stars 82 forks source link

Change styling to display: inline-block? #40

Open quachsimon opened 6 years ago

quachsimon commented 6 years ago

I am trying to display some texts on the right side of the stars however the component is set to be displayed as block.

How would I change it so that my texts (in

tags) are displayed beside it rather than below it?

anvk commented 6 years ago

What I did was to wrap this component into inline-block div. I believe by default any component has to occupy 100% of space. It is up to the developer to decide on how much space needs to be taken by limiting parent/container in size.

quachsimon commented 6 years ago

I tried wrapping it inside an inline-block div with a width of 100% using the component and texts but I am getting the same result