I'm in the process of learning CSS.
Here's some HTML code I've been working on:
<body>
<div id="header">
<span id="websiteName">
VISHAL
</span>
<div id="languageBar">
<ul class="nav">
<li><a href="#">English</a></li>
<li><a href="#">Hindi</a></li>
<li><a href="#">Marathi</a></li>
<li><a href="#">Gujarati</a></li>
</ul>
</div>
</div>
</body>
This is a snippet of my CSS code:
*
{
margin: 0px auto;
padding: 0px;
}
div#header
{
background: #353535;
box-shadow: 0px 5px 5px #808080;
}
div#header > span#websiteName
{
font-family: TEMPUS SANS ITC;
font-size: 44px;
font-weight:bold;
color: #0094ff;
margin-left:18%;
}
ul.nav
{
list-style:none;
}
ul.nav li
{
width:100px;
float:right;
display:inline;
}
ul.nav li a
{
display:block;
width:100px;
/*height:31px;*/
float:left;
/*margin-top:150px;*/
/*text-decoration:none;*/
/*color:black;*/
}
My current output:
To see the result, visit this jsFiddle link.
One change I aim for in the output is:
The list items displayed are currently below the black box. My goal is to have them contained within that black box.