This is a discussion on "only 'half' border appears in firefox" within the Web Page Design section. This forum, and the thread "only 'half' border appears in firefox are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
only 'half' border appears in firefox
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi guys, I have a small image gallery where i have a main image and a few thumbnails underneath. On hovering on a thumbnail I've made the border on the link around the image change colour. I've sorted that bit but suddenly in firefox only the bottom half of the border is showing.
Oh dear! IE is working ok though. Can anyone help me out with this? thanks v much. My CSS and HTML code is below. beN CSS: a.previewThumb{ border:1px solid #CCCCCC; margin:2px; } a:hover.previewThumb{ border: 1px solid #3584C6; } a.previewThumb img{ border:none; } HTML: <!-- thumbnail images here! --> <td align="center"><a class="previewThumb" href="#"><img src="images/bloc_merc_07_sml1.jpg" /></a><a class="previewThumb" href="#"><img src="images/bloc_merc_07_sml2.jpg" /></a><a class="previewThumb" href="#"><img src="images/bloc_merc_07_sml3.jpg" /></a></td> |
|
|
|
#2
|
|||
|
|||
|
Re: only 'half' border appears in firefox
Your border call is incorrect.
when you use the shorthand like you did here you need to do the border look and then seperately declare its width. border:solid #CCCCCC; border-width:top right bottom left; the way you have it now is for a specific side such as border-left:1px solid #CCCCCC;
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Aug 2nd, 2006 at 14:03. |
|
#3
|
|||
|
|||
|
Re: only 'half' border appears in firefox
Thanks, I have tried that but as I thought, it did not solve the problem. You can specify borders like I have quite happily. The issue is as i said with the border appearing around an a tag which has an img inside it; only the bottom half appears.
I have tried applying the border to just the image using 'a.previewThumb img' or 'a:hover.previewThumb img' which works in Firefox and solves that problem but then the hover effect stops working in IE. Any other suggestions? cheers, beN |
|
#4
|
|||
|
|||
|
Re: only 'half' border appears in firefox
You are right. A definition of:
This instruction assumes 'all sides'. Let us have a link to the page in question so we can see what's going on. |
|
#5
|
|||
|
|||
|
Re: only 'half' border appears in firefox
That has always given me problems *shrug* what can ya do.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| half, border, appears, firefox |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Div drops to new line in ie6 and only the top half of my title appears in ie7! | AndrewChip | Web Page Design | 1 | Mar 28th, 2008 12:45 |
| A job half done | geordief | Flash & Multimedia Forum | 12 | Sep 10th, 2007 22:32 |
| Firefox: black border at bottom of linked images | ChrisTheSoul | Web Page Design | 3 | Sep 3rd, 2007 08:26 |
| Text appears larger in Safari than in Firefox | pawpour | Web Page Design | 2 | Aug 15th, 2007 14:13 |
| Content appears fine in Firefox and Netscape but not IE | Lyss | Web Page Design | 3 | Oct 11th, 2006 00:30 |