Jump to content

No .CSS file...where is the styling coming from?


cheap5.0

Recommended Posts

I have been playing around with a script i downloaded (i learn faster/better with "hands on" ya know?).  I am trying to change the style for the backgrounds, the text, and so forth. 

 

The problem is there is no .CSS file, so where is it getting its styling from?

 

Here is a example file:

 

<?php
$housequery=1;
include "globals.php";
print "<h3>Your Info:</h2>";
$exp=(int)($ir['exp']/$ir['exp_needed']*100);

if ( !$ir['married'] )
{
$marital="<font color='red'>No</font>";
}
else
{
$k=mysql_fetch_array(mysql_query("SELECT username FROM users WHERE userid={$ir['married']}", $c));
$marital="<a href=viewuser.php?u={$ir['married']} style=color:green;>{$k['username']}</a>";
$marital.="[<a href='partner.php'>Manage</a>]";
}


print "<table><tr><td><b>Name:</b> {$ir['username']}</td><td><b>Points:</b> {$cm}</td></tr><tr>
<td><b>Level:</b> {$ir['level']}</td>
<td><b>Exp:</b> {$exp}%</td></tr><tr>
<td><b>Money:</b> $fm</td>
<td><b>HP:</b> {$ir['hp']}/{$ir['maxhp']}</td></tr>
<tr><td><b>Vehicle:</b> {$ir['hNAME']}</td>


</table>";
print "<hr><h3>Stats Info:</h3>";
$ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ'];
$ir['strank']=get_rank($ir['strength'],'strength');
$ir['agirank']=get_rank($ir['agility'],'agility');
$ir['guarank']=get_rank($ir['guard'],'guard');
$ir['labrank']=get_rank($ir['labour'],'labour');
$ir['IQrank']=get_rank($ir['IQ'],'IQ');
$tsrank=get_rank($ts,'strength+agility+guard+labour+IQ');
$ir['strength']=number_format($ir['strength']);
$ir['agility']=number_format($ir['agility']);
$ir['guard']=number_format($ir['guard']);
$ir['labour']=number_format($ir['labour']);
$ir['IQ']=number_format($ir['IQ']);
$ts=number_format($ts);

