Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Question Aligning header in center without creating a margin

More
15 years 11 months ago #48137 by McGriddles
Hi there,

I am trying to align the header text so that it is in the center instead of at the left. I found the code to do it:
Code:
#Kunena div.fb_title_cover { float:center; text-align:left; color:#FFFFFF; font-weight:normal; line-height:normal; padding:2px; margin-left:2px; }

The float value is now "center", whereas before it was "left". My problem is that it now creates a small padding or margin underneath the header that wasn't there before. If I change the float value back to "left," the margin goes away. Is there some way to align the header in the center without this margin appearing?

Here are screenshots of what I'm talking about:

Centered with margin
Left-aligned without margin

Thank you!

Please Log in or Create an account to join the conversation.

  • C0n
  • C0n's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
15 years 11 months ago #48155 by C0n
ah nice looks brilliant :D i like your template aswell <3 thanks

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #48171 by sozzled
McGriddles: as far as your problem is concerned, I think the Law of Diminishing Returns applies. I spent about an hour looking at ways to easily fix your problem. Not easy to solve.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago - 15 years 11 months ago #48175 by Cerberus
if its actualy a margin then:

margin-bottom: 0px;

or

margin-bottom: 0px !important;


but if its padding then :

padding-bottom: 0px;

or

padding-bottom: 0px !important;

personaly i think its a margin but without the live site to play with i have no idea
Last edit: 15 years 11 months ago by Cerberus.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago #48179 by sozzled
I experimented here at www.kunena.com . I couldn't get a satisfactory solution. Try it for yourself. The extra "padding" is caused by the placement of the "display: block" for the Forum Tools; that's what you have to overcome. The answer is not quite as straightforward as removing (or setting) the style for the div.fb_title_cover margin-bottom or padding-bottom. There's one or two other objects that need to be moved around, too. Like I said, I spent about an hour trying to squeeze out a couple of pixels - hence my Law of Diminishing Returns remark.

Please Log in or Create an account to join the conversation.

More
15 years 11 months ago - 15 years 11 months ago #48182 by @quila
You can try in that way

#Kunena div.fb_title_cover {
/*float:left;*/
text-align:center;

color:#FFFFFF;
font-weight:normal;
line-height:normal;
padding:2px;
margin-left:2px;
}

#Kunena img.hideshow {
cursor:pointer;
float:right;
margin:-20px 0 0;
padding:0;
position:relative;
z-index:1;
}

Last edit: 15 years 11 months ago by @quila.

Please Log in or Create an account to join the conversation.

Time to create page: 0.275 seconds