Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Heres my current code, im looking for a black box at the top where I can put hyperlinked text over it to other pages.
XML
<!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=utf-8" />
<title>2015 WORLD CHAMPIONSHIP</title>
<style>
#blackBar{
position:relative;
top:0;
left:0;
width:100%;
height:2000px;
background-color:black;
}
</style>
<style>
<style type="text/css">
.TEXT_COLOUR {
	color: #FFF;
}
.text {
	color: #FFF;
}
.text {
	color: #FFF;
}
.text {
	color: #FFF;
}
.text {
	color: #FFF;
}
.text {
	color: #FFF;
}
.line {
	color: #F00;
}
</style>
<p>

<span class="TEXT_COLOUR"><font face="Arial, Helvetica, sans-serif"><font size="+3"> <a href="tickets.html" class="text">TICKETS</a> | <a href="news.html" class="text">NEWS AND INFO</a> | <a href="tournaments.html" class="text">TOURNAMENTS</a> | <a href="contact us.html" class="text">CONTACT US</a> | <a href="home.html" class="text">HOME</a> </font></font></span>
</head>
<body>
<img src="Images/logo.jpg" width="315" height="160" />
<style>
html, body {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  background:url(Images/CSGOBanner-1920x590.jpg) center center no-repeat;;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</style>
<p>



</body>
</html></p></p>
Posted
Updated 16-Sep-15 2:34am
v2
Comments
RelicV 16-Sep-15 9:01am    
<Head> tag is used for adding styles/scripts/title/meta info/etc. Not to add span and body content.
Header of a page to be displayed doesn't mean that you add that content into html head tag
Sergey Alexandrovich Kryukov 16-Sep-15 11:45am    
You can do it by learning at least the basics of HTML and CSS. Such questions (and answers) won't help you much. You need to design and use techniques by yourself.
What have you tried so far? What's the problem? There are many ways to do such a simple thing.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900