Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
racer25
New Member
New Member



Joined: Nov 01, 2004
Posts: 12

PostPosted: Wed Apr 27, 2005 8:51 am Reply with quote

Hi Guys,

Please forgive me I have tried this and my knowledge of Nuke is limited compared to some of you guys.

I have created a module, which works fine, however I would like to amend some of the formatting of the fonts and also the background. In essence I am trying to make this look similar to our blocks on the site.

My key object is to increse the font size of the entry below, and alter the background colour.

Code:
<?php 

if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
$index = 1;
OpenTable();
echo"
<center><b>UNP Squad Rules</b></center>
";
CloseTable();
include("footer.php");

?>


Thanks for your time and help.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Apr 29, 2005 4:44 am Reply with quote

This is more of an HTML/CSS issue than nuke. The "echo" statement will display the code as html in your browser. So, by using inline css, you could do something like this
Code:
echo"

<center><span style=\"color:white;font-weight:bold;font-size:16;background-color:blue;\">UNP Squad Rules</span></center>
";
 
View user's profile Send private message
racer25







PostPosted: Fri Apr 29, 2005 5:22 am Reply with quote

Raven

Thanks for the info, gives me something to work with.

I have managed to change the font but the background colour only changes the specific text not the whole module. I guess reading the rest of your post I need to look at the css file for my theme and have a little play this to see what happen's.

Thanks again/
 
Raven







PostPosted: Fri Apr 29, 2005 5:40 am Reply with quote

That css command should change it all. Try a <div> instead of a <span>.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©