Irish SEO,  Marketing & Webmaster Discussion

 
play.com free delivery

Ooo I'm the first! - Html/css link Q

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 ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help > HTML Basics

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 15-01-2007, 02:33 PM
Coder
 
Join Date: Dec 2006
Posts: 44
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
fobby will become famous soon enough
Default Ooo I'm the first! - Html/css link Q

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;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 15-01-2007, 02:40 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,007
Nominated 5 Times in 3 Posts
TOTW/F/M Award(s): 0
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Quote:
Originally Posted by fobby View Post
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;
}
First of all you give the a tag the same css tag for no reason.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 15-01-2007, 03:16 PM
Coder
 
Join Date: Dec 2006
Posts: 44
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
fobby will become famous soon enough
Default

Ok, thanks will try later ...


Quote:
Originally Posted by louie View Post
First of all you give the a tag the same css tag for no reason.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 15-01-2007, 04:14 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 15-01-2007, 06:35 PM
Coder
 
Join Date: Dec 2006
Posts: 44
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
fobby will become famous soon enough
Default

ok, think I gota ya, will play around for a bit to make sure, thanks lads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 15-01-2007, 06:48 PM
blacknight's Avatar
Web Slave
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,260
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 15-01-2007, 09:30 PM
insert-witty-remark-here
 
Join Date: Oct 2006
Location: Dundalk
Posts: 164
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
gary.b will become famous soon enough
Default

Yep - it comes with HomeSite 5 < best thing to use for HTML.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 16-01-2007, 11:43 AM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,007
Nominated 5 Times in 3 Posts
TOTW/F/M Award(s): 0
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
html or css, link, ooo

« - | Inheritance + CSS »
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

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


All times are GMT +1. The time now is 04:05 PM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0