This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

gnoe

  • **
  • 22 posts
How to make show_feedback_overall() centered ?
« on: October 29, 2016, 08:54:37 PM »
Overall Feedback Stars produced by the following code
Code: [Select]
<?php echo show_feedback_overall(); ?>keep floating to the left.

Is there any Div/Css fix to make it stay centered like below code
Code: [Select]
<?php echo leave_feedback(); ?>

Thanks
Aristotle: We are what we repeatedly do. Excellence, then, is not an act, but a habit.

*

MB Themes

Re: How to make show_feedback_overall() centered ?
« Reply #1 on: October 30, 2016, 01:01:54 PM »
@gnoe
Can you show page where you used it?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

gnoe

  • **
  • 22 posts
Re: How to make show_feedback_overall() centered ?
« Reply #2 on: October 30, 2016, 07:35:50 PM »
Page is not live and public yet. I'm still testing it.
I'm using it in item page, right sidebar, user profile.

There I have 'Leave Feedback' link which is centered without any issues
and below that I have the '5 stars' feedback which floats left.

It's like in your demo http://plugins.abprofitrade.eu/index.php?page=item&id=313
There I see the use of
Code: [Select]
{float:none;display:inline-block;}
Maybe I should use something similar in a new div to stop the left floating.
Any ideas are welcomed.
Aristotle: We are what we repeatedly do. Excellence, then, is not an act, but a habit.

Marked as best answer by frosticek on October 30, 2016, 08:49:59 PM
*

gnoe

  • **
  • 22 posts
Re: How to make show_feedback_overall() centered ?
« Reply #3 on: October 30, 2016, 07:42:12 PM »
Update

I used the following code and seems to work just fine.
Code: [Select]
<div style="float:none;display:inline-block;">
<?php echo show_feedback_overall(); ?>
</div>

Stars are now centered :)
Solved!

Cheers..
« Last Edit: October 30, 2016, 07:43:56 PM by gnoe »
Aristotle: We are what we repeatedly do. Excellence, then, is not an act, but a habit.

*

MB Themes

Re: How to make show_feedback_overall() centered ?
« Reply #4 on: October 30, 2016, 08:50:09 PM »
@gnoe
Cool ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots