Links

This is a discussion on "Links" within the Starting Out section. This forum, and the thread "Links are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 2nd, 2007, 16:14
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Links

Hello,

I have a set of images as links e.g
Code: Select all
<a href="#"><img src="img.gif" /></a>
And heres my CSS..
Code: Select all
a {
    text-decoration: none;
    color: #277227;
    border-bottom: 1px dashed #000;
}

a:hover {
    border-bottom: 1px solid #000;
}
However, I do not want the images to appear with a border. How do I go about doing this?
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  
Old Jul 2nd, 2007, 16:44
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

The images should be bg images if they are for links and the image is purely presentational. Why are you using images for links? Is it just a one off or are all your links like this? Have you got a mock-up we could see.

Something like this should work.

HTML:
Code: Select all
<p><a href="#" title="To my first link" class="link1">Link1</a></p>
CSS:
Code: Select all
p a.link1 {
text-indent: -9999px;
display: block;
width: xxpx;
height: xxpx;
background: #fff url('link1img.gif') no-repeat;
}
Something like this would be best I guess. That way the text is still intact.

Otherwise
Code: Select all
a img { border:none; }
should work.

Let me know if it doesn't, I may not have thought it through.

Pete.
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  
Old Jul 2nd, 2007, 17:02
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

Nope, a img doesn't seem to be working.
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  
Old Jul 2nd, 2007, 17:18
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

Try img a then. I always struggle with this. Or maybe just img.

Pete.
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  
Old Jul 2nd, 2007, 17:28
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

Tried both. I'll just give the links a class.
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  
Old Jul 2nd, 2007, 18:28
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

I was told recently to add border: none or was it border: 0 to the css.
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  
Old Jul 2nd, 2007, 19:43
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

Yep, I tried both! I was just wondering if there was a quicker fix because now I have to go through all the pages and give the links classes.
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  
Old Jul 3rd, 2007, 03:03
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

Post the page and the css up here. I am the type of guy that must see the page and play with it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 4th, 2007, 02:48
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

Your answer lies in the CSS forum ... check the stickies ... most importantly the CSS Beginner FAQ It's in there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jul 4th, 2007, 07:02
Junior Member
Join Date: Jan 2007
Location: Latvia
Age: 27
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Links

Hi, maybe the image itself has a border. Did you check that?
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
links

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PR4 links for sale...links in an excellent position agent14 Link Building and Link Sales 4 Sep 19th, 2008 16:09
Msie doesn't make my links links.. delusion Web Page Design 7 Nov 7th, 2007 08:05
PR 5 Links available for recip links GARY Link Building and Link Sales 1 Aug 19th, 2006 09:52
Blured Links (image links) bruno89 Web Page Design 2 Jul 25th, 2006 14:48
Different coloured links without modifying links? Webforumz Staff Web Page Design 12 Aug 29th, 2003 18:48


All times are GMT. The time now is 03:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42