dforce Posted February 17, 2013 Posted February 17, 2013 Hello everybody.. I am getting a strange shape on the reviews page near the image. I also get this strange shape on anything that i add to shopping cart that has options on as well. I can confirm that the item in reviews does not have attributes.. I have attached a image for you to see the strange shape.. It is not an image as i cannot right click on it so i am totally lost as to what it can be. http://www.mugsxpress.co.uk/images/reviews.jpg if you need any more information then please let me know... Thanks in advance..
dforce Posted February 17, 2013 Author Posted February 17, 2013 ok loked into the code and it looks like it is something to do with the following code and it looks like the <i> tag that is causing the issue.. <div class="contentText"> <?php echo tep_break_string(nl2br(tep_output_string_protected($review['reviews_text'])), 60, '-<br />') . '<br /><br /><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $review['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $review['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $review['reviews_rating'])) . '</i>'; ?> </div> reason i say its the <i> tag is because it only does this is shopping cart when i add a product with attributes and that also displays in italic.. Hope someone can solve this issue.. thank you
dforce Posted February 17, 2013 Author Posted February 17, 2013 solved... change the <i> to <em> and the strange shape goes away...
MrPhil Posted February 17, 2013 Posted February 17, 2013 That's bizarre. I wonder if there was some junk in the file that you accidentally got rid of while editing? FWIW, <i>...</i> and <em>...</em> should have exactly the same effect. The "em" tag is a bit more semantically informative, as it tells anyone looking at the HTML source why you are italicizing the text (for emphasis). By any chance, does your browser show this strange thingy for other <i> text, or just in this case? If you managed to fix it, I suspect it was as a byproduct of the editing, and not the change from i to em. If it shows up elsewhere, there might be something wrong with your browser (a corrupted default CSS properties table?).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.