RomanTaylor
06-11-2010, 07:02 AM
I am building a web site from scratch and I haven't done it for almost a year so I need a refresher. I've been fighting with link styles for couple days now, and still did not achieve desired result.
Pretty much I am trying to have different style links for the menu bar and there rest of the website, but once link is clicked it changes style to the style of my menu bar :mad:
http://76.115.57.103/index.php <-- click on one of the links on the right side under pictures (Facebook or Flickr link) and see yourself. When you go back to that page those two links will look like menu bar.
Related CSS:
.sidebar a:link, a:active, a:visited, a:hover {
font-size: 100%;
color: #5A8EC6;
text-decoration: none;
font-family: Tahoma;
font-weight: normal;
background-color: white;
}
.menu a:link, a:active, a:visited {
color: white;
font-family: Tahoma;
font-size: 7pt;
font-weight: bold;
border-right: 1px solid white;
text-decoration: none;
background-color: #313031;
padding: 5px;
}
.menu a:hover {
background-color: #5A8EC6;
}
Menu bar HTML:
<div id="logo"></div>
<div id="menu">
<span class="menu">
<a href="/../index.php">Home</a>
<a href="/../blog/index.php">Blog</a>
<a href="/../event/index.php">Upcoming Events</a>
<a href="/../store/index.php">Store</a>
<a href="/../about/index.php">About</a>
<a href="/../contacts/index.php">Contacts</a>
</span>
</div>
Sidebar HTML:
<img src="/../images/content/store_coming.jpg" alt="503 Store is coming" /><br />
<img src="/../images/content/event_coming.jpg" alt="Event calendar is coming" /><br />
<span class="sidebar">
<a href="http://www.facebook.com/#!/group.php?gid=120272964680763">Facebook</a> | <a href="http://www.flickr.com/photos/TeamPlayerCo">Flickr</a><br />
</span>
Thx in Advance.
Pretty much I am trying to have different style links for the menu bar and there rest of the website, but once link is clicked it changes style to the style of my menu bar :mad:
http://76.115.57.103/index.php <-- click on one of the links on the right side under pictures (Facebook or Flickr link) and see yourself. When you go back to that page those two links will look like menu bar.
Related CSS:
.sidebar a:link, a:active, a:visited, a:hover {
font-size: 100%;
color: #5A8EC6;
text-decoration: none;
font-family: Tahoma;
font-weight: normal;
background-color: white;
}
.menu a:link, a:active, a:visited {
color: white;
font-family: Tahoma;
font-size: 7pt;
font-weight: bold;
border-right: 1px solid white;
text-decoration: none;
background-color: #313031;
padding: 5px;
}
.menu a:hover {
background-color: #5A8EC6;
}
Menu bar HTML:
<div id="logo"></div>
<div id="menu">
<span class="menu">
<a href="/../index.php">Home</a>
<a href="/../blog/index.php">Blog</a>
<a href="/../event/index.php">Upcoming Events</a>
<a href="/../store/index.php">Store</a>
<a href="/../about/index.php">About</a>
<a href="/../contacts/index.php">Contacts</a>
</span>
</div>
Sidebar HTML:
<img src="/../images/content/store_coming.jpg" alt="503 Store is coming" /><br />
<img src="/../images/content/event_coming.jpg" alt="Event calendar is coming" /><br />
<span class="sidebar">
<a href="http://www.facebook.com/#!/group.php?gid=120272964680763">Facebook</a> | <a href="http://www.flickr.com/photos/TeamPlayerCo">Flickr</a><br />
</span>
Thx in Advance.