VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: nickelas on May 30, 2014, 17:49:07 PM

Title: Image for payment plugin dont align with text
Post by: nickelas on May 30, 2014, 17:49:07 PM
I am using an image with a payment method (with the logo of the payment company). The height of the image is about 3 rows of text. The payment description shows to the right of the image on one row, but the next row continues below the image. How do I make the whole payment description flow to the right of the image?
Title: Re: Image for payment plugin dont align with text
Post by: jenkinhill on May 30, 2014, 18:13:07 PM
You probably just need to add some css to fix the layout. Use Firebug: http://forum.virtuemart.net/index.php?topic=116620.0
Title: Re: Image for payment plugin dont align with text
Post by: nickelas on June 02, 2014, 16:44:44 PM
If all the payment options had an image, I imagine the css would be simple. Now there is only an image in the first and I am struggeling.. Override neccesary?
<fieldset>
<input id="payment_id_3" type="radio" value="3" name="virtuemart_paymentmethod_id">
<label for="payment_id_3">
<span class="vmpayment">
<span class="vmCartPaymentLogo">
<img align="middle" src="images/stories/virtuemart/payment/img180x78.png">
</span>
<span class="vmpayment_name">Payment 1</span>
<span class="vmpayment_description">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span>
</span>
</label>
<br>
<input id="payment_id_1" type="radio" value="1" name="virtuemart_paymentmethod_id">
<label for="payment_id_1">
<span class="vmpayment">
<span class="vmpayment_name">Payment 2</span>
<span class="vmpayment_description">Lorem ipsum dolor sit amet, consectetur adipisicing elit</span>
<span class="vmpayment_cost"> (Fee : 2)</span>
</span>
</label>
<br>
Title: Re: Image for payment plugin dont align with text
Post by: GJC Web Design on June 02, 2014, 18:35:19 PM
why not just add an image (be it a transparent dummy or whatever) to the others to make it line up?