background color changing.

+1 Tracia william · January 12, 2015
Am creating a web page,at the top of the page ,I have a list of links as show below.

Home
News
Business
Sports
live-page
Tutorials


The question is "how will I make the links above have the same background- color of blue while the entire web page has a background color of yellow.

.Help me out

Post a Reply

Replies

Oldest  Newest  Rating
0 ludwig fourie · January 12, 2015
Do something like this


<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">

<style type="text/css">
.Bc:hover
{
background-color: #E8E8E8;
}

</style>

<title>Background change</title>

</head>

<body>


<div class="Bc">
home
</div>
<div class="Bc">
News
</div>
<div class="Bc">
Business
</div>
<div class="Bc">
Sport
</div>
<div class="Bc">
Live-Page
</div><div class="Bc">
Tutorials
</div>


</body>
</html>
  • 1

HTML / CSS / Web Design

107,333 followers
About

Discuss, share, ask, learn and teach HTML5 and CSS3.

Links
Moderators