R
Rudra Banerjee
Dear friends,
I am a html novice and use it only the second time to construct my web
page. I have a navigation bar on left and right part...in my 15"
monitor, it looks ok, but in smaller window(if i resize my screen) it
behaves differently.
the navigation(left) sticks to the side and comes over the content in
smaller screen size.
I dont know where is the problem...so I am pasting my full css and
sample html that reproduces the problem.
/**************CSS****************/
body {
<!--overflow: hidden;-->
font: 100% times, arial, helvetica, sans-serif;
color:#0066cc;
background: #069;
margin: 0;
}
..accessaid, h1 {
position: absolute;
height: 0;
overflow: hidden;
}
..accessaid2, h1 {
position: absolute;
height: 0;
overflow: hidden;
}
#header {
background: #069 url(images/banner2.png) no-repeat;
height: 60px;
<!--xpadding: 1px 1em 2em 1em;-->
padding: 0px 20px 1em 40px;
border-left: 214px solid #069;
}
#navigation {
position: absolute;
top: 60px;
left: 0%;
width: 214px;
color: #e4ecef;
font-size: 1.5em;
}
#navigation ul {
margin: 0 0 2em 0;
padding: 0;
list-style: none;
color:#e4ecef;
}
#navigation ul a {
color: white;
text-decoration: none;
display: block;
background: #17a;
padding: 0 0.5em;
margin: 0 1em 1px 1em;
color:#e4ecef;
box-shadow:0 10px 10px #000
}
#navigation a:visited {
color: #e4ecef;
}
#navigation a:hover {
background: #28b;
}
#rightnavigation {
position: absolute;
left:83%;
top: -80px;
width: 214px;
color: #000;
font-size: 1.25em;
}
#rightnavigation ul {
margin: 100% 0 1em 0;
padding: 0;
list-style: none;
color:#000;
}
#rightnavigation ul a {
color: white;
text-decoration: none;
display: block;
background: #17a;
padding: 0 0.5em;
margin: 0 1em 1px 1em;
color:#e4ecef;
box-shadow:0 10px 10px #000
}
#content {
background: #e4ecef
xpadding: 1px 1em 2em 1em;
padding: 10px 20px 1em 40px;
border-left: 214px solid #069;
border-right: 214px solid #069;
border-radius: 15px 15px 15px 15px;
-webkit-border-radius: 15px 15px 15px 15px;
width:62%;
float:right;
margin-right:17%;
margin-left:30%;
border:3px;
background:#E0E9F8;
}
h2 {
font-size: 2em;
color: #069;
text-shadow: #28a 0.1em 0.1em 0.2em
}
h3 {
font-size: 1.25em;
color: #036;
}
#content img {
width: 200;
height: 200px;
padding: 0px;
border: 0px solid #333;
float: right;
margin: 0 0 2em 2em;
}
#container {
position: relative;
width: 586px; /* width + border for IE 5.x */
w\idth: 100%; /* real width */
border: solid #036;
border-width: 0 3px;
margin: auto;
}
/*----FOOTER PANEL----*/
#footermainPan{height:10%; background:#069 0 0 repeat-x #D3F0F0;
color:#2F5958; font:13px/20px "Trebuchet MS", Arial, Helvetica,
sans-serif; position:relative; margin:0 auto; clear:both; padding:36px 0
0;}
#footerPan{width:898px; position:relative; margin:0 auto;}
#footerPan ul{width:568px; height:20px; position:relative; margin:0
auto;}
#footerPan li{float:left; }
#footerPan ul li a{padding:0 10px 0; color:#fff; background:#069;
text-decoration:none; font-size:13px;}
#footerPan ul li a:hover{text-decoration:underline;}
#footerPan p.copyright{width:250px; margin:10px 0 0 2px;
position:relative; left:40%;color:#fff;}
/**************HTML PART**************/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Rudra Banerjee</title>
<link href="style.css" rel="stylesheet" type="text/css" /><style
type="text/css" media="all">
</style>
</head>
<body>
<div id="container">
<div id="header">
<h1>Rudra Banerjee</h1>
</div>
<div id="navigation">
<ul>
<li><a href="">About Me<img src="images/here.png" width="19"
height="17" /></a></li><li><a href="work.html">My Work</a></li><li><a
href="passion.html">My Passion</a></li>
</ul>
</div>
<div id="rightnavigation">
<ul>
<li><a href="contact.html">Contact Me</a></li><li><a href="">Other Side
of Me</a></li>
</ul>
</div>
<div id="content">
<div class="shadow">
Hiiii
</div>
</div>
</div>
</div>
</div>
</body>
</html>
I am a html novice and use it only the second time to construct my web
page. I have a navigation bar on left and right part...in my 15"
monitor, it looks ok, but in smaller window(if i resize my screen) it
behaves differently.
the navigation(left) sticks to the side and comes over the content in
smaller screen size.
I dont know where is the problem...so I am pasting my full css and
sample html that reproduces the problem.
/**************CSS****************/
body {
<!--overflow: hidden;-->
font: 100% times, arial, helvetica, sans-serif;
color:#0066cc;
background: #069;
margin: 0;
}
..accessaid, h1 {
position: absolute;
height: 0;
overflow: hidden;
}
..accessaid2, h1 {
position: absolute;
height: 0;
overflow: hidden;
}
#header {
background: #069 url(images/banner2.png) no-repeat;
height: 60px;
<!--xpadding: 1px 1em 2em 1em;-->
padding: 0px 20px 1em 40px;
border-left: 214px solid #069;
}
#navigation {
position: absolute;
top: 60px;
left: 0%;
width: 214px;
color: #e4ecef;
font-size: 1.5em;
}
#navigation ul {
margin: 0 0 2em 0;
padding: 0;
list-style: none;
color:#e4ecef;
}
#navigation ul a {
color: white;
text-decoration: none;
display: block;
background: #17a;
padding: 0 0.5em;
margin: 0 1em 1px 1em;
color:#e4ecef;
box-shadow:0 10px 10px #000
}
#navigation a:visited {
color: #e4ecef;
}
#navigation a:hover {
background: #28b;
}
#rightnavigation {
position: absolute;
left:83%;
top: -80px;
width: 214px;
color: #000;
font-size: 1.25em;
}
#rightnavigation ul {
margin: 100% 0 1em 0;
padding: 0;
list-style: none;
color:#000;
}
#rightnavigation ul a {
color: white;
text-decoration: none;
display: block;
background: #17a;
padding: 0 0.5em;
margin: 0 1em 1px 1em;
color:#e4ecef;
box-shadow:0 10px 10px #000
}
#content {
background: #e4ecef
xpadding: 1px 1em 2em 1em;
padding: 10px 20px 1em 40px;
border-left: 214px solid #069;
border-right: 214px solid #069;
border-radius: 15px 15px 15px 15px;
-webkit-border-radius: 15px 15px 15px 15px;
width:62%;
float:right;
margin-right:17%;
margin-left:30%;
border:3px;
background:#E0E9F8;
}
h2 {
font-size: 2em;
color: #069;
text-shadow: #28a 0.1em 0.1em 0.2em
}
h3 {
font-size: 1.25em;
color: #036;
}
#content img {
width: 200;
height: 200px;
padding: 0px;
border: 0px solid #333;
float: right;
margin: 0 0 2em 2em;
}
#container {
position: relative;
width: 586px; /* width + border for IE 5.x */
w\idth: 100%; /* real width */
border: solid #036;
border-width: 0 3px;
margin: auto;
}
/*----FOOTER PANEL----*/
#footermainPan{height:10%; background:#069 0 0 repeat-x #D3F0F0;
color:#2F5958; font:13px/20px "Trebuchet MS", Arial, Helvetica,
sans-serif; position:relative; margin:0 auto; clear:both; padding:36px 0
0;}
#footerPan{width:898px; position:relative; margin:0 auto;}
#footerPan ul{width:568px; height:20px; position:relative; margin:0
auto;}
#footerPan li{float:left; }
#footerPan ul li a{padding:0 10px 0; color:#fff; background:#069;
text-decoration:none; font-size:13px;}
#footerPan ul li a:hover{text-decoration:underline;}
#footerPan p.copyright{width:250px; margin:10px 0 0 2px;
position:relative; left:40%;color:#fff;}
/**************HTML PART**************/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Rudra Banerjee</title>
<link href="style.css" rel="stylesheet" type="text/css" /><style
type="text/css" media="all">
</style>
</head>
<body>
<div id="container">
<div id="header">
<h1>Rudra Banerjee</h1>
</div>
<div id="navigation">
<ul>
<li><a href="">About Me<img src="images/here.png" width="19"
height="17" /></a></li><li><a href="work.html">My Work</a></li><li><a
href="passion.html">My Passion</a></li>
</ul>
</div>
<div id="rightnavigation">
<ul>
<li><a href="contact.html">Contact Me</a></li><li><a href="">Other Side
of Me</a></li>
</ul>
</div>
<div id="content">
<div class="shadow">
Hiiii
</div>
</div>
</div>
</div>
</div>
</body>
</html>