|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/31/2008 7:53:11 AM
Posts: 4,
Visits: 21
|
|
| Great tutorials! Really helped a lot. I've created my website, but because of the way I've set it up, I've run into the problem of some of the hyperlinks being on a dark background, and others being in the body of text on a white background. I need to know how to have the hyperlink properties only affect one set, and have different properties for the others. www.tccug.net As you can see, the ones at the top I have managed to make white against the dark background, but once you've clicked on them they want to change dark, to the color of the other hyperlinks. If you look in the main body of the index page, you can see there is a dark hyperlink that takes you to another page, and my problem was if I changed the hyperlink properties to keep the ones in the top white, these would turn white also and disappear. I'm trying to have separate link properties for each type of link. How would you accomplish that? It's fine to have them change color after use, but right now, they want to either turn dark on a dark background, or conversely, turn white on a white background. Any help is greatly appreciated.
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 9/16/2008 8:39:15 PM
Posts: 13,
Visits: 81
|
|
| I'm also a newbie, so I can't explain it well, but this was addressed in the 4th video, Formatting & styling, in the Introduction to Microsoft Expression Web series where he changed the colors for the header nav links but left the footer nav links the original color. Hopefully this helps.
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 10/24/2008 2:27:36 PM
Posts: 437,
Visits: 632
|
|
Yes, when you set your link settings, you're setting them for the whole site, but you can indeed directly target sections of your site with different settings.
Right now your main navigation links are only white because you've applied a separate span class to them to make them white, the properties for the links themselves are actually still set to white. So you may want to remove that class from your links after you fix this so it doesn't cause other problems.
If you want to set certain properties for tags only in a certain area, you're going to have to do a little bit of hand coding. I haven't found another way in xWeb to do this automatically.
So, in your case, your navigation appears to be inside of a div with the id of layer7. (FYI, you probably want to get into the habit of giving your styles names that you can use to tell them apart. It will make it easier on you in the long run.) So the code you would need is something like this;
#layer7 a:link { color:#FFFFFF; }
That will tell only links inside of a div with the id of layer7 to be white. You could set up the same thing then for your hover state, visited state, and active state;
#layer7 a:visited { color:#CCCCCC; } and so forth.
Once you have these set in your stylesheet, then you will be able to see them in your styles panels and can modify them through the properties panels. But you will have to hand insert that little bit.
One last piece of caution, make sure your put your link information in the correct order. Links are one area that your order matters. The should go in this order;
a:link
a:visited
a:hover
a:active
=========================
My wife has given birth to our twins, so I'm still going to be spotty around here. It never seems to correct itself does it? I'm sorry, I'm trying.
=========================
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 10/24/2008 2:27:36 PM
Posts: 437,
Visits: 632
|
|
cbell442 (2/3/2008) I'm also a newbie, so I can't explain it well, but this was addressed in the 4th video, Formatting & styling, in the Introduction to Microsoft Expression Web series where he changed the colors for the header nav links but left the footer nav links the original color.
Hopefully this helps.
Thanks for that as well cbell442!
=========================
My wife has given birth to our twins, so I'm still going to be spotty around here. It never seems to correct itself does it? I'm sorry, I'm trying.
=========================
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/31/2008 7:53:11 AM
Posts: 4,
Visits: 21
|
|
| Thanks, I'll go back and look at that one. I think I got lost somewhere in #3, but had enough to build the original site. I've changed it a lot, and could not find the answer to that anywhere. JJacy
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/31/2008 7:53:11 AM
Posts: 4,
Visits: 21
|
|
Thanks, Dustin. I'll be redoing a lot of things on the site, thanks to your great tutorials, and I'm going to give that a try. Now that I've found all this great information, I'm tempted to dump what I have and start from scratch. I've hunted all over looking for info on how to center the website, and now that I've found it, I don't see a way to do it after the fact, so after going over all the tutorials again, since I can understand it a lot more now, I think I'm going to start fresh. thanks again.JJacy
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 10/24/2008 2:27:36 PM
Posts: 437,
Visits: 632
|
|
I'm assuming at this point you've started over, but for the record, you could still get your site centered after the fact. You would still just need to wrap your site in another wrapper div most likely. Or you could actually also set your width and margins on the body tag itself, which works, but isn't the best idea in my opinion.
=========================
My wife has given birth to our twins, so I'm still going to be spotty around here. It never seems to correct itself does it? I'm sorry, I'm trying.
=========================
|
|
|
|