Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-30-2012, 02:49 PM   PM User | #1
Dirty Dan
New to the CF scene

 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Dirty Dan is an unknown quantity at this point
Image and Text Dual Navbar

Hey guys! I'm a HTML and CSS newbie and figured that joining this site would be the logical thing to do if I run into a un-google'able predicament!

Anywho, I designed a navbar in Photoshop, it is 960 pixels in length and 45 pixels in height (excluding the border).



The idea was to hover over each individual button and have the text AND the gif change to their opposite colors.

Not only did that prove too difficult for me, I couldn't even get the base design set up. I can't even set up the images and links in their proper location!

I'm rolling the dice here and hoping someone would recreate or atleast give me an overview of how I'm supposed to do this.

I'd be extremely grateful for any help provided. Kudos.
Dirty Dan is offline   Reply With Quote
Old 12-30-2012, 05:29 PM   PM User | #2
COBOLdinosaur
Regular Coder

 
COBOLdinosaur's Avatar
 
Join Date: Jul 2002
Location: Canada
Posts: 293
Thanks: 0
Thanked 18 Times in 18 Posts
COBOLdinosaur is an unknown quantity at this point
Post your code or a link to the page please.
__________________
100% standards compliant code is 100% correct 100% of the time.
one of my toys from my repository and perhaps some help getting help

Cd&
COBOLdinosaur is offline   Reply With Quote
Old 12-30-2012, 05:33 PM   PM User | #3
Dirty Dan
New to the CF scene

 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Dirty Dan is an unknown quantity at this point
Well, it's not like my code is of any worth. It doesn't even remotely look like what I wanted or work even. I'd rather someone shows me the proper way to do it, from scratch.
Dirty Dan is offline   Reply With Quote
Old 12-30-2012, 05:51 PM   PM User | #4
COBOLdinosaur
Regular Coder

 
COBOLdinosaur's Avatar
 
Join Date: Jul 2002
Location: Canada
Posts: 293
Thanks: 0
Thanked 18 Times in 18 Posts
COBOLdinosaur is an unknown quantity at this point
Quote:
I'd rather someone shows me the proper way to do it, from scratch.
Of course you would. Anytime you can get someone else to do your work for you it is great. However that is generally not how these kind of sites work.

I will advise, consult, mentor, guide, and do what I can to help you learn how to do what you need, but I am not going to do it for you, because you will learn nothing and the simple code required has very little intrinsic value.

The only way the thread has value is if you get your hands dirty with a little code and learn from the experience.
__________________
100% standards compliant code is 100% correct 100% of the time.
one of my toys from my repository and perhaps some help getting help

Cd&
COBOLdinosaur is offline   Reply With Quote
Old 12-30-2012, 06:18 PM   PM User | #5
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
What you want to do is sprite all of the icons in to one large png file i.e http://s.ytimg.com/yts/imgbin/www-hi...-vflmnaCdT.png

Then edit the icons for a color change icon and do the same.

Then for each menu li you will assign a class i.e

Code:
<li class="home"><a href="home">Home</a></li>
Now using the image file you have added all the icons to..

CSS:

Code:
.home {
background: no-repeat url(//imagelocation) -90px -108px; /* these will hide the other icons */
width: 16px;
height: 16px;
Understand what I mean?
tempz is offline   Reply With Quote
Old 12-30-2012, 06:21 PM   PM User | #6
Dirty Dan
New to the CF scene

 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Dirty Dan is an unknown quantity at this point
I understood that! Thanks! Ill go give it a shot and post my code. Because I will have undoubtedly made another mistake.
Dirty Dan is offline   Reply With Quote
Old 12-30-2012, 07:11 PM   PM User | #7
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello Dirty Dan,
I'm not sure what your reason for text is, it's not like those menu items will need to change. I would make the menu buttons icon and word both an image.

I have a demo of a sprite menu like this. It's a three state menu so there is a third part of the image that is used to show what page you're on. Maybe more complicated than what you're looking for...

This is the image it uses -


See the demo here. Click on the Markup and CSS links to see how it's done.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:43 AM.


Advertisement
Log in to turn off these ads.