Jump to content


Created Block takes on different color.


  • You cannot reply to this topic
5 replies to this topic

#1 rurbaniak

  • Members
  • 5 posts
  • United States

Posted 12 January 2005 - 03:47 PM

I'm using the latest MKPortal Multi Board with SMF, and using the Mercury theme on both forum and MKP.

So that being said. I like the way the theme looks on MKPortal expect for when you create a Block, it takes on a different background color than the Blocks that are included with MkPortal such as the Personal Menu and Forum Menu.

See my work in progress HERE

Looking at the CSS for the fourm, I found what controls it:

//* This is used on tables that should just have a border around them. */  
.tborder  
{  
	   background-color: #a0a0a0;  
	   border: 1px solid #505050;
But, when changing this it modifys too much. ;)

Is there a way to make a block background different than what CSS telling it?

Thanks

#2 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 12 January 2005 - 05:06 PM

Welcome rurbaniak. I like the way your template is shaping up. ;)

I will look at this tonight. I will get back to you.


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#3 rurbaniak

  • Members
  • 5 posts
  • United States

Posted 12 January 2005 - 11:31 PM

visiblesoul, on 12th January 2005, 05:06 PM, said:

Welcome rurbaniak. I like the way your template is shaping up. :)

I will look at this tonight. I will get back to you.
Thanks. Mkportal and the Mercury script is a good combo! ;)

#4 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 13 January 2005 - 02:38 AM

OK, looking at the html source of your template the tan color in the "Main Menu" and "Forum Menu" blocks are using the #tdblock id in the MKportal stylesheet. The other blocks use the #blocks id which has no background color. There are a couple of things that you could try.

1) try adding a background-color to the #blocks id in the MKPortal stylesheet (mkportal/templates/Smf_Forum/style.css).

or

2) in mkportal/templates/Smf_Forum/tpl_main.php find...

Quote




{$content}


and try adding a the #tdblock id...

Quote


id="tdblock">

{$content}


Let me know if either of these solutions work for you. I haven't tested them but I think they should work.

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard

#5 rurbaniak

  • Members
  • 5 posts
  • United States

Posted 13 January 2005 - 08:12 AM

visiblesoul said:

OK, looking at the html source of your template the tan color in the "Main Menu" and "Forum Menu" blocks are using the #tdblock id in the MKportal stylesheet. The other blocks use the #blocks id which has no background color. There are a couple of things that you could try.

1) try adding a background-color to the #blocks id in the MKPortal stylesheet (mkportal/templates/Smf_Forum/style.css).

or

2) in mkportal/templates/Smf_Forum/tpl_main.php find...

Quote




{$content}


and try adding a the #tdblock id...

Quote


id="tdblock">

{$content}


Let me know if either of these solutions work for you. I haven't tested them but I think they should work.

-=DKC=-
Great, that did it! Changing the CSS did nothing, but addint to the tpl_main was the trick.

While I've got your attention, I want to center my Top navigation, I only have 3 items up there, and was told that the navigatore was what controls it. So I changed it in both the CSS, and tpl_main files, to something like this:

#navigatore {vertical-align: bottom; text-align: center; font-family: Verdana, Arial; font-weight: 300; font-size: 9px;}n";
It didn't make a difference. :) Any ideas?

BTW, thanks a bunch for you help!!
;)

#6 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 13 January 2005 - 12:06 PM

rurbaniak said:

Great, that did it! Changing the CSS did nothing, but addint to the tpl_main was the trick.

While I've got your attention, I want to center my Top navigation, I only have 3 items up there, and was told that the navigatore was what controls it. So I changed it in both the CSS, and tpl_main files, to something like this:

#navigatore {vertical-align: bottom; text-align: center; font-family: Verdana, Arial; font-weight: 300; font-size: 9px;}n";
It didn't make a difference. :( Any ideas?

BTW, thanks a bunch for you help!!
;)
Well if you are using the forum skin the alignment is hardcoded into mkportal/templates/Smf_Forum/tpl_main.php

Quote







right">
$row_link 


EOF;
}
Glad to help. :)


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users