Solved

Joomla - Virtuemart - product_description doesn't take formatting

Posted on 2011-09-06
5
350 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:Panagiotis S
ID: 36491916
any link ?
0
 

Author Comment

by:starhu
ID: 36491953
0
 
LVL 12

Expert Comment

by:Panagiotis S
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:
Panagiotis S earned 500 total points
ID: 36492017
try #vmMainPage p{font-size:18px;}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
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…

896 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

15 Experts available now in Live!

Get 1:1 Help Now