I got a small problem with CSS and SSI
First I want to tell that my server DOES support SSI and I did make a .htaccess file on my server as instructed by the hostingservice themselves.
The main file has been saved as index.shtml and I used
<!--#include virtual="menu.txt" -->to include the menu file.
In this menu file is this:
<div id="menu"> <div class="nav1"> <a href="#"><img src="images/mainmenu/office.png" alt="" /></a></div> <!--Button 1 static image--> <div class="nav2"> <a href="#"><img src="images/mainmenu/media.png" alt="" /></a></div> <!--Button 2 static image--> <div class="nav3"> <a href="#"><img src="images/mainmenu/internet.png" alt="" /></a></div> <!--Button 3 static image--> <div class="nav4"> <a href="#"><img src="images/mainmenu/develop.png" alt="" /></a></div> <!--Button 4 static image--> <div class="nav5"> <a href="#"><img src="images/mainmenu/web.png" alt="" /></a></div> <!--Button 5 static image--> <div class="nav6"> <a href="#"><img src="images/mainmenu/skype.png" alt="" /></a></div> <!--Button 6 static image--> </div>
This is all working fine (at least everything is shown correctly)
But the problem starts with the swapping images. This is (a part of) my CSS file which is related to the swapping images:
/*Start button 1*/
div.nav1 {
position: relative;
width: 125px;
height: 298px;
float: left;
margin-left: 20px;
margin-right: 10px;
margin-bottom: 20px;
background-image:url("images/mainmenu/office_pressed.png");
}
div.nav1 a, div.nav1 a:link, div.nav1 a:visited {display:block;}
div.nav1 img {width:100%;height:100%;border:0;}
div.nav1 a:hover img {visibility:hidden;}
/*End button 1*/
/*Start button 2*/
div.nav2 {
position: relative;
width: 125px;
height: 298px;
float: left;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 20px;
background-image:url("images/mainmenu/media_pressed.png");
}
div.nav2 a, div.nav2 a:link, div.nav2 a:visited {display:block;}
div.nav2 img {width:100%;height:100%;border:0;}
div.nav2 a:hover img {visibility:hidden;}
/*End button 2*/
etc.
I am calling the CSS file into my index.shtml file and it works as far as showing the main pictures and the divs. But the swapping never happens.
I have tryed a javascript code (auto code from expressionweb3) and it didnt work with SSI either.
Anyone can point me in the right direction please?
Thanks in advance!
Ferdri3


Sign In
Create Account

Back to top









