Log in

View Full Version : CSS Help ROFL.



MrCraig
18-12-2007, 08:45 PM
LOL, been asking for help alot today

trying new things and all that xP

does anyone know why the CSS isnt affecting it when i hover over :S?



<?php
session_start();
require("config.php");
if(empty($_SESSION[lic_user]) || empty($_SESSION[lic_level]))
header("location: index.php");
?>
<!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>HabboSoft.com - Licence Management Panel</title>
<style type="text/css">
<!--
.style1 {
font-family: verdana;
font-size: medium;
color: #006699;
}
.style2 {
font-family: verdana;
font-size: x-small;
color: #000000;
}
.cont {
background-color:#C5DAD7;
font-family: verdana;
font-size: x-small;
color: #000000;
}
.cont a:hover {
background-color:#B8E7E7;
font-family: verdana;
font-size: x-small;
color: #000000;
font-style:italic;
}
-->
</style></head>
<body>
<span class="style1">HabboSoft.com - Licence Management Panel<hr />
</span>
<p align="center" class="style2">Welcome <? echo($_SESSION[lic_user]);?>!<br />
You last logged in from: <? $get_info = mysql_fetch_array(mysql_query("select * from lic_users where user = '$_SESSION[lic_user]'")); echo("$get_info[ip]");?>
<br />
<br />
</p>
<table width="60%" border="1" align="center">
<tr>
<td width="50%" class="cont">View my Licences </td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>


It displays it in the cont class, but doesnt do anything when it hovers...

Thanks for any help
Craig- ;)

Moved by Agesilaus (Forum Moderator) from Design and Development: Please post in the correct forum.

Frog!
18-12-2007, 08:48 PM
<style type="text/css">
<!--
.style1 {
font-family: verdana;
font-size: medium;
color: #006699;
}
.style2 {
font-family: verdana;
font-size: x-small;
color: #000000;
}
.cont {
background-color:#C5DAD7;
font-family: verdana;
font-size: x-small;
color: #000000;
}
.cont:hover {
background-color:#B8E7E7;
font-family: verdana;
font-size: x-small;
color: #000000;
font-style:italic;
}
-->
</style>Try that

Remember a:hover is for links (or whatever is in the <a></a> tags) as a is already a html attribute.

MrCraig
18-12-2007, 08:52 PM
Oooh.

Ive seen people writing down .CLASSNAME a:hover in some of these tutorials lol

Thanks, that works :)
+REP if i can.

php.net
18-12-2007, 08:56 PM
Oooh.

Ive seen people writing down .CLASSNAME a:hover in some of these tutorials lol

Thanks, that works :)
+REP if i can.

That changes the link styles in that div. :)

MrCraig
18-12-2007, 09:11 PM
Ooooh.

Ty +REP =]

Want to hide these adverts? Register an account for free!