I'm playing around with changing my Navigation menu to CSS. But I know very little about CSS.
Here are my pages:
LINK to original Updates page
LINK to CSS Updates page
LINK to original Roster page
LINK to CSS Roster page
I think the CSS menus look so much better than the original menus.
I've just adapted the CSS coding used on the Roster page. However I would like to reduce the size of the Menu a bit but this also reduces the Roster columns which creates text wrapping which I want to avoid.
Is there any way to change one CSS style on a page without changing another?
I"ve also been unable to change the font size. Here's my code:
<style type="text/css">
#menu a, #menu a:visited {
font-family:comic sans ms;
text-decoration:none;
text-align:center;
background-color:#7ED0F2;
color:black;
display:block;
width:10em;
padding:0.1em;
margin:0.2em auto;
border-right:3px solid #7ED0F2;
border-left:3px solid #7ED0F2;
}
#menu a:hover {
border-right:3px solid #F6Bc1C;
border-left:3px solid #F6Bc1C;
background-color:gold;
}
</style></style>
I tried adding to the above code:
font-size: 8
and font-size:80%
and font-size-adjust:0.80
but nothing changes. What code would I add to adjust the font size and the height of the boxes?
Will this change create any problems I am overlooking?
Thanks for your help and comments.
Here are my pages:
LINK to original Updates page
LINK to CSS Updates page
LINK to original Roster page
LINK to CSS Roster page
I think the CSS menus look so much better than the original menus.
I've just adapted the CSS coding used on the Roster page. However I would like to reduce the size of the Menu a bit but this also reduces the Roster columns which creates text wrapping which I want to avoid.
Is there any way to change one CSS style on a page without changing another?
I"ve also been unable to change the font size. Here's my code:
<style type="text/css">
#menu a, #menu a:visited {
font-family:comic sans ms;
text-decoration:none;
text-align:center;
background-color:#7ED0F2;
color:black;
display:block;
width:10em;
padding:0.1em;
margin:0.2em auto;
border-right:3px solid #7ED0F2;
border-left:3px solid #7ED0F2;
}
#menu a:hover {
border-right:3px solid #F6Bc1C;
border-left:3px solid #F6Bc1C;
background-color:gold;
}
</style></style>
I tried adding to the above code:
font-size: 8
and font-size:80%
and font-size-adjust:0.80
but nothing changes. What code would I add to adjust the font size and the height of the boxes?
Will this change create any problems I am overlooking?
Thanks for your help and comments.
Comment