| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Html tags in Category Description Help | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
I have an img tag Code:
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.
__________________
Version 4.0.18 [unix] |
|||||||
#2
|
|||||||
|
|||||||
![]() 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
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Hello again,
I tried the table: Code:
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 ![]()
__________________
Version 4.0.18 [unix] |
|||||||
#4
|
|||||||
|
|||||||
![]() Get rid of the cellpadding and use valign="top" on the table cells.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Hi,
As you suggested I got rid of the padding: Code:
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.
__________________
Version 4.0.18 [unix] |
|||||||
#6
|
|||||||
|
|||||||
![]() In customer/main/subcategories.tpl, try replacing this:
{$current_category.description|regex_replace:"/[\n]/":" "} with this: {$current_category.description}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() The mod you sent worked! THANK YOU
__________________
Version 4.0.18 [unix] |
|||||||
#8
|
|||||||||
|
|||||||||
![]() 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 ![]() Maybe it shouldn't replace \n by default!
__________________
Version 4.1.8 (Upgraded from 4.0.1 ![]() |
|||||||||
#9
|
|||||||
|
|||||||
![]() Well, it is meant for people who have no html knowledge so they can enter line breaks without having to code them.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|