Hi,
Something strange is happening in that the "first" or "leftmost images, code for which is highlighted, jump to the upper left corner of the screen and don't stay where they are supposed to. If I get rid of that code and those images, then the next in line ones disappear from where they are supposed to be and jump to the upper left corner of the screen.
Here is the web.css file script:
body {
background: white;
margin: 0;
}
body a {
text-decoration: none;
}
#left {
position: absolute;
left: 50%;
margin-left: -580px;
top: 150px;
}
#main {
overflow: auto;
position: absolute;
left: 50%;
margin-left: -500px;
top: 150px;
height: 330px;
width: 1028px;
}
<!-- COLORS menu rollovers - ROW 1-->
#colorsr1c1 {
position: absolute;
left: 50%;
margin-left: -500px;
top: 150px;
display: block;
width: 200px;
height: 53px;
background: url(colors-acuarele.jpg);
}
#colorsr1c1:hover {
background-position: bottom;
}
#colorsr1c1 span {
display: none;
}
#colorsr1c2 {
position: absolute;
left: 50%;
margin-left: -293px;
top: 150px;
display: block;
width: 200px;
height: 53px;
background: url(colors-iridescent.jpg);
}
#colorsr1c2:hover {
background-position: bottom;
}
#colorsr1c2 span {
display: none;
}
#colorsr1c3 {
position: absolute;
left: 50%;
margin-left: -86px;
top: 150px;
display: block;
width: 200px;
height: 53px;
background: url(colors-ai.jpg);
}
#colorsr1c3:hover {
background-position: bottom;
}
#colorsr1c3 span {
display: none;
}
#colorsr1c4 {
position: absolute;
left: 50%;
margin-left: 121px;
top: 150px;
display: block;
width: 200px;
height: 53px;
background: url(colors-portraits.jpg);
}
#colorsr1c4:hover {
background-position: bottom;
}
#colorsr1c4 span {
display: none;
}
#colorsr1c5 {
position: absolute;
left: 50%;
margin-left: 328px;
top: 150px;
display: block;
width: 200px;
height: 53px;
background: url(colors-target.jpg);
}
#colorsr1c5:hover {
background-position: bottom;
}
#colorsr1c5 span {
display: none;
}
<!-- COLORS menu rollovers - ROW 2-->
#colorsr2c1 {
position: absolute;
left: 50%;
margin-left: -500px;
top: 210px;
display: block;
width: 200px;
height: 53px;
background: url(colors-sketches.jpg);
}
#colorsr2c1:hover {
background-position: bottom;
}
#colorsr2c1 span {
display: none;
}
#colorsr2c2 {
position: absolute;
left: 50%;
margin-left: -293px;
top: 210px;
display: block;
width: 200px;
height: 53px;
background: url(colors-acuarele.jpg);
}
#colorsr2c2:hover {
background-position: bottom;
}
#colorsr2c2 span {
display: none;
}
#colorsr2c3 {
position: absolute;
left: 50%;
margin-left: -86px;
top: 210px;
display: block;
width: 200px;
height: 53px;
background: url(colors-acuarele.jpg);
}
#colorsr2c3:hover {
background-position: bottom;
}
#colorsr2c3 span {
display: none;
}
#colorsr2c4 {
position: absolute;
left: 50%;
margin-left: 121px;
top: 210px;
display: block;
width: 200px;
height: 53px;
background: url(colors-acuarele.jpg);
}
#colorsr2c4:hover {
background-position: bottom;
}
#colorsr2c4 span {
display: none;
}
#colorsr2c5 {
position: absolute;
left: 50%;
margin-left: 328px;
top: 210px;
display: block;
width: 200px;
height: 53px;
background: url(colors-acuarele.jpg);
}
#colorsr2c5:hover {
background-position: bottom;
}
#colorsr2c5 span {
display: none;
}
<!-- OVERALL MENU rollovers -->
#menu1 {
position: absolute;
left: 50%;
margin-left: -411px;
top: 500px;
display: block;
width: 88px;
height: 24px;
background-image: url(menu-colors.gif);
}
#menu1:hover {
background-position: bottom;
}
#menu1 span {
display: none;
}
#menu2 {
position: absolute;
left: 50%;
margin-left: -411px;
top: 480px;
display: block;
width: 88px;
height: 24px;
background-image: url(menu-shapes.gif);
}
#menu2:hover {
background-position: bottom;
}
#menu2 span {
display: none;
}
#menu3 {
position: absolute;
left: 50%;
margin-left: -323px;
top: 480px;
display: block;
width: 85px;
height: 24px;
background-image: url(menu-words.gif);
}
#menu3:hover {
background-position: bottom;
}
#menu3 span {
display: none;
}
#menu4 {
position: absolute;
left: 50%;
margin-left: -238px;
top: 480px;
display: block;
width: 55px;
height: 24px;
background-image: url(menu-info.gif);
}
#menu4:hover {
background-position: bottom;
}
#menu4 span {
display: none;
}
HTML PAGE:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="web.css" />
<title>......................................................................................................................................................... ................................................................................................................................................................ ................................................................................................................................................................ ...</title>
</head>
<body>
<a id="menu1" href="colors.html"><span>COLORS</span></a>
<a id="menu2" href="shapes.html"><span>SHAPES</span></a>
<a id="menu3" href="words.html"><span>WORDS</span></a>
<a id="menu4" href="info.html"><span>info</span></a>
<a id="colorsr1c1" href="#"><span>acuarele</span></a>
<a id="colorsr1c2" href="#"><span>iridescent</span></a>
<a id="colorsr1c3" href="#"><span>AI</span></a>
<a id="colorsr1c4" href="#"><span>target</span></a>
<a id="colorsr1c5" href="#"><span>sketches</span></a>
<a id="colorsr2c1" href="#"><span>portraits</span></a>
<a id="colorsr2c2" href="#"><span>logos</span></a>
</body>
</html>
THANK YOU MUCH!



Reply With Quote

Bookmarks