VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ayok on April 01, 2012, 18:33:43 PM

Title: How/where to remove whitespace?
Post by: ayok on April 01, 2012, 18:33:43 PM
Hi,
I'm working now with virtuemart 2.0 and got an annoying problem.
(http://woonmodern.nl/images/virtuemartproblem.jpg)
I have that whitespaces top inside content div. I only get this when I open page with component products and categories, not normal joomla! page.. So i think it's from virtuemart.
Does anyone has the solution to get rid of this whitespace?

thank you
Title: Re: How/where to remove whitespace?
Post by: rickyvcp on April 01, 2012, 19:48:30 PM
Into your template css file you can edit this. =)
Title: Re: How/where to remove whitespace?
Post by: ayok on April 01, 2012, 20:16:06 PM
How is that? I've tried but no luck.
I came up with javascript
var cleanhtml = jQuery.trim(jQuery("#content").html());
jQuery("#content").html(cleanhtml);


and it's solved.
Title: Re: How/where to remove whitespace?
Post by: rickyvcp on April 01, 2012, 21:18:35 PM
the file is in, template/nameofyourtemplate/css/styles.css or template.css
Title: Re: How/where to remove whitespace?
Post by: ayok on April 08, 2012, 22:10:23 PM
Hi..
My trick doesn't work on ie 8. Instead of whitespace there are kind a strange chars like ??..
It's not CSS problem.. it's not padding or margin causing that, but whitespaces.. I don't where it's come from.. any idea how to remove it?