Sure could use some help here. Trying to add ‘garage door’ menu to WordPress theme. Here is what I did
1. Added images to image folder
2. Added CSS to my ‘style.css file’
3. copied .js files to root folder, not in js folder though.
4. Modified header.php file
If someone has time just email me please
Thanks All. I got it in my Site ans assigned a link to the ‘Contact Door’. But when you click it something weird happens. You will see it and hopefully have some advise. Just added same link to the HTML file that is in the download from CSS Tricks. And when I click it there is no duplication of the menu like online.
FYI – I took off the (overflow: auto) in the CSS ul#menuback. The menu does not duplicate and link works, but when clicked I get 2 lines on the left of the menu, the same height as the menu.
The only thing that I can see is wrong is margin: 0 auto. That is to center it inside a div but you have floated it right.
Perhaps that is confusing the issue?
It just occurred to me that where you call the slider function in the page head you might want to replace every instance of $ with "jQuery"
I am now at the last stage of this. All is in and working great, but to further my learning I want to make a sprite from all the images that make up the menu. Just use one image. I have not been able to find help on this. I fully understand the propcess but am hung up at one point.
This line of code is for images in the CSS
This is code for my Sprite for the background image
How is the new sprite code merged into the URL code???? and
This is the script for the whole sprite image. Where do we put it?????
thats it, hope someone has been gurued with this
Thanks so much
How do you mean merged into?
Your CSS Styles your HTML, so personally I would style my a tags to be blocks with the correct width and height and the correct background image at the right position – then I would use the a:hover class to change the background position on the correct elements…
So – yea – how do you mean merged? lol
Ok – still not too clear on what exactly you are trying to do other than use sprites lol, a little more description or code would be useful – a live link would be awesome.
what dosnt work about it? what tag/class/id are you styling with it?
what I would recomend, because I dont really have anymore info, have a look at this video:
http://www.from-the-couch.com/post.cfm/ … ss-sprites
There is also on on CSS Tricks
http://css-tricks.com/css-sprites-what- … -use-them/
You must be logged in to reply to this topic.