Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 843299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:06:14+00:00 2026-05-15T06:06:14+00:00

I have a section like $myresult .= ‘<tbody>’; /*start printing the table wth feature

  • 0

I have a section like

$myresult .= '<tbody>';
/*start printing the table wth feature and ratings */
for ($i = 1 ; $i < $numProperties; $i++){
  if($master_rating_properties['rating'.$i.'_name']){
    $myresult .= '<tr>';
    $myresult .= '<td width=\'22%\'>';
    $indfeature = 0;
    $indfeature = $row_product['property'.$i.'_avg'];
    $myresult .= $master_rating_properties['rating'.$i.'_name'].' ( '.$indfeature .')';
    $myresult .= '</td>';
    $myresult .= '<td colspan=\'0\' width=\'38%\' >';
    $tocheck = $indfeature;
    for($k = 0.5; $k <= 10.0; $k+=0.5){
      $tocheck = roundOff($tocheck);
      if(($tocheck) == $k) {
        $chk = "checked"; 
      } else { 
        $chk = ""; 
      }
      $myresult .= "<input class='star {split:2}' type='radio'";
      $myresult .= " name='drating$i' id='drating$i$k' value='$k'  '$chk'";
      $myresult .= " title='$k out of 10' disabled '/>";
    }
    /* for k loop end */
    /* added later ,was missing */
    $myresult .= '</td>';
    $myresult .= '</tr>';
  }
  /* end if loop */
}
/* end i for loop */
$myresult .= '</tbody>';
/* end tbody */    

it works fine like printing the 10 stars(radio buttons) horizontally . but many a time all the 10 stars turn vertical.and after few browser refreshes it comes back to horizontal position. any idea .y this is causing problem? does tbody tag cause some problem.

i have done a demo page here. but its different form the code posted. that page i reverted back to old code. so posted this demo link to another page where this happens

http://abc.com/tempcollege . here also stars appears vertically sometimes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:06:15+00:00Added an answer on May 15, 2026 at 6:06 am

    First a question. why are you using tables to display layout? tables are for tabular data.

    Given that you did not post the html, I am going to have to base this on a guess. I am guessing that the width 38% is not wide enough for the width of the 10 stars. so change that width to:

    (width of star image) * 10 -> in pixels

    and if you have any padding/margin/border/etc on the images, you will need to adjust the width accordingly.

    edit:

    Ok, I see it now. The problem is from a naughty div and a elements. The javascript does some fandangling to work around the IE box model problem… and the code is obviously screwing up. On reload, the javascript is telling the < div > tags to have a width of 85px and the < a > tags inside those div’s to have a margin of -85px.

    I recommend going to the google code page for that javascript and discussing this problem with them.

    http://code.google.com/p/jquery-star-rating-plugin/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

does ruby on rails have an Admin section generation feature like django?
I have an XML file which has many section like the one below: <Operations>
I have a section: \section{Introduction} \label{sec:introduction} I'd like a link to the section where
I have SEF urls like /sitename/section/12-news-title and number 12 is id of the news.
On a blog detail page, I have a tags section. The html looks like:
My XML is like: <root> <section name=blah> <item name=asdf>2222</item> </section> </root> I will have
I have html output in paging section like this; <p>&nbsp;<strong class=active>1</strong>&nbsp;<a href=http://localhost/project/report_nc/search_now/1>2</a>&nbsp;<a href=http://localhost/project/report_nc/search_now/2>3</a>&nbsp;<a href=http://localhost/project/report_nc/search_now/1>Next
I have the following use case: A table have a section, subsection or subsubsection
I have a section of code like the following: ---- file.php ---- require_once(mylib.php); function($a,$b)
I have a section where I would like to customize the left area of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.