Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8842617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:00:19+00:00 2026-06-14T11:00:19+00:00

This is my code <?php header(Content-type: text/css; charset: UTF-8); // Admin Color Define //

  • 0

This is my code

<?php header("Content-type: text/css; charset: UTF-8");
// Admin Color Define //
$admint = "Admin";
$admincolor = mysql_query("SELECT * FROM shout_titles WHERE title = '".$admint."'");
$gac = mysql_fetch_array($admincolor);

// Co-Admin Color Define //
$cadmint = "Co-Admin";
$cacolor = mysql_query("SELECT * FROM shout_titles WHERE title = '".$cadmint."'");
$gcac = mysql_fetch_array($cacolor);

// Moderator Color Define //
$modt = "Moderator";
$modcolor = mysql_query("SELECT * FROM shout_titles WHERE title = '".$modt."'");
$gmodc = mysql_fetch_array($modcolor);

// Banned Color Define //
$bannedt = "Banned";
$bancolor = mysql_query("SELECT * FROM shout_titles WHERE title = '".$bannedt."'");
$gbanc = mysql_fetch_array($bancolor);

// New Color Define //

?>
div#shoutbox {
    border: 1px solid #000000;
    width: 500px;
    height: 1000px;
    overflow: scroll;
    overflow-x: hidden;
    word-wrap: break-word;
    color: #000000;
    background: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    left: 15px;
}
a{
    font-weight: bold;
}
.bgOn, .bgOff {
    padding: 2px;
}
.bgOn {
    background-color: #FFFFFF;
    color: #000000;
}
.bgOn a {
    color: #000000;
}
.bgOff {
    background-color: #EBEBEB;
    color: #000000;
}
.bgOff a {
    color: #000000;
}
.date {
    text-align: right;
    font-size: 80%;
}
.delete, a.delete {
  color: #F00;
  font-weight: bold;
}
.ban, a.ban {
  font-weight: bold;
}
.title {
    font-weight: bold;
}
.group<?=$admint?> .title {
    color: <?=$gac['color']?>;
}
.group<?=$modt?> .title {
    color: <?=$gmodc['color']?>;
}
.group<?=$cadmin?> .title {
    color: <?=$gcac['color']?>;
}
.group<?=$banned?> .title {
    color: <?=$gbanc['color']?>;
}

This is how I have the call
<link rel="stylesheet" href="shoutbox.php" media="screen">

the code div#shoutbox and all of the classes starting with group are not working. Everything else works fine.

Here is the output I get.

Css Output

This is the first time I have written a style sheet with php, its not that much different so I am not sure why it’s not working.

It is probably something silly that I have missed but I cannot identify it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:00:20+00:00Added an answer on June 14, 2026 at 11:00 am

    Check your rendered CSS File and see if there are any issues and/or paste it here 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a popular snippet to compress multiple CSS with PHP. <?php header('Content-type: text/css');
I start a download using PHP with this code: <? $_REQUEST['file'] = urldecode($_GET['file']); header(Content-type:
<!DOCTYPE html> <html> <head> <title>Title</title> <meta http-equiv=content-type content=text/html; charset=utf-8> <style type=text/css> body { background:
I have made a code -- <?php header(Content-type: text/javascript); require_once('../php/config.php'); $domail_theme = $_GET['theme']; ?>
I got a simple php page like this: <?php include 'config.php'; include 'lib.php'; header(Content-type:
its a little bit hard to understand. in the header.php i have this code:
For example… This PHP code <?php echo '<html>'; echo '<body>'; echo '<h1>Header One</h1>'; echo
I have this code in PHP writing views to a text-file and just increasing
I'm using this php code code to write out my css with populated variables.
I just saw this code while studying the wordpress source code (PHP), You can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.