Hello I would like to know how to make it stop my dropdown menu in my footer?
When I click on France the list scroll but did not stop at my footer and you can not see the rest of the menu hiding behind the footer.
That is why I am trying to implement a scroll bar.
Menu CSS :
body {
font-size: 100%;
background:#32373d;
}
a {
text-decoration: none;
}
ul, ul ul {
margin: 0;
padding: 0;
list-style: none;
}
#vertical {
width: 260px;
font-size: 0.8125em;
position: absolute;
float: right;
}
.menuv {
width: auto;
height: auto;
-webkit-box-shadow: 0px 1px 3px 0px rgba(0,0,0,.73), 0px 0px 18px 0px rgba(0,0,0,.13);
-moz-box-shadow: 0px 1px 3px 0px rgba(0,0,0,.73), 0px 0px 18px 0px rgba(0,0,0,.13);
box-shadow: 0px 1px 3px 0px rgba(0,0,0,.73), 0px 0px 18px 0px rgba(0,0,0,.13);
}
Footer CSS :
#footer {
position:absolute;
left:0px;
bottom:0px;
height:60px;
width:100%;
background: #258dc8; /* Old browsers */
background: -moz-linear-gradient(top, #258dc8 0%, #258dc8 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color- stop(0%,#258dc8), color-stop(100%,#258dc8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #258dc8 0%,#258dc8 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #258dc8 0%,#258dc8 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #258dc8 0%,#258dc8 100%); /* IE10+ */
background: linear-gradient(to bottom, #258dc8 0%,#258dc8 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#258dc8', endColorstr='#258dc8',GradientType=0 ); /* IE6-9 */
}
Problem : https://ps3land.franceserv.com/
You will have to face several problems in your code. Basically you need to give your element #vertical and its ul the follwing styles:
#vertical {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
height: 100%;
padding-top: 50px // height of header;
padding-bottom: 60px // height of footer
}
#vertical > ul {
overflow-y: scroll;
height: 100%;
}
It's not yet perfect, but this should get you started.
Remove the overflow: hidden from your body tag
Change height property of <div id="vertical"> to about 500px
Remove padding from ul li a
Change width of #vertical to about 240px
Add to #vertical, overflow: scroll
There will be several other issues you will have to solve using this method, but the combinations you are using to achieve your sidebar without your footer overlapping may require jQuery or JavaScript.
Related
I have no idea how/why this is happening... But I've been re-building an interface from scratch since the old one was hacky and unreliable.
Anyway, I have divs which are acting as "buttons." The gradient background I've got assigned to them wasn't working, then I stumbled across an interesting behavior... The background DOES display if I make the position attribute absolute, rather than relative.
Here are my examples:
1) Absolute positioning
2) Relative positioning
The sections in question (css wise) are here:
.banner > .button {
position: relative;
top: 10;
display: inline-block;
height: 85%;
min-width: 80px;
margin-top: auto;
margin-bottom: auto;
text-align: center;
vertical-align: middle;
border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
/* Rules below not implemented in browsers yet */
-o-user-select: none;
user-select: none;
}
.banner > .button > span {
left: 30%;
}
.blueGlass {
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#3b679e+0,2b88d9+50,207cca+51,7db9e8+100&0.48+0,0.58+100 */
background: -moz-linear-gradient(top, rgba(59,103,158,0.48) 0%, rgba(43,136,217,0.53) 50%, rgba(32,124,202,0.53) 51%, rgba(125,185,232,0.58) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(59,103,158,0.48) 0%,rgba(43,136,217,0.53) 50%,rgba(32,124,202,0.53) 51%,rgba(125,185,232,0.58) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(59,103,158,0.48) 0%,rgba(43,136,217,0.53) 50%,rgba(32,124,202,0.53) 51%,rgba(125,185,232,0.58) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7a3b679e', endColorstr='#947db9e8',GradientType=0 ); /* IE6-9 */
color: white;
}
.blueGlass:hover {
-webkit-box-shadow: inset 0px 0px 26px 12px rgba(255,255,255,0.15);
-moz-box-shadow: inset 0px 0px 26px 12px rgba(255,255,255,0.15);
box-shadow: inset 0px 0px 26px 12px rgba(255,255,255,0.15);
cursor: pointer;
}
Any thoughts on why this is happening, and more importantly how I can go about fixing it?
Thanks!
First issue is,
.banner {
...
min-height: 40px;
}
Simply change it to,
.banner {
...
height: 40px;
}
Because if you use percentage height value to child elements. You have to give fix height to the parent wrapper. Otherwise it will not work as you expect.
See the example: https://jsfiddle.net/23qp2j8b/4/
And next issue is,
Remove the verticalCenter in the spans. And add these stylings to the button > span,
.banner > .button > span {
...
padding: 6px 15px;
display: block;
}
Complete fix example: https://jsfiddle.net/23qp2j8b/5/
Hope this is what you needed! ;)
The position: absolute; for the following class .verticalCenter hides the color behind the gray div, change it to folowing code,It works here
.verticalCenter {
position: relative;
top: 60%;
}
I created a hover effect for my navigation bar / the list inside it. On hover I want to create a "pressed button" effect by applying a box shadow. But the shadow only is casted in a small box. (check picture below)
I want the shadow to fill out the whole navbar around the hovered area.
I have no idea where to put my code and would be glad about any help :)
HTML CODE:
<nav>
<div class="nav-wrapper">
<ul>
<li>Home</li>
<li>Projekte</li>
</ul>
</div>
</nav>
CSS CODE:
html, body {
margin: 0;
padding: 0;
height: 100%;
background-color:white;
font-family: 'Open Sans', sans-serif;
}
.nav-wrapper {
margin: 0 auto;
margin-top: 50px;
width: 60%;
padding-top: 5px;
padding-bottom: 5px;
color:#787878;
box-shadow: 2px 2px 3px #BDBDBD;
border-radius: 5px;
background: #f9f9f9; /* Old browsers */
background: -moz-linear-gradient(top, #f9f9f9 0%, #ededed 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ededed)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f9f9f9 0%,#ededed 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f9f9f9 0%,#ededed 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #f9f9f9 0%,#ededed 100%); /* IE10+ */
background: linear-gradient(to bottom, #f9f9f9 0%,#ededed 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
}
ul {
list-style: none;
}
li {
display: inline;
padding: 0 15px;
}
li:hover {
box-shadow: 2px 2px 3px #BDBDBD inset;
}
a {
text-decoration: none;
color:#787878;
}
Add this:
li:hover {
box-shadow: 2px 2px 3px #BDBDBD inset, 2px 2px 3px #BDBDBD;
}
Preview:
Or the bevelled effect here:
li:hover {
box-shadow: 2px 2px 3px #BDBDBD inset, -2px -2px 3px #BDBDBD inset;
}
Preview:
Fiddle: http://jsbin.com/wolotuxico/1/edit?html,css,output
Update from Comments
Remove padding for .nav-wrapper and give it to li
.nav-wrapper {
padding: 0;
}
li {
display: inline-block;
padding: 15px;
}
Preview:
Fiddle: http://jsbin.com/bowawodode/2/edit
Remove the padding from the navigation and add it to the li's. Remember the border is outside the padding and inside the margin.
Example:
https://jsfiddle.net/m98yedk6/1/
.nav-wrapper {
position: relative;
margin: 0 auto;
margin-top: 50px;
width: 60%;
color:#787878;
box-shadow: 2px 2px 3px #BDBDBD;
border-radius: 5px;
background: #f9f9f9; /* Old browsers */
background: -moz-linear-gradient(top, #f9f9f9 0%, #ededed 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#ededed)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f9f9f9 0%,#ededed 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f9f9f9 0%,#ededed 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #f9f9f9 0%,#ededed 100%); /* IE10+ */
background: linear-gradient(to bottom, #f9f9f9 0%,#ededed 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
}
li {
display: inline-block;
padding: 10px;
}
I have the following div structure.
<!DOCTYPE html>
<html>
<head>
<title>Immigration Reform</title>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
</head>
<body>
<link rel="stylesheet" type="Text/css" href="css/test.css" media="screen" />
<div class ="HeaderWrap">
<div class ="Header">
<div Class="HeaderLogo"></div>
</div>
</div>
<div class ="BodyWrap">
<div class="Body clearfix">
<div class ="BodyLeft">
<div class ="HeadingBar1"><h7>You Have Questions?</h7></div>
<div class="list1">
<div class="HeadingBar2"><h7>We Provide Answers!</h7></div>
<div class="List2"></div>
</div>
</div>
<div class ="BodyRight">
<div class ="BodyRightText1"></div>
<div class ="BodyRightText2"></div>
<div class ="BodyRightText3"></div>
</div>
</div>
</div>
<div class ="FooterWrap">
<div class ="Footer">
<div class="FooterPicture"></div>
<div class ="Footer1"></div>
<div class ="Footer2"></div>
<div class ="Fotter3"></div>
<div class ="Footer4"></div>
</div>
</div>
</body>
</html
My problem is with the BodyLeft div which contains several other nested divs. the structure seems to work properly until the Bodyleft div get to a certain size and forces list2 text to pass the div and not push the footer down. here is an example of what happens.
https://www.dropbox.com/s/ukfq84b95unhytd/sampletext.PNG?dl=0
CSS Code
body{
margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;
padding: 0;
#color: black; font-size: 10pt; font-family: "Trebuchet MS", sans-serif;
#background-color: red;
#overflow: hidden;
}
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
zoom: 1; /* ie 6/7 */
}
.dropcap {
font-size: 300%;
float: left;
line-height: 0.8em;
padding: 0 2px 0 0;
color:#690A22;
font-family: 'Helvetica Neue';
font-weight: bold;
position: relative;
left: -3px;
}
.HeaderWrap,
.BodyWrap,
.FooterWrap{float:left; width:100%; border:1px solid yellow; clear:both;}
.Header,
.HeaderBottom,
.Body,
.Footer{width:960px; border: 1px solid red; margin:0 auto; clear:both;}
.Header{height:227px; background:url("../Images/man-with-flag-1.png") no-repeat;#box-shadow: 0 0 20px 0 black; z-index:-1
-webkit-box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75);
box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75);clear:both;}
.HeaderLogo{float:left; height:100px; width:150px; box-shadow: 10px 10px 5px #000000; background:url("../Images/visa.png") no-repeat; position:relative; right:-45px; bottom:-165px; border:5px solid white; z-index:999;clear:both;}
.Body {position: relative; min-height: 550px;
-webkit-box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75);
box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75); clear:both;}
.BodyLeft{float:left; min-height: 950px; #border:1px solid yellow; position: relative; #top: -90px; z-index:-1;background:#b1b6bc; box-shadow: 0 0 15px 0 black; width:26%; clear:both;}
.HeadingBar1{float:left; line-height:50px; width:250px;text-indent: 10px; font-weight: bold; position:relative; top:100px; vertical-align:middle; #border:1px solid yellow;
background: #265884; /* Old browsers */
background: -moz-linear-gradient(left, #265884 0%, #000000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#265884), color-stop(100%,#000000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #265884 0%,#000000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #265884 0%,#000000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, #265884 0%,#000000 100%); /* IE10+ */
background: linear-gradient(to right, #265884 0%,#000000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#265884', endColorstr='#000000',GradientType=1 ); /* IE6-9 */}
.list1{clear:both; position:relative; top:110px; color:#690A22; #border:1px solid yellow;}
.HeadingBar2{float:left; line-height:50px; width:250px;text-indent: 10px; font-weight: bold; position:relative; vertical-align:middle; #top:250px; #border:1px solid yellow;
background: #265884; /* Old browsers */
background: -moz-linear-gradient(left, #265884 0%, #000000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#265884), color-stop(100%,#000000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #265884 0%,#000000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #265884 0%,#000000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, #265884 0%,#000000 100%); /* IE10+ */
background: linear-gradient(to right, #265884 0%,#000000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#265884', endColorstr='#000000',GradientType=1 ); /* IE6-9 */}
.List2 {clear: both; position:relative; top:20px; #border:1px solid yellow; margin:20px; text-align: center}
.BodyRight{float:right; min-height: 700px; #background:yellow; position: relative; #top: -150px; z-index:-1; #border:1px solid green; width:73%}
.LeftText{float:left; width:248px; border:1px solid white; position:relative; top:55px}
.BodyRightText1{float:left; #border:2px solid green; position: relative; width:98%; min-height: 690px; margin: 0 5px 0 5px;text-align:justify; z-index:-1}
.Footer{position:relative; z-index:-1; height:70px; background:#1c2f3d;background:url("../Images/footer2.png") no-repeat;
-webkit-box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75);
box-shadow: 4px 1px 18px 0px rgba(0,0,0,0.75);}
#.FooterPicture {float:left;box-shadow: 10px 10px 5px #000000; height:50px; width:248px; #border:5px solid white; background:url("../Images/.png") no-repeat;position:relative; #right:-5px; top:50px; z-index:-1}
h1 { font-size:14pt; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color:#690A22; }
h2 { font-size:12pt; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color:#690A22; }
h3 { font-size:10pt; font-weight: normal; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color:black; }
h7 { font-size:18pt; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color:#ffffff;}
Here is the code in http://jsfiddle.net/ylafont/b634rL8v/1/
Any Advice?
You are using top to offset the position of a relative element with HeadingBar1 and list1. Instead you should use margin-top and this will accommodate for the offset. Alternatively, add padding-bottom to the end of list1 of the same magnitude as the top offset you are using.
changed css
.HeadingBar1{
float:left;
line-height:50px;
width:250px;
text-indent: 10px;
font-weight: bold;
position:relative;
margin-top:100px; /* CHANGED FROM TOP */
vertical-align:middle;
#border:1px solid yellow;
background: #265884; /* Old browsers */
background: -moz-linear-gradient(left, #265884 0%, #000000 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#265884), color-stop(100%,#000000)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #265884 0%,#000000 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #265884 0%,#000000 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, #265884 0%,#000000 100%); /* IE10+ */
background: linear-gradient(to right, #265884 0%,#000000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#265884', endColorstr='#000000',GradientType=1 ); /* IE6-9 */
}
.list1{
clear:both;
position:relative;
margin-top:110px; /* CHANGED FROM TOP */
color:#690A22;
#border:1px solid yellow;
}
PS. what are your doing with the # before some of your attributes? this is invalid css and isnt how to comment things out if thats what you're attempting (should use /**/ instead)
updated FIDDLE
Remove position:relative; from .list1 and .list2 ... this should fix push the footer down!
Also your are missing the starting unordered list tags <ul></ul> around your list items <li></li> in .list2.
You should also end all you rules in CSS with a ; (even the last ones). Might be worth running your css through a css validator.
I wonder why the div bar doesn't show green background color halfway, from left to middle. It just show the whole div bar. What could be the problem? THanks..
.BioUploadProgressBar p {
display: block;
width: 350px;
padding: 2px 5px;
margin: 12px 0;
border: 1px inset #446;
border-radius: 5px;
}
.BioUploadProgressBar p.initialize {
/*background: #0c0 none 0 0 no-repeat;*/
background-color: #0c0;
background-image: none;
background-position: 50% 0px;
background-repeat: no-repeat;
}
<div>
<div class='BioUploadProgressBar'>
<p class="initialize">Upload file 0 %</p>
</div>
</div>
Background-Position only applies to Background-Image. You'll have these options:
Use a Background-Image (But also have an additional Request)
Use a second DIV
Use a CSS Gradient (http://www.colorzilla.com/gradient-editor/ - No IE8 and stuff)
Try using this:
.progress {
height: 20px;
overflow: hidden;
background-color: #F5F5F5;
border-radius: 4px;
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1) inset;
}
.cpu {
color: #FFF;
text-align: center;
transition: width 2.0s ease 0s;
background-color: #FF6633;
}
<div class="progress" style="width:500px;">
<div id="cpu" class="cpu" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 10%">
<span>10</span>
</div>
</div>
because your HTML is incorrect and your CSS is even more incorrect, you're using background properties that applies to background images, not colors, change your HTML to this:
<div>
<div class='BioUploadProgressBar'>
<div class="initialize">Upload file 0 %</div>
</div>
</div>
and your CSS to this:
.BioUploadProgressBar {
display: block;
width: 350px;
margin: 12px 0;
border: 1px solid #446;
border-radius: 5px;
}
.initialize {
border-radius: 5px;
display:inline-block;
background: #0c0;
width:175px;
;
padding:5px;
}
see FIddle
Gradient solution via colorzilla
.partialGradiend{
background: -moz-linear-gradient(left, rgba(0,204,0,1) 0%, rgba(0,204,0,1) 50%, rgba(0,204,0,0) 51%, rgba(0,204,0,0) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(0,204,0,1)), color-stop(50%,rgba(0,204,0,1)), color-stop(51%,rgba(0,204,0,0)), color-stop(100%,rgba(0,204,0,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, rgba(0,204,0,1) 0%,rgba(0,204,0,1) 50%,rgba(0,204,0,0) 51%,rgba(0,204,0,0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, rgba(0,204,0,1) 0%,rgba(0,204,0,1) 50%,rgba(0,204,0,0) 51%,rgba(0,204,0,0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, rgba(0,204,0,1) 0%,rgba(0,204,0,1) 50%,rgba(0,204,0,0) 51%,rgba(0,204,0,0) 100%); /* IE10+ */
background: linear-gradient(to right, rgba(0,204,0,1) 0%,rgba(0,204,0,1) 50%,rgba(0,204,0,0) 51%,rgba(0,204,0,0) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00cc00', endColorstr='#0000cc00',GradientType=1 ); /* IE6-9 */
width:300px;
border: 1px inset #446;
border-radius: 5px;
text-align:center;
padding:10px 0px;
}
<div class="partialGradiend" style="">
50%
</div>
There is an unwanted gap between the left side of my div and the actual content inside of it (text, images). I have margin and padding both set to 0px for the class. The div is also right next to my nav bar, which may be somehow affecting the spacing.
body
{
background-color: #f5f5f7;
background-image: url("../img/powder.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: right bottom;
font-family: 'Lora', serif;
padding: 0px;
}
.main /* the extra space is occuring in this class */
{
position: relative;
left: 200px;
width: 800px;
height: 400px;
text-align: left;
border-radius: 10px;
padding-left: 0px;
margin: 0px;
background-color: rgba(207, 207, 207, 0.5);
}
nav ul
{
background: #efefef;
background: linear-gradient(to right, #d3c965 0%, #89822a 100%);
background: -moz-linear-gradient(left, #d3c965 0%, #89822a 100%);
background: -webkit-linear-gradient(left, #d3c965 0%,#89822a 100%);
background: -o-linear-gradient(left, #d3c965 0%, #89822a 100%);
box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
padding: 0px 20px;
border-radius: 10px;
list-style: none;
/* display: inline-table;*/
margin: 0px;
}
nav ul li:hover
{
background: linear-gradient(to right, #993300, #4C1A00); /*Standard syntax */
background: -moz-linear-gradient(left, #993300, #4C1A00);/* For Firefox 3.6 to 15 */
background: -webkit-linear-gradient(left, #993300, #4C1A00);/* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(left, #993300, #4C1A00); /* For Opera 11.1 to 12.0 */
}
nav ul li:hover a
{
color: #fff;
}
nav ul li a
{
display: block;
padding: 25px 40px;
color: #4C4C4C;
text-decoration: none;
margin: 0px;
}
The live version of this is available at msu.edu/~bridsonc/henna
Make the div float like the menu.
.main {
float: left
/* change left:200px to margin-left:20px */
Maybe you could than add a padding-left of 10px
change the position of the div from relative to fixed:
.main /* the extra space is occuring in this class */
{
position: fixed;