Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

I want to modify my additional page table’s width. table’s left row is more width, I want to narrow them down. 
 
geekcu
Member
 
Total Posts:  40
Joined:  2008-11-29
 

I want to modify my additional page table’s width. table’s left row is more width, I want to narrow them down.

you may check my page:
http://www.cndigit.info/mag116/v2/index.php/cellular-phones/shop-by-shape/flip-clamshell/zoho-v2.html

or the attchemnt screenshot.

Thanks

Image Attachments
Snap1.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
geekcu
Member
 
Total Posts:  40
Joined:  2008-11-29
 

any one can help…

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

I don’t have Modern theme files in my system, but I think the attributes are pulled from a file called ‘attributes.phtml’ located in the ‘catalog/product/view’

You can add a width to ‘label’ td cell.

In my themes, I see it has this:

<table cellspacing="0" class="data-attribute" id="product-attribute-specs-table">
    
<?php foreach ($_additional as $_data): ?>
 
<tr><td class="label"><?php echo $this->__($_data['label']?></td>
 <
td class="data last"><?php echo $_helper->productAttribute($_product$_data['value']$_data['code']?></td>  
    </
tr>    <?php endforeach; ?>
    
</table>

If you don’t want to ad width to td cell, you can add a css class like so

.data-attribute td.label {width: 30%}

 
Magento Community Magento Community
Magento Community
Magento Community
 
geekcu
Member
 
Total Posts:  40
Joined:  2008-11-29
 

Thanks~~~it works for me…
i modified attributes.phtml’ file in the ‘catalog/product/view’ as following:

Line 38

<td class="label" width="15%"><?php echo $this->__($_data['label']?></td>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top