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

Problem with HTML code
 
alex333
Jr. Member
 
Total Posts:  1
Joined:  2013-11-04
 

Hello to all people!

I created a html code and I need your help.
Actually, I want to disable space between text and picture.

Do you know how I can do that??

The html code is that:

<a href="http://www.google.com" target="_blank"><div style="background:#000000; padding:0px 8px 1px 8px;"><center><b>
<
p style="font-family:cambria;color:#FFFFFF;font-size:35px;text-decoration:none;">THE NAME <br />OF MY PET</p></b></center></div>
<
img src="http://imageshack.us/a/img42/2176/flowers5q.jpg" width="410" height="300" /></a>
 
Magento Community Magento Community
Magento Community
Magento Community
 
saval
Member
 
Avatar
Total Posts:  36
Joined:  2010-11-16
India, Nagpur
 

Just add padding & margin 0 in the paragraph as below

<p style="font-family:cambria;color:#FFFFFF;font-size:35px;text-decoration:none; padding:0; margin:0;”>

hope this will help. Enjoy!!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top