print "<table><tr><td><b>Strength:</b> {$ir['strength']} [Ranked: {$ir['strank']}]</td><td><b>Speed:</b> {$ir['agility']} [Ranked: {$ir['agirank']}]</td></tr>
<tr><td><b>Defence:</b> {$ir['guard']} [Ranked: {$ir['guarank']}]</td><td><b>Labour:</b> {$ir['labour']} [Ranked: {$ir['labrank']}]</td></tr>
<tr><td><b>IQ: </b> {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td><td><b>Total stats:</b> {$ts} [Ranked: $tsrank]</td></tr></table>";
if(isset($_POST['pn_update']))
{
$db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid");
$ir['user_notepad']=stripslashes($_POST['pn_update']);
print "<hr><b>Personal Notepad Updated!</b>";
}
print "<hr>Your Personal Notepad:<form action='index.php' method='post'>
<textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea><br />
<input type='submit' value='Update Notes' /></form>";
$h->endpage();
?>

 

Any ideas?

Link to comment
Share on other sites

N/M to the above post, i should have googled it eh?

 

Alright i have gone through the globals.php and have not seen anything to do with styling.

 

I view the page source and i get the following styling:

 

<style type="text/css">
<!--
body {
background-color: #0066FF;
margin-top: 0px;
margin-bottom: 0px;
font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: gray;
   scrollbar-base-color: #005B70; 
   scrollbar-arrow-color: #F3960B;
   scrollbar-DarkShadow-Color: #000000;
}
a:visited,a:active,a:hover,a:link { color: gray;text-decoration: none; }
table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; }
img { border:none; }
textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: gray; }
.table2 {
}
.lgrad {
background-image:url(lgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.linegrad {
background-image:url(linegrad.PNG);
background-repeat:repeat-y;
background-align: center;
width:2px;
}
.rgrad {
background-image:url(rgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.dgrad {
background-image:url(dgrad.jpg);
background-repeat:repeat-x;
height:38px;
}
.dgradl {
background-image:url(dgradl.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.dgradr {
background-image:url(dgradr.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.center {
width:932px;
background-color:#FFFFFF;
vertical-align:top;
text-align:center;
}
.table {
background-color:#;
}
.table3 {
background-color:#0066FF;
}
.table td {
background-color:#050505;
height:22px;
}
.table3 td {
background-color:#0066FF;
}
td .alt {
background-color:#CCCCCC;
height:22px;
}
td .h {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.table th {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.textbox {
font-family: Tahoma;
color:#0066FF;
font-weight:bold; 
color:white; 
background-color:black; 
border-width:1; 
border-color:white; 
border-style:solid;
font-size: 13px;
}
-->
</style>

 

How do i hunt down the outputting this info?

Link to comment
Share on other sites

Have you followed AndyB's suggestions and looked in globals.php ?

 

Yes, i have gone through the globals.php and did not see anything.

 

<?php

session_start();
ob_start();
if(get_magic_quotes_gpc() == 0)
{
die("Fatal error: MCCode cannot function without MagicQuotes GPC being turned on in PHP.INI.");
}

require "global_func.php";
if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }
$userid=$_SESSION['userid'];
require "header.php";

include "config.php";
global $_CONFIG;
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php";
$db=new database;
$db->configure($_CONFIG['hostname'],
$_CONFIG['username'],
$_CONFIG['password'],
$_CONFIG['database'],
$_CONFIG['persistent']);
$db->connect();
$c=$db->connection_id;
$set=array();
$settq=$db->query("SELECT * FROM settings");
while($r=$db->fetch_row($settq))
{
$set[$r['conf_name']]=$r['conf_value'];
}
$domain=$_SERVER['HTTP_HOST'];

global $jobquery, $housequery;
if($jobquery)
{
$is=$db->query("SELECT u.*,us.*,j.*,jr.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON jr.jrID=u.jobrank WHERE u.userid=$userid");
}
else if($housequery)
{
$is=$db->query("SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=$userid");
}
else
{
$is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid");
}
$ir=$db->fetch_row($is);
if($ir['force_logout'])
{
$db->query("UPDATE users SET force_logout=0 WHERE userid=$userid");
session_unset();
session_destroy();
header("Location: login.php");
exit;
}
global $macropage;
if($macropage && !$ir['verified'] && $set['validate_on']==1)
{
header("Location: macro1.php?refer=$macropage");
exit;
} 
check_level();
$h = new headers;
$h->startheaders();
$fm=money_formatter($ir['money']);
$cm=money_formatter($ir['crystals'],'');
$lv=date('F j, Y, g:i a',$ir['laston']);
global $atkpage;
if($atkpage)
{
$h->userdata($ir,$lv,$fm,$cm,0);
}
else
{
$h->userdata($ir,$lv,$fm,$cm);
}
global $menuhide;
if(!$menuhide)
{
$h->menuarea();
}

?>

Link to comment
Share on other sites

Do a search in all your Files for

 

font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: gray;

 

and you'll find it.

 

I went through about 50 of them, and found it in a few.  I changed the background and text like i desired, but this only chaged part of the background and some of the text.

 

As i was going through the files though i noticed most of them have this was in header:


require "global_func.php";
if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }
$userid=$_SESSION['userid'];
require "header.php";

include "config.php";

 

 

The config.php is the database info---so its out.

The header.php and the global_func.php are really the only two files that could contain the style info right?  I have searched them for the hexadecimal color of its current background but i have come up empty.  The header.php contains this styling info

 

body {
background-color: #0066FF;
margin-top: 0px;
margin-bottom: 0px;
font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: gray;
   scrollbar-base-color: #005B70; 
   scrollbar-arrow-color: #F3960B;
   scrollbar-DarkShadow-Color: #000000;
}
a:visited,a:active,a:hover,a:link { color: gray;text-decoration: none; }
table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; }
img { border:none; }
textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: gray; }
.table2 {
}
.lgrad {
background-image:url(lgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.linegrad {
background-image:url(linegrad.PNG);
background-repeat:repeat-y;
background-align: center;
width:2px;
}
.rgrad {
background-image:url(rgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.dgrad {
background-image:url(dgrad.jpg);
background-repeat:repeat-x;
height:38px;
}
.dgradl {
background-image:url(dgradl.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.dgradr {
background-image:url(dgradr.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.center {
width:932px;
background-color:#FFFFFF;
vertical-align:top;
text-align:center;
}
.table {
background-color:#;
}
.table3 {
background-color:#000000;
}
.table td {
background-color:#050505;
height:22px;
}
.table3 td {
background-color:#000000;
}
td .alt {
background-color:#CCCCCC;
height:22px;
}
td .h {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.table th {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.textbox {
font-family: Tahoma;
color:#99CC00;
font-weight:bold; 
color:white; 
background-color:black; 
border-width:1; 
border-color:white; 
border-style:solid;
font-size: 13px;
}
-->
</style>

 

I have gone through and changed all those hexadecimal numbers to what i desire and nothing changed.  I cleared the cache, still nothing changes.

 

The global_func.php contains no styling....

 

So whats next?

Link to comment
Share on other sites

Take a look at the following screen cap, you see how the edges are blue and the interior tables have a black background?  I want to be able to change those interior tables back grounds, but i can not find out how to do this.  I am going to show the screen cap, then the html output, then the .php file responsible for this (in that order).

 

1.gif

 

 

The HTML output

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cheapland</title>
<style type="text/css">
<!--
body {
background-color: #0066FF;
margin-top: 0px;
margin-bottom: 0px;
font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: gray;
   scrollbar-base-color: #005B70; 
   scrollbar-arrow-color: #F3960B;
   scrollbar-DarkShadow-Color: #000000;
}
a:visited,a:active,a:hover,a:link { color: gray;text-decoration: none; }
table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; }
img { border:none; }
textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: gray; }
.table2 {
}
.lgrad {
background-image:url(lgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.linegrad {
background-image:url(linegrad.PNG);
background-repeat:repeat-y;
background-align: center;
width:2px;
}
.rgrad {
background-image:url(rgrad.jpg);
background-repeat:repeat-y;
width:19px;
}
.dgrad {
background-image:url(dgrad.jpg);
background-repeat:repeat-x;
height:38px;
}
.dgradl {
background-image:url(dgradl.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.dgradr {
background-image:url(dgradr.jpg);
background-repeat:no-repeat;
height:38px;
width:38px;
}
.center {
width:932px;
background-color:#FFFFFF;
vertical-align:top;
text-align:center;
}
.table {
background-color:#;
}
.table3 {
background-color:#000000;
}
.table td {
background-color:#050505;
height:22px;
}
.table3 td {
background-color:#000000;
}
td .alt {
background-color:#CCCCCC;
height:22px;
}
td .h {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.table th {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.textbox {
font-family: Tahoma;
color:#99CC00;
font-weight:bold; 
color:white; 
background-color:black; 
border-width:1; 
border-color:white; 
border-style:solid;
font-size: 13px;
}
-->
</style></head>
<body>
<center>

<table width="970" border="0" cellpadding="0" cellspacing="0" class="table2">
<tr>
<td class="lgrad"></td>
<td ><img src="title.jpg" alt="morpgr" /><br>
<!-- Begin Main Content -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>
<td width="100%"bgcolor="#000000" valign="top" align="right">
Current Time: 12/07 08:19:18 pm</td></tr></table>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="15%"bgcolor="#000000" valign="top" align="left">
<!-- Side Panel -->
<table><tr><td width="1%">
<b>Name:</b> <font color=red>Cheap5.0</font> [10] <img src='donator.GIF' alt='Donator: 500000 Days Left' title='Donator: 500000 Days Left' /><br />
<b>Money:</b> $2,147,483,647<br />

<b>Points:</b> 2147483647<br />
<b>Level:</b> 116<br />
<b>Energy:</b> 100%<br />
<img src=barend.png><img src=greenbarnew.png width=100 height=10><img src=redbarnew.png width=0 height=10><img src=barend.png><br />
<b>Will:</b> 0%<br />

<img src=barend.png><img src=bluebarnew.png width=0 height=10><img src=redbarnew.png width=100 height=10><img src=barend.png><br />
<b>Brave:</b> 235/235<br />
<img src=barend.png><img src=orangebarnew.png width=100 height=10><img src=redbarnew.png width=0 height=10><img src=barend.png><br />
<b>EXP:</b> 64%<br />
<img src=barend.png><img src=bluebarnew.png width=64 height=10><img src=redbarnew.png width=36 height=10><img src=barend.png><br />
<b>Health:</b> 100%<br />
<img src=barend.png><img src=greenbarnew.png width=100 height=10><img src=redbarnew.png width=0 height=10><img src=barend.png><br /><hr />
</td></tr></table>

<!-- Links --><table><tr><td width=1%>+<a href='index.php'>Home</a><br />
  +<a href='inventory.php'>Inventory</a><br />+<a href='events.php'>Events (0)</a><br />+<a href='mailbox.php'>Mailbox (0)</a><br />+<a href='explore.php'>The Beach</a><br />
  +<a href='gym.php'>Gym</a><br />

  +<a href='criminal.php'>Crimes</a><br />
  +<a href='job.php'>Your Job</a><br />
  +<a href='education.php'>Local School</a><br />
  +<a href='hospital.php'>Hospital (0)</a><br />
  +<a href='jail.php'>Jail (0)</a><br />+<a href='forums.php'>Forums</a><br />+<a href='announcements.php'>Announcements (0)</a><br />

+<a href='newspaper.php'>Newspaper</a><br />
+<a href='search.php'>Search</a><br /><hr />
+<a href='staff.php'>Staff Panel</a><br />
<hr /><b>Staff Online:</b><br />+<a href='viewuser.php?u=10'>Cheap5.0</a> (0 secs)<br /><hr />
<b>Donators Only</b><br />

+<a href='friendslist.php'>Friends List</a><br />
+<a href='blacklist.php'>Black List</a><hr />
+<a href='preferences.php'>Preferences</a><br />
+<a href='apply.php'>Staff Application</a><br />
+<a href='preport.php'>Player Report</a><br />
+<a href='helptutorial.php'>Help Tutorial</a><br />

+<a href='gamerules.php'>Game Rules</a><br />
+<a href='bbcode.php'>BB Code Commands<a><br />
+<a href='viewuser.php?u=10'>My Profile</a><br />
+<a href='logout.php'>Logout</a><br /><br />
</td></tr></table></td><td width="2" class="linegrad" bgcolor="#000000"> </td><td width="85%"  bgcolor="#000000" valign="top"><br /><center><h3>Your Info:</h2><table><tr><td><b>Name:</b> Cheap5.0</td><td><b>Points:</b> 0</td></tr><tr>

<td><b>Level:</b> 116</td>
<td><b>Exp:</b> 64%</td></tr><tr>
<td><b>Money:</b> $2,147,483,647</td>
<td><b>HP:</b> 5850/5850</td></tr>
<tr><td><b>Vehicle:</b> Default House</td>


</table><hr><h3>Stats Info:</h3><table><tr><td><b>Strength:</b> 500,033 [Ranked: 5]</td><td><b>Speed:</b> 50,000 [Ranked: 5]</td></tr>
<tr><td><b>Defence:</b> 500,000 [Ranked: 5]</td><td><b>Labour:</b> 50,000,012 [Ranked: 4]</td></tr>

<tr><td><b>IQ: </b> 0 [Ranked: 3]</td><td><b>Total stats:</b> 51,050,045 [Ranked: 4]</td></tr></table><hr>Your Personal Notepad:<form action='index.php' method='post'>
<textarea rows='10' cols='50' name='pn_update'></textarea><br />
<input type='submit' value='Update Notes' /></form></center>
</td>
</tr>
</table></td>
<td class="rgrad"></td>
</tr>
<tr>

<td colspan="3">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="dgradl"> </td>
<td class="dgrad"> </td>
<td class="dgradr"> </td>
</tr>
</table>
</td>
</tr>
</table>
10 queries</body>
</html>

 

And the php file

 

<?php
$housequery=1;
include "globals.php";
print "<h3>Your Info:</h2>";
$exp=(int)($ir['exp']/$ir['exp_needed']*100);

if ( !$ir['married'] )
{
$marital="<font color='red'>No</font>";
}
else
{
$k=mysql_fetch_array(mysql_query("SELECT username FROM users WHERE userid={$ir['married']}", $c));
$marital="<a href=viewuser.php?u={$ir['married']} style=color:green;>{$k['username']}</a>";
$marital.="[<a href='partner.php'>Manage</a>]";
}


print "<table><tr><td><b>Name:</b> {$ir['username']}</td><td><b>Points:</b> {$cm}</td></tr><tr>
<td><b>Level:</b> {$ir['level']}</td>
<td><b>Exp:</b> {$exp}%</td></tr><tr>
<td><b>Money:</b> $fm</td>
<td><b>HP:</b> {$ir['hp']}/{$ir['maxhp']}</td></tr>
<tr><td><b>Vehicle:</b> {$ir['hNAME']}</td>


</table>";
print "<hr><h3>Stats Info:</h3>";
$ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ'];
$ir['strank']=get_rank($ir['strength'],'strength');
$ir['agirank']=get_rank($ir['agility'],'agility');
$ir['guarank']=get_rank($ir['guard'],'guard');
$ir['labrank']=get_rank($ir['labour'],'labour');
$ir['IQrank']=get_rank($ir['IQ'],'IQ');
$tsrank=get_rank($ts,'strength+agility+guard+labour+IQ');
$ir['strength']=number_format($ir['strength']);
$ir['agility']=number_format($ir['agility']);
$ir['guard']=number_format($ir['guard']);
$ir['labour']=number_format($ir['labour']);
$ir['IQ']=number_format($ir['IQ']);
$ts=number_format($ts);

print "<table><tr><td><b>Strength:</b> {$ir['strength']} [Ranked: {$ir['strank']}]</td><td><b>Speed:</b> {$ir['agility']} [Ranked: {$ir['agirank']}]</td></tr>
<tr><td><b>Defence:</b> {$ir['guard']} [Ranked: {$ir['guarank']}]</td><td><b>Labour:</b> {$ir['labour']} [Ranked: {$ir['labrank']}]</td></tr>
<tr><td><b>IQ: </b> {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td><td><b>Total stats:</b> {$ts} [Ranked: $tsrank]</td></tr></table>";
if(isset($_POST['pn_update']))
{
$db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid");
$ir['user_notepad']=stripslashes($_POST['pn_update']);
print "<hr><b>Personal Notepad Updated!</b>";
}
print "<hr>Your Personal Notepad:<form action='index.php' method='post'>
<textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea><br />
<input type='submit' value='Update Notes' /></form>";
$h->endpage();
?>

 

I have gone through everything i can think of, but i am new to this so that was not much.  Any more ideas for me?

 

Link to comment
Share on other sites

@cheap5.0 I have edited your posts within this thread and wrapped your code within code tags (


). Please make sure you use code tags when posting code. This makes it easier identify text from code and and minimises the need for scrolling. Also it is advised to only post relevant bits of code not whole scripts. Instead please use the File Attachment feature for posting whole scripts.

Link to comment
Share on other sites

@cheap5.0 I have edited your posts within this thread and wrapped your code within code tags (


). Please make sure you use code tags when posting code. This makes it easier identify text from code and and minimises the need for scrolling. Also it is advised to only post relevant bits of code not whole scripts. Instead please use the File Attachment feature for posting whole scripts.

 

Thanks, i was wondering how you guys put your code in those (i did not see it in "post editor").

 

 

Back to the topic at hand, what are the other ways that styling is stored?

 

Link to comment
Share on other sites

You could just create a new style sheet?

 

Include it in the head and then give the elements you want to style your own id's...

 

At this point, it sound like a good idea.

 

I am at work right now so i can't play with it too much, but when i get home later i will go through and see how long it will take.  I guess i was getting so focused on learning php, i did'nt see the easy way out. haha...

Link to comment
Share on other sites

Correct me if I'm wrong but you're trying to find where the CSS definitions are stored?

 

Seems you've answered your question as it's the header.php file. You don't say whether you're familiar with CSS or not so I'm presuming you're not.

 

body {
background-color: #0066FF;

In your HTML where you have the "body" tag that (up until the closing brace) is defining the colors and styles for the body section which is everything that appears in the browser. The other lines effect other tags which are used throughout the script. Here we can see the background color of the body tag is being set to #0066ff which is the bright blue you're seeing.

 

Make a backup of that file and then play with the CSS changing parts and see how things turn out. You may have to CTRL-F5 the browser to force it to load the new CSS definitions as the old ones may be cached. If you've been editing this file and just loading the page and not seen any changes then the cached version could explain why you're having problems finding where the styles were stored.

Link to comment
Share on other sites

Correct me if I'm wrong but you're trying to find where the CSS definitions are stored?

 

Seems you've answered your question as it's the header.php file. You don't say whether you're familiar with CSS or not so I'm presuming you're not.

 

body {
background-color: #0066FF;

In your HTML where you have the "body" tag that (up until the closing brace) is defining the colors and styles for the body section which is everything that appears in the browser. The other lines effect other tags which are used throughout the script. Here we can see the background color of the body tag is being set to #0066ff which is the bright blue you're seeing.

 

Make a backup of that file and then play with the CSS changing parts and see how things turn out. You may have to CTRL-F5 the browser to force it to load the new CSS definitions as the old ones may be cached. If you've been editing this file and just loading the page and not seen any changes then the cached version could explain why you're having problems finding where the styles were stored.

 

Thanks for the thought out explanation!

 

I would rate my self 4/10 with CSS, i can change things, make things (with a library), and come up with a few ideas on my own...but other than that...lol

 

What you describe above is the first thing i did when i sat down with this file.  I immediatly saw that CSS in the head of a few php files and thought that was it.  I was wrong (even after clearing the cache)...the definitions in the css that you have seen control the color of the slider bars, some text backgrounds (when used), and other small items. 

 

But none, other than

body {
background-color: #0066FF;

change the background color in the page.  Thats why the page is currently two tone, i changed that background color and moved on to find the background colors for the other tables....then i ended up hear.

Link to comment
Share on other sites

OK. Now on one of the pages that you want to change, right-click and view the page source. Take a look at the HTML that makes the table you want to change the appearance of and see if it has either of the following:

1. Use of the class attribute to use a definition from the CSS chunk

2. Use of the style attribute to define a fixed set of definitions

 

If either of the above two can't be found, check the CSS definitions and see if anything is listed for table, tr and/or td.

Link to comment
Share on other sites

OK. Now on one of the pages that you want to change, right-click and view the page source. Take a look at the HTML that makes the table you want to change the appearance of and see if it has either of the following:

1. Use of the class attribute to use a definition from the CSS chunk

2. Use of the style attribute to define a fixed set of definitions

 

If either of the above two can't be found, check the CSS definitions and see if anything is listed for table, tr and/or td.

 

Thanks for the idea, I just took a nap and should have something to show later tonight.

 

btw, there are about 8 "tr" tags in the CSS...lol.  Should be fun seeing what each one does!

Link to comment
Share on other sites

One way to have an idea of which one does which is see if any of the tr tags have anything very different - ie, font, size, colors etc.

 

The key is experimenting - change a bit and see how it affected the page(s). Don't change too much at nce though otherwise you may find it difficult to change it all back (if things go strange and wrong) or to tell what the changes were that you liked.

 

I use CSS in every site I make no matter how basic they are and recommend getting your hands on a small pocket reference book. I try and keep mine near my PC at all times but when it gets buried under loads of junk on my desk Google comes into play.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.