Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Scripts

Reply
 
LinkBack Thread Tools Display Modes
Old 02-19-2010, 02:13 PM   #1
Bronze Member
 
wbmkk's Avatar
 
Join Date: Oct 2009
Location: Whitley Bay, UK
Posts: 43
Default Horizontal Navigation using pre-made graphic buttons : HELP !

Hi

Can somebody please help me. I did a horizontal menu at ‘evening class’ where I am trying to learn about Dreamweaver, which was pretty easy.

I am doing some practice now, but unfortunately, at home, all I have is Notepad++ and Paint.net

I have made buttons:-

A_up.png, A_down.png B_up.png …. F_down.png

for 2 states of 6 buttons in total, saved in a folder “buttons”

I have made out my list but am having difficulty with the next bit

I know I could easily use CSS only to set different colours for everything, but this is my first time, at home trying to use pre-made graphics for my links. Previously I have only used simple text and CSS.

Can anybody please advise

Do I need a separate div for the A_menu button, followed by the B_menu button etc

Many many thanks !


<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
</ul>
wbmkk is offline   Reply With Quote


Old 03-27-2010, 09:29 AM   #2
Bronze Member
 
Join Date: Mar 2010
Location: Norfolk, UK
Posts: 78
Default

set up the html like this:
Code:
<ul>
    <li id="a">A</li>
    <li id="b">B</li>
    <li id="c">C</li>
    <li id="d">D</li>
    <li id="e">E</li>
    <li id="f">F</li>
</ul>
Then have CSS something like:
Code:
li#a {
    background: url(images/A_up.png);
}

li#a:hover {
    background: url(images/A_down.png);
}
You'll need to do this for each of the <li> id's

There are other things you can do to improve this, but this is a start & will work fine for now.

I'd suggest that you use w3schools/ as a reference as it is easy to follow & very quick to fin the information that you're looking for.
__________________
Website Design in Norfolk
Twitter
craftygeek is offline   Reply With Quote
Old 04-03-2010, 11:20 PM   #3
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,050
Default

also sprite the images for the buttons (this way you have one image, not 10+)

shoot me a pm if you dont know to do this
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Old 04-08-2010, 08:37 PM   #4
Bronze Member
 
wbmkk's Avatar
 
Join Date: Oct 2009
Location: Whitley Bay, UK
Posts: 43
Default

Sorry for the delay, thanks for your replies.

Just, posted an new question on the furum ... can you assist please ?
wbmkk is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:08 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.