I am redesigning a web site to use css in place of tables. I am having a
problem with the display: block; statement. With the display: block
statement in place in the navbar div I am getting spaces between the lines.
this can be seen at http://mildenhallgroup.org.uk/newsletter-new.htm With
the display statement removed the spaces go but the lines are not full. How
can I fix this? The navbar css follows:
#navbar{
position: absolute;
top: 100px;
left: 0px;
width: 170px;
padding: 3px;
border: 1px #006633 solid;
}
#navbar ul li a:link, #navbar ul li a:visited {
color: #ffffff;
background-color: #006633;
background-image: none;
border-bottom: solid #ffffff 1px;
padding-left: 10px;
text-decoration: none;
display: block;
font-size: .8em;
}
#navbar ul li a:hover {
color: #ffff00;
background-color: #006633;
background-image: none;
}
#navbar ul li {
list-style-type: none;
margin: 0;
padding: 0;
}
#navbar ul {
margin: 0;
padding: 0;
}
Thanks
Albert
problem with the display: block; statement. With the display: block
statement in place in the navbar div I am getting spaces between the lines.
this can be seen at http://mildenhallgroup.org.uk/newsletter-new.htm With
the display statement removed the spaces go but the lines are not full. How
can I fix this? The navbar css follows:
#navbar{
position: absolute;
top: 100px;
left: 0px;
width: 170px;
padding: 3px;
border: 1px #006633 solid;
}
#navbar ul li a:link, #navbar ul li a:visited {
color: #ffffff;
background-color: #006633;
background-image: none;
border-bottom: solid #ffffff 1px;
padding-left: 10px;
text-decoration: none;
display: block;
font-size: .8em;
}
#navbar ul li a:hover {
color: #ffff00;
background-color: #006633;
background-image: none;
}
#navbar ul li {
list-style-type: none;
margin: 0;
padding: 0;
}
#navbar ul {
margin: 0;
padding: 0;
}
Thanks
Albert
Comment