2 Replies - 788 Views - Last Post: 28 August 2013 - 01:42 PM

#1 aaaaaa21  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 25-August 13

cant change text colour and make it bold

Posted 28 August 2013 - 12:35 PM

I made html table with tooltip but dont know how to change colour. I was adding seceral times colour and bold code but its always mess. Here is what i have now http://cabal2bot.com/1/ I just want text "blabla" change colour to whatever i want (hex if its possible) and make it bold.

index.php

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8" />
	<meta content="text/html; charset=ISO-8859-1" 
	http-equiv="content-type"><title>index</title>
	<link type="text/css" rel="stylesheet" href="css/core.css">
	<!--[if lt IE 9]>
	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	
</head>
<body>
	
<div id="wrapper">

	<table style="text-align: left; width: 20%;" border="1" cellpadding="2" cellspacing="2"><tbody><tr><td><a href="#" id="blabla-match" class="tooltip">blabla</a></td><td>mujo</td><td>haso</td></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table><br>
	
	<div id="blabla-match-content" class="tooltip-target" style="width:250px">
		<img src="http://jquery-tooltip.ssdtutorials.com/images/lacrosse-match.jpg" alt="Lacrosse match" width="250" height="167" style="margin-bottom:7px" />
		<h1>We won that game!</h1>
		<p>Lacrosse team has won this game.</p>
	</div>
	
<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="js/core.js"></script>
</body>
</html>


Is This A Good Question/Topic? 0
  • +

Replies To: cant change text colour and make it bold

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3541
  • View blog
  • Posts: 10,227
  • Joined: 08-June 10

Re: cant change text colour and make it bold

Posted 28 August 2013 - 12:40 PM

then add those CSS definitions (color, font-weight) to the .tooltip selector in the core.css file.
Was This Post Helpful? 0
  • +
  • -

#3 aaaaaa21  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 25-August 13

Re: cant change text colour and make it bold

Posted 28 August 2013 - 01:42 PM

1 more question please. If i want to make 40 rows and 5 collumns. (Example is in attachment)
I already make red bold text, now if i want to add below that blue bold text is this what i need to do?

index.php (in table add)

<a href="#" id="blabla-match" class="tooltip2">blabla</a>

and in css this

.tooltip2 {
border-bottom: dashed 1px #aaa;
text-decoration: none;
font-weight:bold;
color: #0000ff;
cursor: help;
}

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1