Closed (fixed)
Project:
Basic
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Reporter:
Created:
23 Nov 2008 at 11:03 UTC
Updated:
9 Dec 2008 at 07:31 UTC
Jump to comment: Most recent
First of all, thanks for this wonderfull starting theme!
In the header I only use an image. But underneath the image some extra pixels are added so the next block (the menu) does not connect nicely to it. There is a gap. I can't seem to find what's causing this...
In a footerblock in which I also call an image, the same happens.
What css setting am I overlooking?
Comments
Comment #1
Anonymous (not verified) commentedIf you added your image through a block, there's a fair chance that the image is inside a p tag. By default, there is a line-height of 1.286em on the page, and this might be happening on the p tag. You might be able to remove this gap by selecting the p in these specific blocks and assign a line-height to 0.
So that would look kinda like this (you might have to change the block ID) :
Comment #2
Tino commentedThanks again! That of course is the solution.
For my footer it worked, 'cause it was in a block and p-tags are indeed automatically added, thus inhereting the line-height set in #page.
For my header it didn't, 'cause that was the theme's (page-wide) logo.
By putting the header-image also in as a block, I have what I want and there's more logic to it as well. ;-)
Comment #3
Anonymous (not verified) commented