only 'half' border appears in firefox

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Aug 2nd, 2006, 11:39
N_K N_K is offline
New Member
Join Date: Aug 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Cool only 'half' border appears in firefox

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>
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 Aug 2nd, 2006, 13:52
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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.
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 Aug 2nd, 2006, 14:04
N_K N_K is offline
New Member
Join Date: Aug 2006
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
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 Aug 2nd, 2006, 16:11
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: only 'half' border appears in firefox

You are right. A definition of:
Code: Select all
border: 1px solid #CCCCCC;
is perfectly valid.
This instruction assumes 'all sides'.

Let us have a link to the page in question so we can see what's going on.
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 Aug 2nd, 2006, 19:10
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
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
half, border, appears, firefox

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


All times are GMT. The time now is 18:29.


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