Inline Style sheet

liunx

Guest
Hope someone can help me with a problem. All my text links are controlled by my external style sheets. I have the following code that i want to apply an inline style to and over ride it with..<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_home.lasso">Home</a> &nbsp;&nbsp;&nbsp; <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_aboutus.lasso">About <br />
Us</a> &nbsp;&nbsp;&nbsp; <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_advertise.lasso">Advertise</a> &nbsp;&nbsp;&nbsp; <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_contact.lasso">Contact Us</a> &nbsp;&nbsp;&nbsp; <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_disclaimer.lasso">Disclaimer</a> <br />
&nbsp;&nbsp;&nbsp; <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_links.lasso">Links</a><br />
<br />
I want these links to be white and change to blue on hover over and no text decoration. Can anyone help me do this? I've been trying for 2 hours with no results. <br />
Thanks a lot.<!--content--><span class="otherlinks"><br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_home.lasso">Home</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_aboutus.lasso">About <br />
Us</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_advertise.lasso">Advertise</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_contact.lasso">Contact Us</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_disclaimer.lasso">Disclaimer</a> <br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_links.lasso">Links</a> <br />
</span><br />
<br />
Then in the head of the page after the link for the external sheet put:<br />
<br />
<style><br />
.otherlinks a {color:white; text-decoration:none}<br />
.otherlinks a:hover {color:blue; text-decoration:none}<br />
</style><br />
<br />
<br />
HTH<!--content-->I've used the code but it's not overwriting my style sheet, my code is as follows...<br />
<br />
<LINK REL=STYLESHEET TYPE="text/css" HREF=http://www.htmlforums.com/archive/index.php/"itc-style.css"><br />
<style> <br />
.otherlinks a {color:white; text-decoration:none} <br />
.otherlinks a:hover {color:blue; text-decoration:none} <br />
</style> <br />
<br />
<span class="otherlinks"> <br />
<a href="/itc_home.lasso">Home</a> &nbsp;&nbsp;&nbsp; <a href=http://www.htmlforums.com/archive/index.php/"/itc_aboutus.lasso">About <br />
Us</a> &nbsp;&nbsp;&nbsp; <a href=http://www.htmlforums.com/archive/index.php/"/itc_advertise.lasso">Advertise</a> &nbsp;&nbsp;&nbsp; <br />
<a href="/itc_contact.lasso">Contact Us</a> &nbsp;&nbsp;&nbsp; <a href=http://www.htmlforums.com/archive/index.php/"/itc_disclaimer.lasso">Disclaimer</a> <br />
&nbsp;&nbsp;&nbsp; <a href=http://www.htmlforums.com/archive/index.php/"/itc_links.lasso">Links</a><br />
</span><br />
<br />
Any ideas? I still have my blue links underlined as defined in the external style sheet.<br />
Thanks.<!--content-->Try<br />
<LINK REL=STYLESHEET TYPE="text/css" HREF=http://www.htmlforums.com/archive/index.php/"itc-style.css"> <br />
<style> <br />
.otherlinks a:link, a:visited, a:active {color:white; text-decoration:none} <br />
.otherlinks a:hover {color:blue; text-decoration:none} <br />
</style> <br />
<br />
<span class="otherlinks"> <br />
<a href="/itc_home.lasso">Home</a> <a href=http://www.htmlforums.com/archive/index.php/"/itc_aboutus.lasso">About <br />
Us</a> <a href=http://www.htmlforums.com/archive/index.php/"/itc_advertise.lasso">Advertise</a> <br />
<a href="/itc_contact.lasso">Contact Us</a> <a href=http://www.htmlforums.com/archive/index.php/"/itc_disclaimer.lasso">Disclaimer</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_links.lasso">Links</a> <br />
</span><!--content-->Thanks, it's working now only with a slight problem. When i move a pointer over one of the links they all seem to move around a lot. I have no sizes specified in my style, just the colors. Anyone know why. There are sizes specified in my external style sheet, will that make a difference?<!--content-->Originally posted by celticking <br />
...move around a lot...<br />
Please define.<!--content-->When i move a pointer over a link, the color changes as it should but the font also increases in size. This is for the links within <span class> listed above. <br />
Thanks.<!--content--><LINK REL=STYLESHEET TYPE="text/css" HREF=http://www.htmlforums.com/archive/index.php/"itc-style.css"> <br />
<style> <br />
.otherlinks a:link, a:visited, a:active {colorwhite; text-decoration: none; font-size: medium} <br />
.otherlinks a:hover {color: blue; text-decoration: none; font-size: medium} <br />
</style> <br />
<br />
<span class="otherlinks"> <br />
<a href="/itc_home.lasso">Home</a> <a href=http://www.htmlforums.com/archive/index.php/"/itc_aboutus.lasso">About <br />
Us</a> <a href=http://www.htmlforums.com/archive/index.php/"/itc_advertise.lasso">Advertise</a> <br />
<a href="/itc_contact.lasso">Contact Us</a> <a href=http://www.htmlforums.com/archive/index.php/"/itc_disclaimer.lasso">Disclaimer</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_links.lasso">Links</a> <br />
</span><!--content-->Everything works just right now.<!--content-->In my main page i have this code...<br />
<LINK REL=STYLESHEET TYPE="text/css" HREF=http://www.htmlforums.com/archive/index.php/"itc_layout/itc-style.css"><br />
<style> <br />
.otherlinks a:link, a:visited, a:active {color:white; text-decoration:none} <br />
.otherlinks a:hover {color:blue; text-decoration:none} <br />
</style><br />
<br />
The embedded style i have only applied to some links at the top of my page that sit on a red graphic. All the other links sit on a white background and should be controlled by my external style sheet? The code is...<br />
<br />
BODY {<br />
color: Black;<br />
font-family: Verdana, Arial, <br />
"Courier New", "MS Sans Serif";<br />
font-size: small;<br />
text-align: left;<br />
text-decoration : underline;<br />
<br />
}<br />
<br />
A:LINK, A:VISITED, A:ACTIVE {<br />
color : #000099;<br />
text-decoration : underline;<br />
font-family: Arial, Helvetica, sans-serif;<br />
font-size: small;<br />
<br />
}<br />
<br />
<br />
<br />
A:HOVER {<br />
color: #7B68EE;<br />
text-decoration: underline;<br />
font-family : Arial, Helvetica, sans-serif;<br />
font-size : small;<br />
}<br />
<br />
The A:LINK and A:HOVER work correctly but the VISITED and ACTIVE seem to be white, as in my embedded sheet so i can't see them on the page.<br />
<br />
Can anyone see a problem with my code?<br />
Thanks.<!--content-->If i'm using <br />
<br />
<LINK REL=STYLESHEET TYPE="text/css" HREF=http://www.htmlforums.com/archive/index.php/"itc-style.css"> <br />
<style> <br />
.otherlinks a {color:white; text-decoration:none} <br />
.otherlinks a:hover {color:blue; text-decoration:none} <br />
</style> <br />
<br />
<span class="otherlinks"> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_home.lasso">Home</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_aboutus.lasso">About <br />
Us</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_advertise.lasso">Advertise</a> <br />
<a href="/itc_contact.lasso">Contact Us</a> <a href=http://www.htmlforums.com/archive/index.php/"/itc_disclaimer.lasso">Disclaimer</a> <br />
<a href=http://www.htmlforums.com/archive/index.php/"/itc_links.lasso">Links</a> <br />
</span> <br />
shouldn't this only apply to where i specify <br />
<span class="otherlinks"> ? This code is applying to all my links throughout the site, instead of my external style sheet. Is there anybody who can tell me how i rectify this. I only want <span class="otherlinks"> to control two particular areas. I then want my external sheet to control all other links sitewide. Is there a different way i should be using?<br />
You can see the problem i'm having at <br />
<!-- m --><a class="postlink" href="http://www.inthecredits.com/itc_home.lasso">http://www.inthecredits.com/itc_home.lasso</a><!-- m --><br />
Select any link on a white background and it'll disappear due to the visited link be set from <span class="otherlinks"> I'm really confused by all this.<br />
Thanks.<!--content-->
 
Back
Top