Solved

Joomla - Virtuemart - product_description doesn't take formatting

Posted on 2011-09-06
5
348 Views
Last Modified: 2012-05-12
Hello,

In the product flypage I set

      <tr>
        <td style="font-size:18px;">
              <?php echo $product_description ?> <br/>
         <span style="font-style: italic;"><?php echo $file_list ?></span>
        </td>
      </tr>

However it doesn't get the 18px because somehow VM puts the product_description in paragraphp like this:

<td style="font-size:18px;">
              <!--ML K--> <p>Rendelheto méretek:<br>2<br><br>20 DEN-es harisnyanadrág<br><br>Szín:<br>Black - Fekete</p> <br>
         <span style="font-style: italic;"></span>
        </td>

If I remove the <p> in FireBug, the font will get the correct size.

Can you help me in this ?

Thank you

0
Comment
Question by:starhu
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:panagiotiss
ID: 36491916
any link ?
0
 

Author Comment

by:starhu
ID: 36491953
0
 
LVL 12

Expert Comment

by:panagiotiss
ID: 36491966
its because you have  a <p> in the product description
and get this

body, p {
    font-family: "Times New Roman",Times,serif;
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    line-height: 150%;
    margin: 1em 0;
}
0
 

Author Comment

by:starhu
ID: 36492003
The problem is that if I increase the font size in body, p, then everything will get bigger, even the left side menu.

Can I somehow set the product_description not to enclose it in <p>?
Or can I make another style *only* for product_description?
0
 
LVL 12

Accepted Solution

by:
panagiotiss earned 500 total points
ID: 36492017
try #vmMainPage p{font-size:18px;}
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
css question -easy, i think 2 29
XSLT: how to increment number value if attribute present 4 25
HTML CSS 7 19
modify h2 4 16
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now