Shape 5

Joomla Templates => Sea of Glass - September - Club => : akerman November 17, 2008, 01:46:35 AM



: Classic DIV push by component or...?
: akerman November 17, 2008, 01:46:35 AM
Hi,

I've installed the 'JoomGallery' in SoG and 99% of the pages (gallery level/category level/detailed view) looks great and everything is within parameters, so to speak. But on some pages everything after 'div.s5_wrap' is adjusted left.

It is like all modules after 'div.s5_wrap' loose some of their settings.

I've tried to solve it by injecting 'clear:both; in different places (both inside wrap as well as in the template or in the component (joomgallery). No luck I'm afraid. I've also tried to not publish User 3,4..., still same result.

Really need some hints on what could cause this. And possibly cure...

Bad page
http://rd.akermanscove.com/index.php?option=com_joomgallery&func=viewcategory&catid=7&Itemid=77&lang=en

Good page (same component, same elements on page)
http://rd.akermanscove.com/index.php?option=com_joomgallery&func=viewcategory&catid=3&Itemid=77&lang=en

Regards
Akerman


: Re: Classic DIV push by component or...?
: jonahh November 19, 2008, 12:20:49 AM
Both URLs above appear to be the same?  Going to both of these URLs forwards me to:

http://akerman.dlinkddns.com/rd.akermanscove.com/index.php?option=com_jcs&view=jcs&layout=form&Itemid=77


: Re: Classic DIV push by component or...?
: akerman November 19, 2008, 03:44:58 AM
Hi,

my bad, the subscription system was switched on, thereby you are redirected to the subscription page when it senses that you don't have access.

You have now been upgraded to the full 'PRO' license = All products. Just login with the usual credentials. (on frontend)
Sorry for the inconvenience.

Regards
Akerman


: Re: Classic DIV push by component or...?
: jonahh November 19, 2008, 12:36:38 PM
There is an extra DIV being output by the component which is throwing the layout off. 

You could try putting:

<div class="s5_wrap" style="margin: 0pt auto;">

Right above:

<div style="clear: both; padding-bottom: 12px;"/>

This might fix things although XHMTL validation will most likely be off now.  Or you can contact the component developer and have them fix the problem.



: Re: Classic DIV push by component or...?
: akerman November 19, 2008, 03:04:40 PM
Good call! Thank you.

I of course does not expect you to specify exactly where this DIV lives, but do you mean and open <DIV> or a complete
<DIV> </DIV>?

I suspect you mean an open, since normally a closed one does not throw the template off like this.

Just want to be extra extra clear on this, before I start gutting JoomGallery (the German Forum isn't that quick... so I probably have to do this by myself... Good training I suppose... ;))

Regards
Akerman


: Re: Classic DIV push by component or...?
: jonahh November 19, 2008, 04:04:57 PM
Actually there appears to be an extra closing one in there.  I'm pretty def its the component as you can see it works on one page and then another it doesn't and both are the same component.

So the DIV from the template:

<div class="s5_wrap" style="margin: 0pt auto;">

Wraps everything if you look at the code in firebug on the good page you'll see this and then on the bad page you'll notice this s5_wrap DIV gets closed too earlier before it wraps the bottom modules which then throws them off center as they are missing the "margin: 0pt auto;" style.

Hope that makes sense :)



: Re: Classic DIV push by component or...?
: akerman November 20, 2008, 03:55:11 PM
Yes it makes sense. As a matter of fact I inspected the DIV right after your first answer and came to the same conclusion.
Just wanted to make really sure that what I saw was what you were referring to, so I didn't start working on the wrong thing.

It was quite easy to follow the template DIV, it's a bit harder to find the exact right spot for the component. As it turns out it seems that the component has several unclosed DIV's in several PHP files. At least so it seems. (Need to unwind these PHP's a bit more).

I've done some extensive editing to this component in order to get it into the shape I want, but always been careful and just taking one step (DIV) at the time.  :) Hopefully I'll find the right spot soon...

Thanx
Akerman