Gaps in content - {album} b i g w h i t e s p a c e <heading>

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
halm
Forum Members
Forum Members
Posts: 103
Joined: Mon Jun 11, 2007 12:52 pm

Gaps in content - {album} b i g w h i t e s p a c e <heading>

Post by halm »

Sorry about the obtuse subject line.
On those of my gallery pages that have multiple headings, there appears a "gap" between first {album} tag and second heading.
I'm probably not explaining it right, look at this page.

Looks like 2nd heading is aligning with the bottom of the sidebars?
I could wing it by putting an image above the content, compensating for the white space, but I'd rather fix the problem ;)
"One measures a circle, beginning anywhere" - Charles Fort
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Gaps in content - {album} b i g w h i t e s p a c e <heading>

Post by Nullig »

Have you tried moving right sidebar call to below your main content in your template?

Nullig
halm
Forum Members
Forum Members
Posts: 103
Joined: Mon Jun 11, 2007 12:52 pm

Re: Gaps in content - {album} b i g w h i t e s p a c e <heading>

Post by halm »

I have - see http://forum.cmsmadesimple.org/index.php/topic,14543.0.html. If I try to move content between sidebar div's in template, right sidebar skips to below content ...
"One measures a circle, beginning anywhere" - Charles Fort
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Gaps in content - {album} b i g w h i t e s p a c e <heading>

Post by Dr.CSS »

The problem is in the Album template itself, I've no idea why but it seems every template that comes with it has this at the bottom of it which makes it clear all the content on both sides...

  remove this and it will tighten up to the albums images...
halm
Forum Members
Forum Members
Posts: 103
Joined: Mon Jun 11, 2007 12:52 pm

Re: Gaps in content - {album} b i g w h i t e s p a c e <heading>

Post by halm »

Yeah, tightens it right up next to the album that came before :-\

I tried various solutions, , (without the style="clear:both;") - no luck.

The Photo List is a , which floats left. Hence the 'clear' command that jumps to below sidebars, too.

If I take the 'float:left' bit out of the stylesheet, all thumbs align in a single column, so that's no way to get rid of the 'clear' thing, either ...

More ideas?
"One measures a circle, beginning anywhere" - Charles Fort
webhome

Gaps in content - album - Possible Solution to Clear:both problem

Post by webhome »

The Clear and Float CSS Properties can introduce such flexibility, helping a Web Designer no end
Or they could drive you around the bend

I think I have a possible solution to the extra padding, or whitespace that occurs when inserting a random image set near the top of the page.

First a Description of the Problem:
Inserting a random set of images from the album causes a great deal of whitespace between the images and the next elements on the page. It appears the recently_updated action of the album tag follows the same logic.

Why this Happens:
The Album random image tag

Code: Select all

{cms_module module='album' action='random_image' number='3}
will insert 3 random images from your Photo Album anywhere on your page that you place this tag.

This is a great feature.
Unfortunately, the Clear:Both at the bottom of the random_image template causes anything placed below this tag to appear after any page elements on the same level (horizontally.)
This means that if you have a either a large menu, or News on the left hand side, and you happen to insert a album random tag, anything that is below the random tag will be inserted on the page BELOW the elements on the left hand side.

The Solution:
Remove the along with its properties

In the Admin Menu
Navigate to Content -> Photo Albums
Click on Templates
Click the random_image Template
The last line should be:

Code: Select all

</ul><div style="clear:both"></div>
Remove the Div entirely so the last line reads:

Code: Select all

</ul>
Now we have to edit the Stylesheet for our Album module in order to compensate for the lack of space between our random_image insert and the next elements on the page.

Unfortunately, there doesn't appear to be anyway to edit the Stylesheet from within the Admin area, but this isn't a huge issue as most people will have no need to edit it.

It is located in {siteroot}/modules/Album/css/stylesheet.css
Locate the following section:

Code: Select all

/* Picture List UL */
.picturelist
{
	margin:0;
	padding:0;
}
We need to add padding at the bottom of the Unordered List of Photos. I've chosen to add 8em. You could also for instance add 100px for the same effect.

Code: Select all

/* Picture List UL */
.picturelist
{
	margin:0;
	padding-bottom:8em;
}
I've included three pictures to illustrate the situation.

Code: Select all

The Problem - Before doing anything
http://i24.tinypic.com/negjnn.jpg


Halfway There - (Further Problems) 
At this point we have edited the template but still haven't edited the stylesheet
http://i22.tinypic.com/2zq6hq8.jpg


The Solution - having edited both template and stylesheet
http://i20.tinypic.com/2vudb8p.jpg
Hope this helps anyone having a problem with the Photo Album module.

It is a brilliant work of art and it truly is Photo Albums made Simple. A few little issues here and there should not take away from what is one of the most flexible but still user-friendly photo albums available for any CMS out there.
Last edited by webhome on Wed Oct 10, 2007 9:50 am, edited 1 time in total.
halm
Forum Members
Forum Members
Posts: 103
Joined: Mon Jun 11, 2007 12:52 pm

Re: Gaps in content - {album} b i g w h i t e s p a c e <heading>

Post by halm »

Sorry, that didn't do it for me  ???

Next headline now moves 8em below the longest sidebar. Your troubleshooting looks to be right on the money, but ...?!
Mind you, I am editing the default template, but everything applies as you described.

And despite this minor bug I'll second your praise for Album. It is a great, great module!
"One measures a circle, beginning anywhere" - Charles Fort
Post Reply

Return to “Layout and Design (CSS & HTML)”