Reputation: 33988
I have a Magento Multistore installation, 2 stores actually.
1st store uses a custom developed theme by a company. Check specification tab:
2nd site, uses a theme we bought, but also uses EASYTABS, a free extension with no support.
In the product catalog the FIELD that renders this specification its exactly the same.
Maybe its a problem in a CSS or I dont know. Can somebody please help me to fix this issue of the spaces to make it look as store number 1?
This seems to be the file that renders that tab. I enabled path hints in Magento, maybe with this can you help me a little further
<?php
if(Mage::getStoreConfig('easy_tabs/custom/customtabid')){
$method = 'get' . ucfirst(Mage::getStoreConfig('easy_tabs/custom/customtabid'));
$content = nl2br($this->getProduct()->$method());
if(!empty($content)){
echo '<div class="product-specs">'.$content.'</div>';
}
}
?>
Upvotes: 3
Views: 142
Reputation: 7035
It looks like you're allowed to put HTML markup in the Specification, so change this line:
$content = nl2br($this->getProduct()->$method());
to:
$content = $this->getProduct()->$method();
and you won't have all the extra <br>
tags (spaces).
Upvotes: 1
Reputation: 9172
It's not a problem in the CSS, but in the PHP code. If you do a view source, you'll see there is a
appended at the end of each line, even within the table. So you have something like: <table><br><tr><br>....
and that's why there is very spaced at the begining. I think the reason is you have a filter somewhere which replaces new lines with <br>
(this sort of thing is usually used to output normal text written by a person, so that it's spaced properly).
Upvotes: 2
Reputation: 772
The problem is not a CSS issue but it is a markup issue there is lot of <br> tags below and above the table header
Upvotes: 1