Jump to content

My navigation bar is all images how do I get active and hover colours on the images p.s I'm trying to recreate the facebook homepage for practice


joe_c

Recommended Posts

html

<body>
<!-- the HTML for the top bar -->

<div class="navbar">
<img src="facebook.png">
<input type="search" placeholder="Search Facebook" style=" background-color: #464d4d;">
<ul>
<div class="home">
<li><a href="Index.html"><img src="home.png" style="width: 650px; height:400px;"></a></li>
</div>

<div class="watchtop">
<li><a href="watch.html"><img src="watchtop.png" style="width: 650px; height: 400px;"></a></li>
</div>

<div class="marketplacetop">
<li><a href="marketplace"><img src="marketplacetop.png" style="width:650px; height:400px;"></a></li>
</div>


<div class="groupstop">
<li><a href="groups.html"><img src="groupstop.png" style="width: 650px; height: 400px;"></a></li>
</div>

<div class="gaming">
<li><a href="gaming.html"><img src="gaming.png" style="width: 650px; height: 400px;"></a></li>
</div>

</div>
</ul>

 

CSS

 

/* the CSS for all the logos in the top bar */
.home {
position: absolute;
margin-top: 690px;
margin-left: 1945px;

}

.watchtop {
position: absolute;
margin-left: 2075px;
margin-top: 670px;
font-size: 40px;
}

.marketplacetop{
position: absolute;
margin-top: 670px;
margin-left: 2215px;
}

.groupstop {

position: absolute;
margin-top: 670px;
margin-left: 2350px;
}

.gaming {
position: absolute;
margin-top: 668px;
margin-left: 2490px;
}
 

 

 

2021-02-20 23_24_21-Index.html.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...