L
Len Philpot
I'm very new to CSS (just experimenting) and this may well just be an
unavoidable difference between the two browsers, but I'd like to know
for sure. I have no others here at home to test with. At work I have
Opera, Konqueror, Galeon, etc., etc. but not here.
Anyway, the following code just creates a scrolling menu (complete with
dummy links ;-) I've commented out all but basically the essentials and
still it happens : In Firefox it automatically adjusts the width
properly and doesn't generate a horizontal scrollbar (just the
vertical). While in IE it /always/ makes it too narrow and thus adds one
there. The commented stuff is obviously just visual candy, but it
happens regardless.
I'm more than wide open to the distinct possibility I'm going astray
somehow, but if so, what am I doing wrong?
<html>
<head>
<style type="text/css">
<!--
.menu
{
position: absolute;
height: 6em;
overflow: auto;
border-color: black;
border-style: solid;
border-width: 1px;
/*
left: 10px;
top: 10px;
background-color: rgb(220,220,220);
padding: 15px;
padding-top: 5px;
padding-bottom: 5px;
font-weight: bold;
font-size: 10pt;
*/
}
/*
.menu_item
{
color: black;
text-decoration: none;
padding-left: 5px;
padding-right: 5px;
}
.menu_item:hover
{
color: yellow;
background-color: rgb(0,0,196);
}
*/
-->
</style>
</head>
<body>
<p class="menu">
<a href="dummy" class="menu_item">Menu choice one</a><br>
<a href="dummy" class="menu_item">Menu choice two</a><br>
<a href="dummy" class="menu_item">Menu choice three</a><br>
<a href="dummy" class="menu_item">Menu choice four</a><br>
<a href="dummy" class="menu_item">Menu choice five</a><br>
<a href="dummy" class="menu_item">Menu choice six</a><br>
<a href="dummy" class="menu_item">Menu choice seven</a><br>
<a href="dummy" class="menu_item">Menu choice eight</a><br>
<a href="dummy" class="menu_item">Menu choice nine</a><br>
<a href="dummy" class="menu_item">Menu choice ten</a><br>
</p>
</body>
</html>
Thanks!
unavoidable difference between the two browsers, but I'd like to know
for sure. I have no others here at home to test with. At work I have
Opera, Konqueror, Galeon, etc., etc. but not here.
Anyway, the following code just creates a scrolling menu (complete with
dummy links ;-) I've commented out all but basically the essentials and
still it happens : In Firefox it automatically adjusts the width
properly and doesn't generate a horizontal scrollbar (just the
vertical). While in IE it /always/ makes it too narrow and thus adds one
there. The commented stuff is obviously just visual candy, but it
happens regardless.
I'm more than wide open to the distinct possibility I'm going astray
somehow, but if so, what am I doing wrong?
<html>
<head>
<style type="text/css">
<!--
.menu
{
position: absolute;
height: 6em;
overflow: auto;
border-color: black;
border-style: solid;
border-width: 1px;
/*
left: 10px;
top: 10px;
background-color: rgb(220,220,220);
padding: 15px;
padding-top: 5px;
padding-bottom: 5px;
font-weight: bold;
font-size: 10pt;
*/
}
/*
.menu_item
{
color: black;
text-decoration: none;
padding-left: 5px;
padding-right: 5px;
}
.menu_item:hover
{
color: yellow;
background-color: rgb(0,0,196);
}
*/
-->
</style>
</head>
<body>
<p class="menu">
<a href="dummy" class="menu_item">Menu choice one</a><br>
<a href="dummy" class="menu_item">Menu choice two</a><br>
<a href="dummy" class="menu_item">Menu choice three</a><br>
<a href="dummy" class="menu_item">Menu choice four</a><br>
<a href="dummy" class="menu_item">Menu choice five</a><br>
<a href="dummy" class="menu_item">Menu choice six</a><br>
<a href="dummy" class="menu_item">Menu choice seven</a><br>
<a href="dummy" class="menu_item">Menu choice eight</a><br>
<a href="dummy" class="menu_item">Menu choice nine</a><br>
<a href="dummy" class="menu_item">Menu choice ten</a><br>
</p>
</body>
</html>
Thanks!