This is a discussion on "CSS image link attributes" within the Web Page Design section. This forum, and the thread "CSS image link attributes are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS image link attributes
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS image link attributes
Hi, My image links are taking on the attributes of text links (bottom border, specifically) how can i declare image link propertiesusing css that will over ride the text link properties?
Thank you for any help, L |
|
|
|
|||
|
Re: CSS image link attributes
In the image code set border="0" and that should be all that you have to change.
Your code should look something like this (example has basic image coding):
Last Blog Entry: First Post! (Apr 18th, 2008)
|
|
|||
|
Re: CSS image link attributes
It's better to do this with css. Img borders will not override the css-determined border. Put this into your css:
Cheers, Stuart
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
||||
|
Re: CSS image link attributes
Quote:
See swagner's reply. |
|
|||
|
Re: CSS image link attributes
Hey guys, thanks for all the help. I tried to add
a img { border: 0; } to the css, but I don't think it did the trick, although it seems to have worked in IE. I'm checking it in firefox with no change, though. Here is the site if it helps. I'm sure there are a hundred more erros y'all will see haha.. i'm just trying to figure this underline out.. thanks again! |
|
|||
|
Re: CSS image link attributes
You forgot the link!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|||
|
Re: CSS image link attributes
haha. whoops. http://www.timbarryrva.com
|
|
|||
|
Re: CSS image link attributes
Woah! What's with the frames? NOT GOOD! However, I found the css:
Back to the problem. Try using border-bottom: none; for the 'a img' styling. '0' and 'none' are sometimes read differently by browsers. Then, also get rid of ':link' from in front of the 'a' styling. The anchors can be addressed by simply using:
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Last edited by Stuart; Nov 23rd, 2007 at 21:55. |
|
|||
|
Re: CSS image link attributes
you could combine this two css into one!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Background Image as a Link? | TheLion | Web Page Design | 4 | Jan 18th, 2008 11:28 |
| Positioning an image with a link | pregnantNproud | Web Page Design | 8 | Aug 12th, 2007 01:33 |
| Navigation, different image per link | konnor5092 | Web Page Design | 6 | Jun 30th, 2007 17:46 |
| Link pop up box from hotspot image | MonaE | JavaScript Forum | 1 | Jan 15th, 2007 00:43 |
| What is the best way to link an image with a record in mysql | AdRock | PHP Forum | 2 | Aug 1st, 2006 12:10 |