This is a discussion on Ooo I'm the first! - Html/css link Q within the HTML Basics forums, part of the Coding Help category; I posted this in boards too, a few days ago, but I put it in an existing thread, so I ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I posted this in boards too, a few days ago, but I put it in an existing thread, so I guess it got lost in there ..... When I do the below, it looks good in Dreamweaver and in Firefox. When I test it in IE. 7, the links go back to being the default blue and change the position. Its as if IE is not reading the CSS for these links ?? <div class="contact"> <a href="contact.html" target="_self" class="contact">Contact</a></div> .contact a:link { position: absolute; left: 450px; top: 312px; width: 72px; font-family: "Times New Roman", Times, serif; font-size: 10pt; height: 28px; font-weight: 900; text-decoration: underline; color: #FFFFFF; } |
| |||||
| Quote:
second: when you set a:link make sure you also have a:visited a:hover try this Code: <div class="contact">
<a href="contact.html">Contact</a>
</div>
.contact a:link,.contact a:visited, .contact a:hover {
position: absolute;
left: 450px;
top: 312px;
width: 72px;
font-family: "Times New Roman", Times, serif;
font-size: 10pt;
height: 28px;
font-weight: 900;
text-decoration: underline;
color: #FFFFFF;
}
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| ||||
| Ok, thanks will try later ... kinda lost me on this point though? Do I have to put .class a:link for all links in CSS or only when I'm using the hover/visted attributes ? thanks for the help |
| |||||
| What he's saying is your CSS ".contact a:link" will select all a:links under contact. However, if you assign "contact" to the link then IE doesn't find any links inside the link. (Hmm.. that's hard to explain) Also, try not only setting a:link but also setting :visited,:active and :hover to cover all the bases. |
| |||||
| If you are running windows I'd highly recommend TopStyle - there's a "light" version which is 100% free It helps make sense of a lot of the CSS options that are otherwise quite confusing
__________________ Hosting & Domains|Plesk Vps Hosting|Blog Tips|Films.ie|Gadgets|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||||
| sorry man i have been very sick when i replied to you so didn't get a chance to explain it why and how, but i hope you got it and it worked out for you. |
| Tags |
| html or css, link, ooo |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make a H1 tag in CSS into a link | shanediffily | Coding Help | 4 | 10-10-2006 04:54 PM |
| Use of link: syntax in google | putte | Search Engine Optimisation | 1 | 02-09-2006 09:02 PM |
| best way to link content to different websites | louie | Webmaster Discussion | 3 | 23-06-2006 07:56 PM |
| Javascript Menu Help (again...)? | ButtermilkJack | Coding Help | 18 | 25-04-2006 12:32 PM |
| link building | 9barJoe | Search Engine Optimisation | 6 | 21-02-2006 10:51 PM |