![]() |
Product Template - View details formatting issue
Hi,
I am trying to get the "view details" under the product thumbnail to center. I have found the formatting under the product.tpl and it appears to be aligned to center...but does not diplay that way. For example: <table border=0 width=100%> <tr><td width=90 align=center valign=top> <a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{in clude file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url} {$lng.lbl_see_details}</a> </td> I see the {$lng.lbl_see_details} and it looks like it should center Any Suggestions? Thanks, rgbdna |
For one thing, I have the
tag at the end of that code, that could be part of your problem. Try it and see? Quote:
|
also it will center itself against the width that the cell has been set at. in this case 90 pixels. if the thumbnail is 150 pixels that would push the cell out somewhat but this would not apply to the centering of the text.
|
Thanks
Thanks the width adjustment worked.
<tr><td width=300 align=center valign=top> <a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{in clude file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url} {$lng.lbl_see_details}</a> </td> My client wanted large thumbs and so adjusting the width in the table tag worked great. Thanks! rgbdna |
All times are GMT -8. The time now is 02:38 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.