![]() |
[CSS Menu] Why Isn't This Working
the following code isn't loading "images/blueslate_backgroundOVER.gif" on mouse hover (just the top half of it). i got this tutorial from www.13styles.com/css-menus/slate/ and it works fine on this site but i can't seem to get it working myself on a fresh html page. any ideas?
Code:
<style type="text/css"> |
Mind you, I only took a quick peek at your code and didn't see any problems outright. If only half of the image is appearing, then that means there are some sizing issues with the div that is using that image as the background. Remember that padding can affect the size of a div.
For example, if you have a div and you want an image background for it that's 100px by 100px, but you want to pad that div by 10px, then you'd declare a width of 80px and a height of 80px. Hope this helps, and if not, maybe someone with more time and experience can give their two cents. Quote:
|
Quote:
edit _ plus put the style coding in your <head> |
@Sands : thanks for the response. i'll try playing with the padding but the code works as is on the tutorial site with my browser.
@Deej : i've tried putting the script code in the html head plus in its own .css file but same results. my version also doesn't have the comments/prefixes. :helpme |
figured it out...
code: padding:14px 22px 0 22px;height:28px; should be: padding:14px 22px 0 22px;height:42px; typos in tutorials... :disgust |
| All times are GMT -7. The time now is 02:28 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123