Page 1 of 1

remove - clear:both

Posted: 10 Jun 2011, 16:07
by jdi
Hello,

i integrated a picture with phocagallery and as slimbox.
code starts with:
<div class="phocagallery">
<div style="height:80px; width:110px;margin: 1px;padding: 5px;" class="phocagallery-box-file pgplugin1">
<center>
<div style="background: #f5f5f5;height: 80px; width: 90px;" class="phocagallery-box-file-first">
<div class="phocagallery-box-file-second">
<div class="phocagallery-box-file-third">
<center>
<a rel="lightbox-PhocaGalleryPl1" href=.....</div>
after this follows "<div style="clear:both"> </div>""
i want to remove "<div style="clear:both"> </div>" from template, but i can“t find the file, where i should remove it.

Could anybody help, please?

Thank you

Re: remove - clear:both

Posted: 10 Jun 2011, 17:15
by Jan
Hi, there must be clear both, because the images are stored in float boxed, just use some search function, you can find the clear both in Phoca Gallery code.

Jan

Re: remove - clear:both

Posted: 06 Dec 2013, 20:27
by blizarre
Hi, i have similar problem.
this code

Code: Select all

{phocagallery view=category|categoryid=8|imageid=21}{phocagallery view=category|categoryid=8|imageid=24}{phocagallery view=category|categoryid=8|imageid=20}{phocagallery view=category|categoryid=8|imageid=28}
generate this html code

Code: Select all

<div class="phocagallery">
<div style="clear:both"> </div>
<div class="phocagallery">
<div style="clear:both"> </div>
<div class="phocagallery">
<div style="clear:both"> </div>
<div class="phocagallery">
<div style="clear:both"> </div>
inside each <div class="phocagallery"> is code with 1 image. I searched all files in components/com_phocagallery and found <div style="clear:both"> </div> in couple places, but none of that place seems for me the right place to comment. Of course after many hours i decided to comment all these places and it did not helped. Could You point exacly file where this <div style="clear:both"> </div> is placed that I can comment that line.
I work on joomla 3.1.5 and Phocagallery 4.0.2

Thanks for help! :)

Re: remove - clear:both

Posted: 06 Dec 2013, 23:57
by Jan
Hi, just see the plugin code, as the image is floated image and it needs to be closed by clear: both ... You can use other plugin parameter e.g. to align more images next to each other without clear: https://www.phoca.cz/demo/phocagallery-plugin?start=13

the code is:

plugins/content/phocagallery/...

Jan

Re: remove - clear:both

Posted: 08 Dec 2013, 14:43
by blizarre
Great! Thanks for help. unfortunately i have users that don't want to add any sort of code and I rather not to do that by them.
[quote="Jan"
the code is:
plugins/content/phocagallery/...
[/quote]
Thanks for this. that's exactly what i have been looking for!