Solved

Can't Center in Webkit (Safari/Chrome)

Posted on 2008-10-02
5
817 Views
Last Modified: 2012-05-05
I am using a shopping cart system and there is a table within a div for using star ratings of procucts.
The stars center properly in Firefox and IE, but not in Safari or Chrome (which uses Apple Webkit).
I cannot figure out how to center the stars. I do not have access to the main code of the cart, so this can only be changed with CSS.
Thank you!

Example:
http://www.lowpriceskates.com/lil-angel.aspx

(the stars are on the right above the price and below the product name)
<div class="prod-detail-rating"><table cellpadding="0" cellspacing="0" class="rating-container"><tr><td><img alt="rating" src="/themes/lps1/images/layout/rating-full.gif" /></td><td><img alt="rating" src="/themes/lps1/images/layout/rating-full.gif" /></td><td><img alt="rating" src="/themes/lps1/images/layout/rating-full.gif" /></td><td><img alt="rating" src="/themes/lps1/images/layout/rating-full.gif" /></td><td><img alt="rating" src="/themes/lps1/images/layout/rating-full.gif" /></td></tr></table> </div>

Open in new window

0
Comment
Question by:lowpriceskates
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:Brad Dobyns, CSM
Comment Utility
Try this:


/* SAFARI-ONLY POSITIONING */

	/*\*/

	html>body* .rating-container {display:block;}

	/**/

Open in new window

0
 
LVL 7

Accepted Solution

by:
Brad Dobyns, CSM earned 250 total points
Comment Utility
If that doesn't work, try this:


/* SAFARI-ONLY POSITIONING */

  /*\*/

  html>body*.rating-container {display:inline-block;}

  /**/

Open in new window

0
 

Author Comment

by:lowpriceskates
Comment Utility
That does not work.
I also tried putting a table in front (table.rating-container) and also using the div name (prod-detail-rating), but none of that did any good.
0
 

Author Closing Comment

by:lowpriceskates
Comment Utility
Yes, great. Thank you!
0
 
LVL 7

Expert Comment

by:Brad Dobyns, CSM
Comment Utility
Thanks for the points.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now