Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 07-12-2006, 02:03 PM IE/Firefox Issues
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
I am creating a site using XHTML and CSS and have applied a border to my divs, this looks fine in Internet explorer, however when I try and view this in Firefox the border isnt visible and I can't seem to work out why.

I simply used the border: 1px; tag - Does anyone have a way around getting it to display correctly in Firefox?

Any help will be greatly appreciated.
b0881 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-12-2006, 02:10 PM Re: IE/Firefox Issues
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
You've set the border-width, but will also want to set a border-style and a border-color. Even better is the shortcut:

border:1px solid #000

or whatever color and style you want to use. W3Schools has a good list of border properties and associated values.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-12-2006, 02:15 PM Re: IE/Firefox Issues
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
Apologies, I didnt mention that I had used the tags you stated, the exact code I used is:

border-style: solid;
border: 1px;
border-color: #CCC;
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-12-2006, 02:49 PM Re: IE/Firefox Issues
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Another style may be overriding that... can we see an example of you code?
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 07-12-2006, 02:53 PM Re: IE/Firefox Issues
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I would think that would work, though you may need to specify border as border-width:1px.

If that doesn't work is the page online somewhere so we could take a look. It might be something else in the code that's causing the problem and a link to the page would help in debugging it.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-12-2006, 02:53 PM Re: IE/Firefox Issues
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
Of course, heres the code for the divs I am trying to set a border for..

#leftcontent {
position: absolute;
top: 290px;
left: 200px;
width: 390px;
height: 232px;
background-color: #CCFFCC;
border-style: solid;
border: 1px;
border-color: #CCC;
}
#rightcontent {
position: absolute;
top: 290px;
left: 610px;
width: 190px;
height: 232px;
background-color: #CCFFCC;
border-style: solid;
border: 1px;
border-color: #CCC;

Alternatively heres the stylesheet

Cheers
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-12-2006, 02:56 PM Re: IE/Firefox Issues
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Yep, I changed border to border-width in the code and the border showed up right away. I prefer the shortcut border:1px solid #ccc though to save some space.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-12-2006, 02:58 PM Re: IE/Firefox Issues
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
Van Gogh you are absolutely right, it was simply a matter off adding '-width' to the border tag.

However one other issue which Firefox doesnt like is the shadow I have applied to the divs, if you look in the stylesheet I have added another div and aligned it 5 pixels south and to the right of the div to contain content. I set it to z-index: -1 however it doesnt display yet it does it IE, any ideas about this one??

Thanks alot for your help so far, its appreciated!
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-12-2006, 05:48 PM Re: IE/Firefox Issues
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
'border' by itself is the shorthand version of :
border-width: 1px;
border-color: #ccc;
boder-style: solid;

So, you use all 3 or use the single shorthand line of
border: 1px solid #ccc;

The shorthand method keeps the size of your CSS file tidy and small.

You can't use both, as you did
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-12-2006, 06:06 PM Re: IE/Firefox Issues
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
I didnt use both did I?? The border problem has been resolved, that displays correctly now.

Its just the shadow that I am trying to get to display now.

Thanks for all your help though sirs and madams,
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-13-2006, 01:28 AM Re: IE/Firefox Issues
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I think what's happening with the shadow is it's being displayed behind some of your other elements. Whenever you give something a position it has a default z-index of 0. if you give the shadow divs a z-index of 1 and then give the left and right content divs a z-index of 5 you should see it. The color is very light though so even when it's there it can be difficult to see.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-13-2006, 10:32 AM Re: IE/Firefox Issues
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
Thanks Steve I'll try that, I know its a light colour, I just wanted a nice subtle shadow to display, I may yet play around with the colour, first things first though I need to bugger to display!

Thanks for all your help.
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 10:43 AM Re: IE/Firefox Issues
b0881's Avatar
Super Talker

Posts: 112
Name: Bobby
Trades: 0
Spot on again Van Gogh, displays correctly now.

Top man, cheers.
b0881 is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 01:08 PM Re: IE/Firefox Issues
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Glad to help.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to IE/Firefox Issues
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77232 seconds with 12 queries