remove - clear:both

Phoca Gallery - image gallery extension
jdi
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 10 Jun 2011, 15:59

remove - clear:both

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: remove - clear:both

Post 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
If you find Phoca extensions useful, please support the project
blizarre
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Dec 2013, 20:18

Re: remove - clear:both

Post 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! :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: remove - clear:both

Post 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
If you find Phoca extensions useful, please support the project
blizarre
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Dec 2013, 20:18

Re: remove - clear:both

Post 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!
Post Reply