Reply
css menu issue
Old 05-21-2004, 10:28 AM css menu issue
Novice Talker

Posts: 7
http://www.hydricweb.com/new.html


can anyone tell me what i am doing wrong?

I am attempting to do what the " music " link does.

go from grey to black then back to grey, eventually a darker first grey, then a lighter grey once clicked.

I can't seem to get it to do anything i want though at this point, please help!
Hydric is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-21-2004, 01:04 PM
cmonkey's Avatar
Ultra Talker

Posts: 268
I don't know what you used to create this page but your code is f*@ked; duplicate tags, quotes all over the place... Anyways;

the reason only the music link is working is because your quates don't match up for example:

You have:
<td bgcolor="#CCCCCC" onmouseover="bgColor="#000000" onmouseout="bgColor="#000000"><div align="center" class="style7">

When it should be:
<td bgcolor="#CCCCCC" onmouseover="bgColor='#000000'" onmouseout="bgColor='#000000'"><div align="center" class="style7">

You can't have a set of double quotes in side a set of double quotes, if you need to put quotes in side of quotes, like in this case, the inner set should be single quotes, and NEVER leave a set of quotes open, that's reason only on of your links happens to work properly.
cmonkey is offline
Reply With Quote
View Public Profile
 
Old 05-21-2004, 01:24 PM
Novice Talker

Posts: 7
thanks

what else is out of wack?
Hydric is offline
Reply With Quote
View Public Profile
 
Old 05-21-2004, 02:20 PM
cmonkey's Avatar
Ultra Talker

Posts: 268
mainly the div tags inside of div tags inside of div tags;

For example:
<div align="center" class="style7">
<div align="center" class="style7">
<div align="left" class="style3">
<div align="center"><a href="music.html" target="iframe">Music</a></div>
</div>
</div>

I just don't understand why they are setup like this.
cmonkey is offline
Reply With Quote
View Public Profile
 
Old 05-21-2004, 02:54 PM
Novice Talker

Posts: 7
oh ok, so what is the proper way to notate this?

i fixed some other dumb things i did, i did this half awake last night then tried to get it corrected today, i didnt even know about the quotations thing, i was doing it all along like a href tag, i just happened to get lucky and accidently get one of them right !

so, do i not need to call the class for text on the div tag?

i really appreciate your help, this is my first attempt at a site, i read a couple online sites about it and cracked open a book to try and figure out how to make a website, so it's a bit crappy but with your help it might turn out very good =)
Hydric is offline
Reply With Quote
View Public Profile
 
Old 05-21-2004, 03:11 PM
cmonkey's Avatar
Ultra Talker

Posts: 268
the class call in the div tag is not the problem, it's the nested div tags calling the same class; in the example noted above, you have the same div nested inside of itself, it's not that it won't work, it's just unneccessary code that in the long run will only complicate things.

try and keep your code as clean and organized as possible.
cmonkey is offline
Reply With Quote
View Public Profile
 
Old 05-21-2004, 05:28 PM
Novice Talker

Posts: 7
awesome, thanks man.

please let me know if i can do anything better, i will work at it.
Hydric is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to css menu issue
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14078 seconds with 12 queries