![]() |
Html tags in Category Description Help
Hello,
I have an img tag Code:
[img]http://www.mysite.com/images/Akita.jpg[/img] I'm placing it in the beginning of the category description, but it causes the template to look like this: http://i70.photobucket.com/albums/i103/mikevid/Image13.jpg I would like it to look like this: http://i70.photobucket.com/albums/i103/mikevid/Image11.jpg (I cheated and used to make it look like that). I think it has something to do with a div tag, however my html is not as good as it should be (lol). Any ideas? ...Please Thank you. |
Easiest way is to create two table cells, one for the image and one for the description. Since you are using align="left", everything is going to wrap, as you have seen first hand :)
|
Table suggestion to wrapping problem
Hello again,
I tried the table: Code:
<table width="100%" border="0" cellspacing="0" cellpadding="10"> I get this result: http://i70.photobucket.com/albums/i103/mikevid/Image1.jpg It adds a lot of space above the picture as you can see by comparing to the other example in my previous post. Is a CSS controlling tables in this, do you know? Thank you again :) |
Get rid of the cellpadding and use valign="top" on the table cells.
|
Removed padding on table
Hi,
As you suggested I got rid of the padding: Code:
<table width="100%" border="0" align="top" cellpadding="0" cellspacing="0"> I got this result: http://i70.photobucket.com/albums/i103/mikevid/Image2.jpg Do you have any other ideas? ...and thank you again for your help :) Regards. |
In customer/main/subcategories.tpl, try replacing this:
{$current_category.description|regex_replace:"/[\n]/":" "} with this: {$current_category.description} |
That was it!
The mod you sent worked! THANK YOU
|
Quote:
Such a pain in the butt that thing. I used to have like 300 lines of code (an HTML table) all on one line #-o . It's really fun to edit. Maybe it shouldn't replace \n by default! |
Well, it is meant for people who have no html knowledge so they can enter line breaks without having to code them.
|
All times are GMT -8. The time now is 08:49 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.