
Originally Posted by
FrickenTrevor
The accesskey attribute allows the user to activate a control on a page using a keyboard shortcut
thanks for the help. I did get quite a lot solutions on the web but some concepts are a bit confusing till now..
1. What is the main purpose of a span element?
I also tried out some coding on my own but got a few queries on it also when i run it on IE latest version the content of the page doesn't go even as compared to running on firefox. The menu becomes unevenly structured while running in an IE than on a Firefox..why does it occur? Here is a sneak peak of the code..
HTML Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login</title>
<script></script>
<link rel="stylesheet" href="../css/fonts.css" />
<link rel="stylesheet" href"http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900" />
<link rel="stylesheet" href="../css/login.css" />
</head>
<body>
<div id="header" class="container">
<h2><span class="icon"></span><a href="#">O|<span>M</span>|R</a></h2>
<p>OMR</p>
</div>
<div id="wrapper" class="container">
<div id="menu" class="container">
<ul>
<li class="current_item"><a href="#" accesskey="l" title="">Login</a></li>
<li><a href="#" accesskey="r" title="">Register</a></li>
</ul>
</div>
</div>
</body>
The Css part....
Code:
/*********************
********body*********/
html, body{
height:100%;
}
body{
margin:0px;
padding:0px;
background:#E9E9E9 url(../images/bg01.png) repeat;
font-family:verdana, Arial, Helvetica, sans-serif;
font-size:11pt;
font-weight:400;
color:#969696;
}
h1, h2, h3{
font-weight:900;
}
p{
}
ol, ul{
}
a{
}
a:hover{
}
.container{
width:1200px;
margin:0px auto;
}
/****************************
**********header************/
#header{
background:#E73030;
height:50px;
padding:10px 0px;
box-shadow:0px 0px 10px 5px rgba(0,0,0,0.1);
}
#header a{
font-style:none;
text-decoration:none;
color:#FFF;
margin:3em;
}
#header p{
letter-spacing:0.20em;
text-transform:uppercase;
margin:1px;
color:#FFF;
line-height:1%;
font-size:10pt;
padding:0 0 1em 0;
}
#header span{
}
/**************menu***************/
#menu{
background:#01A9DC;
}
#menu ul{
margin: 0;
padding: 0px 0px 0px 0px;
list-style: none;
line-height: normal;
text-align: center;
}
#menu li{
display:inline-block;
}
#menu a{
color:#FFF;
display:block;
padding: 0em 2em;
line-height: 40px;
letter-spacing: 1px;
text-decoration: none;
text-transform: uppercase;
font-size: 1em;
font-weight: 600;
}
#menu .current_item a{
background:#E73030;
}
#menu a:hover{
background:#E73030;
}
/***************wrappers**********/
#wrapper{
position: relative;
padding: 0em 0em 5em 0em;
background: #FFF;
box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
}
Problems faced..
1. From the above code what ever is mentioned inside the <p> element gets invisible when i run on both IE and Fire Fox.
2. The menu is unevenly proportioned while running on an IE but its perfect while run on Firefox
Please help me in solving the above...
Bookmarks