space between the title and the content of k2 article

GK User
Mon Jun 25, 2012 3:09 pm
I would like to eliminate the space between the title and the content of k2 article, and the space underneath the lower edge of the image.
how can I do?
thanks
Marlais
User avatar
Expert Boarder

Konrad M
Mon Jun 25, 2012 3:20 pm
Hi,
please try add to the override.css
Code: Select all
.itemHeader {
margin: 0 0 24px 0;
}

and decrease third value.Remember to enable override.css option in template settings.
User avatar

GK User
Mon Jun 25, 2012 5:14 pm
ok, we solved :)
I added a border to the image of the item (k2) but I noticed a space below. Why does this happen?
thanks
User avatar
Expert Boarder

Konrad M
Tue Jun 26, 2012 9:33 am
Please give me url to your k2 item page becasue on demo when I add border I don't have this space.
User avatar

GK User
Tue Jun 26, 2012 10:11 am
these are the url:

http://93.95.219.96/~agrigent/index.php/blog
and
http://93.95.219.96/~agrigent/index.php ... t-bibendum

I changed the file k2.css this:
.catItemImageBlock {
margin: 0 5px 0;
padding: 0;
float:left;
border: 3px solid #e5e5e5;

and

.itemImageBlock {
position: relative;
margin: 0 10px 0px;
padding: 0;
float:left;
border: 5px solid #e5e5e5;
}
User avatar
Expert Boarder

Konrad M
Tue Jun 26, 2012 10:37 am
Top space is casued becasue 'p' elements have 0.5 em top and bottom margin. To remove it please change this:
Code: Select all
.itemImageBlock {
    border: 5px solid #E5E5E5;
    float: left;
    margin: 0 10px 0;
    padding: 0;
    position: relative;
}

to this one:
Code: Select all
.itemImageBlock {
    border: 5px solid #E5E5E5;
    float: left;
    margin: 1em 10px 0;
    padding: 0;
    position: relative;
}


To fix bottom one please add to override.css
Code: Select all
span.itemImage {
    line-height: 0;
}

and remember to enable override.css option in template settings.
User avatar


cron