QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Center Logo CleanTek2

Started by Ronald, Jul 05, 2023, 05:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ronald

How do I center my logo, smf 2.1.4, using CleanTek2

OK I've managed to do it.

Cleantek2


Index.template.php

Find:

<div id="header">
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<img src="'. $settings['images_url']. '/custom/logo.png" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" >' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" >', '</a>
</h1>';


Replace with

<div id="header">
<h1 class="forumtitle"><div align="center";>
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<img src="'. $settings['images_url']. '/custom/logo.png" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" >' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" >', '</a>
</div></h1>';





index.css around line 1270

Find

h1.forumtitle {
font-size: 1.8em;
font-family: "Tahoma", sans-serif;
padding: 22px 12px 6px 10px;
font-weight: normal;
float: left;
clear: left;
}

replace with

h1.forumtitle {
font-size: 1.8em;
font-family: "Tahoma", sans-serif;
padding: 22px 12px 6px 10px;
font-weight: normal;
/*float: left;*/
clear: left;
}


See attachment for the result below.

Ron not sure where you want this but I cannot access the 'Seniors' server anymore with the details you previously gave me


Skhilled

So sorry, Ron! I did see this but have been so busy with github that I've forgot about it. :P

Skhilled

Ron, find this in index.css about line 1270:

h1.forumtitle {
  font-size: 1.8em;
  font-family: "Tahoma", sans-serif;
  padding: 22px 12px 6px 10px;
  font-weight: normal;
  float: left;
  clear: left;
}
And change the padding to something like this or whatever suits you:

padding: 22px 12px 6px 410px;

Ronald

Quote from: Skhilled on Jul 09, 2023, 01:36 PMRon, find this in index.css about line 1270:

h1.forumtitle {
  font-size: 1.8em;
  font-family: "Tahoma", sans-serif;
  padding: 22px 12px 6px 10px;
  font-weight: normal;
  float: left;
  clear: left;
}
And change the padding to something like this or whatever suits you:

padding: 22px 12px 6px 410px;

Thanks Steve. Didn't work.

Skhilled

What's the link to your site?

Dave

I can get it to work on SMF default but having issues with in on Cleantek, I'll keep playing
If you want play quizzes or games click below

Dave

OK I've managed to do it.

Cleantek2


Index.template.php

Find:

<div id="header">
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<img src="'. $settings['images_url']. '/custom/logo.png" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" >' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" >', '</a>
</h1>';


Replace with

<div id="header">
<h1 class="forumtitle"><div align="center";>
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<img src="'. $settings['images_url']. '/custom/logo.png" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" >' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" title="' . $context['forum_name'] . '" >', '</a>
</div></h1>';





index.css around line 1270

Find

h1.forumtitle {
font-size: 1.8em;
font-family: "Tahoma", sans-serif;
padding: 22px 12px 6px 10px;
font-weight: normal;
float: left;
clear: left;
}

replace with

h1.forumtitle {
font-size: 1.8em;
font-family: "Tahoma", sans-serif;
padding: 22px 12px 6px 10px;
font-weight: normal;
/*float: left;*/
clear: left;
}


See attachment for the result below.

Ron not sure where you want this but I cannot access the 'Seniors' server anymore with the details you previously gave me

If you want play quizzes or games click below

Skhilled

My dumb butt was looking at it all wrong. I was tired and trying to center it with the user details on the right still on the same horizontal plane. LOL I knew something didn't look quite right but have been very busy lately. I actually, fell asleep without eating dinner last night! LMAO