Hi all. I'm having a bit of trouble with some CSS not working, and I'm unable to see why. I'm not a CSS guru by any means, so no doubt it's something really simple that I've missed.
Also, before anyone vomits at the use of tables, they're only used because this particular page is not going to be used by many people, and I'm not the greatest with DIVs so I didn't really have the time. (I'm still learning how to use DIVs correctly).
Anyway, it's a bit of a mess given I have been trying different thigns, so I'd relaly appreciate anyone who could take a look and guide me in the right direction.
Note: I've included all the PHP that I've had made for me, just in case it is something to do with that.
include('library/database.php'); $db = new database(); /**** * If no match is defined to be showed * Chooses the first match from the list * */
function randomMatch() { $match=-1; $q = "SELECT * FROM game WHERE active = '1'"; $r = mysql_query($q) or die("Error in selecting first match: ".mysql_error()); if(mysql_num_rows($r)==0){ echo "NO MATCH IS CURRENTLY ACTIVE!"; exit; }
/** * * Data variable keeps the data of the row with fixed id * */
function fetchData(){ $id = getId();
if($id==-1)return -1; $q1 = "SELECT * FROM game WHERE id = '$id'"; $r1 = mysql_query($q1) or die("Error in fetching first active match, Level: 1:: ".mysql_error()); $data = mysql_fetch_assoc($r1) or die("Error in fetching first active match, Level: 2:: ".mysql_error());; return $data; }
/** * * If No match is currently active, do exit * */
function reportExit(){ echo "No match is currently active!"; exit; } /** * * Returns first team's name */
function getTeamA($data){ return $data['team1']; }
/** * * Returns second team's name */
function getTeamB($data){ return $data['team2']; }
function getScoreA($data){ return $data['score1']; }
function getScoreB($data){ return $data['score2']; }
function getLogo($team){ $team=strtolower($team); return "images/$team.png"; }
function printActiveGames($data){ $links = $data['link']; $links = explode(',',$links); echo "<BR>";
foreach($links as $link){ echo "<a href=$link>".$link."</a><BR>"; } echo "<BR>Currently Active Games:<BR>"; $q = "SELECT * FROM game WHERE active = '1'"; $r = mysql_query($q) or die("Error in selecting active games on line: 152".mysql_error()); while($row=mysql_fetch_array($r)){ echo "<a href='index.php?match=".$row['id']."'>".$row['team1']." VS ".$row['team2']."</a><BR>"; } }
function printNote($id){ $q = "SELECT * FROM notes WHERE gameid='$id' ORDER BY id ASC"; $r = mysql_query($q) or die("Error in PrintNote:: ".mysql_error()); while($row=mysql_fetch_array($r)){ $time = $row['time']; $note = $row['body']; echo '<tr><td id="notetime">'; $fDigit = $time{0}; if($fDigit>='0'&&$fDigit<='9'){ if($time%10==1&&$time!=11)echo $time."st Minute"; else if($time%10==2&&$time!=12)echo $time."nd Minute"; else echo $time."th Minute"; } else echo $time;
TechPowerUp GPU-Z 2.70.0 by Razvan Serea
GPU-Z is a lightweight system utility designed to provide vital information about your video card and graphics processor. At launch, it automatically scans your system and reports the card name, GPU, release date and transistors, BIOS version, ROPs, memory type, and memory size.
Main Features:
Supports NVIDIA, AMD, ATI and Intel graphics devices
Displays adapter, GPU and display information
Displays overclock, default clocks and 3D clocks (if available)
Includes a GPU load test to verify PCI-Express lane configuration
Validation of results
GPU-Z can create a backup of your graphics card BIOS
No installation required, optional installer is available
Support for Windows XP / Vista / Windows 7 / Windows 8 / Windows 10 (both 32 and 64 bit versions are supported)
GPU-Z 2.70.0 changelog:
Improved kernel driver security
Added die size for Qualcomm Adreno 741
Added support for NVIDIA RTX 6000D, RTX Pro 500 Blackwell Embedded, Tesla V100-DGXS-32GB, PG500-216
Added support for Intel Arc Pro B70, B65, A60 ES, Alder Lake ES
Added support for Qualcomm Snapdragon X2 Elite, 778G/782G
Added vendor detection for HKC/Sambada, AWES
Download page: GPU-Z 2.70.0 | 11.1 MB (Freeware)
View: GPU-Z Website | Screenshot
Get alerted to all of our Software updates on Twitter at @NeowinSoftware
Nah. For every indie dev that needs to create code for "stuff" or textures, it's a godsend enabler to possibly tackle a project that you may not otherwise. The end result and testing will tell the truth if everything works or doesn't, or a game is just mediocre slop, but now these tools are now there and it's the developer's duty to judge the outcome, and even more so for pro studios. And you gotta remember that they will be at an early stage.
As a game dev, today was really depressing. They announced that Blueprints will be deprecated in UE6 to be fully replaced by their sh**ty Python-like Verse language... They also announced that 5.8 will be the last version of UE5 until UE6 comes out in MID 2029!!!! They have completely lost the plot.
Question
Nashy
Hi all. I'm having a bit of trouble with some CSS not working, and I'm unable to see why. I'm not a CSS guru by any means, so no doubt it's something really simple that I've missed.
Also, before anyone vomits at the use of tables, they're only used because this particular page is not going to be used by many people, and I'm not the greatest with DIVs so I didn't really have the time. (I'm still learning how to use DIVs correctly).
Anyway, it's a bit of a mess given I have been trying different thigns, so I'd relaly appreciate anyone who could take a look and guide me in the right direction.
Note: I've included all the PHP that I've had made for me, just in case it is something to do with that.
@charset "utf-8";
/* CSS Document */
/* User Side Below */
#overall_container {
width: 600px;
vertical-align:top;
margin: auto;
z-index:2;
border:#000;
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 12px;
}
#hometeam {
width: 250px;
vertical-align:middle;
margin:auto;
background-color:#EEEEEE;
text-align:center;
float:left;
border:none;
}
#awayteam {
width: 250px;
vertical-align:middle;
margin:auto;
background-color:#EEEEEE;
text-align:center;
float:left;
border:none;
}
#vsbox {
width: 100px;
vertical-align:middle;
margin:auto;
background-color:#EEEEEE;
text-align:center;
float:left;
border:none;
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 12px;
}
#location {
width: 400px;
vertical-align:middle;
background-color:#EEEEEE;
text-align:center;
margin-left: Auto;
margin-right: Auto;
border:none;
}
#notetime {
width: 30%;
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 11px;
font-style:italic;
background-color:#C9FCCD;
border:none;
padding:0px;
}
#note {
width: 100%;
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 12px;
background-color:#C4FA8D;
padding:0px;
}
/* Admin Panel Below */
#overall_pass {
width: 60%;
}
#login_title {
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 14px;
font-weight: bolder;
background-color: #036;
color: #CCC;
text-align: center;
.team {
font-family: Verdana, Geneva, sans-serif;
}
/* Fonts */
.teamtext {
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 16px;
font-weight: Bolder;
text-align:center;
}
#teamtext {
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 16px;
font-weight: Bolder;
text-align:center;
}
.regulartext {
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 14px;
text-align:center;
}
.players {
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 12px;
text-align:left;
}
.score {
font-family: Calibri, Verdana, Geneva, sans-serif;
font-size: 22px;
text-align:centre;
}
[/CODE]
Link to comment
https://www.neowin.net/forum/topic/1134376-why-wont-my-css-work/Share on other sites
12 answers to this question
Recommended Posts