I'm learning. Slowly, but I am learning. I really do appreciate the help so many on here have given me as I try to get a handle on CSS. I learned HTML back when it was just HTML, and haven't used it in a very long time. Trying to pick up CSS has been an experience. Anyway, here is my latest stupid question.
I am using css to load a background image and define a menu section. This has worked well for me but I have hit a snag. On this particular page I use a bitmap on the background image. I've fiddled and I looked at references, but I don't see any way to load the bitmap using the css, and I don't see a way to load it later. Here is my CSS.... ignore any \", it's served via php.
<style type=\"text/css\">
body {background: url(xtile.jpg);
scrollbar-base-color:#baa276; font:Verdana;}
#main {position: relative;
background: url(xback.jpg) top left no-repeat;
margin: 0 auto;
width: 800px;
height: 700px;}
#menu {position: relative;
top: 51px;
margin-left: 95px;
padding: 0;
height: 31px;}
#menu li {display: inline;}
a:link{text-decoration:none;}
a:visited{text-decoration:none;}
a:hover{text-decoration:none;}
a:active{text-decoration:none;}
.brown {color:#3e0202; font-size:12pt;}
.red {color:#510202; font-size:10pt;}
</style>
The bitmap is for xback.jpg. If I were loading it in the html I would just use something like <img src="xback.jpg usemap="#xback.jpg"> and then load the map. I'm really at a loss. I know I can't add the usemap=#xback.jpg to the CSS, so that leaves me searching for some way of loading the whole thing later. I know that I could use divisions to load everything in the html and have it work, but I'm looking for a learning opportunity. If anyone knows a way to make this work, please let me know.
I am using css to load a background image and define a menu section. This has worked well for me but I have hit a snag. On this particular page I use a bitmap on the background image. I've fiddled and I looked at references, but I don't see any way to load the bitmap using the css, and I don't see a way to load it later. Here is my CSS.... ignore any \", it's served via php.
<style type=\"text/css\">
body {background: url(xtile.jpg);
scrollbar-base-color:#baa276; font:Verdana;}
#main {position: relative;
background: url(xback.jpg) top left no-repeat;
margin: 0 auto;
width: 800px;
height: 700px;}
#menu {position: relative;
top: 51px;
margin-left: 95px;
padding: 0;
height: 31px;}
#menu li {display: inline;}
a:link{text-decoration:none;}
a:visited{text-decoration:none;}
a:hover{text-decoration:none;}
a:active{text-decoration:none;}
.brown {color:#3e0202; font-size:12pt;}
.red {color:#510202; font-size:10pt;}
</style>
The bitmap is for xback.jpg. If I were loading it in the html I would just use something like <img src="xback.jpg usemap="#xback.jpg"> and then load the map. I'm really at a loss. I know I can't add the usemap=#xback.jpg to the CSS, so that leaves me searching for some way of loading the whole thing later. I know that I could use divisions to load everything in the html and have it work, but I'm looking for a learning opportunity. If anyone knows a way to make this work, please let me know.