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
Div border for container not working in FF
Old 12-26-2008, 04:41 PM Div border for container not working in FF
Defies a Status

Posts: 1,605
Trades: 0
I am trying to place a 2px border around the entire container div and FF will not do it. FF cuts it off ater the first closing tag for the header div. Works fine in IE7. The CSS:

Quote:
#container {
width:990px !important; /*moz width*/
width:990px; /*IE width*/
margin: 0 auto; /* align for good browsers */
text-align: left; /* counter the body center */
border: #5087BF 2px solid;
background:#fff;
padding:0px;
}
I also tried placing individual calls for top, right, left and bottom in the correct divs. When I did that both IE and FF left a large blank space where the left and right columns were not as long as the center one.

All the opening and closing tags are in the right place.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-26-2008, 04:47 PM Re: Div border for container not working in FF
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Can you give us a link or something so we could see what's going on?

- Steve
stevej is offline
Reply With Quote
View Public Profile
 
Old 12-26-2008, 04:52 PM Re: Div border for container not working in FF
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You have uncleared floats in the container.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-26-2008, 05:35 PM Re: Div border for container not working in FF
Defies a Status

Posts: 1,605
Trades: 0
Quote:
Originally Posted by chrishirst View Post
You have uncleared floats in the container.

Maybe but I don't think so. I will for sure try that and admit to being wrong if I am.

You are usually right so I am not betting aganist you at this point.

I can't post a link because this version of the site is not live and I really don't want to take it live until I resolve this issue.

BBL
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 12-27-2008, 12:06 AM Re: Div border for container not working in FF
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
border: #5087BF 2px solid;
Wrong syntax, it should be : border 2px solid #5087bf

You don't need all that !important nonsense either.
__________________
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 12-27-2008, 03:10 PM Re: Div border for container not working in FF
Defies a Status

Posts: 1,605
Trades: 0
I will change the syntax though it is now working fine in IE7 and FF3.

Chris was right but I still don't know where I failed to clear the float. Finally got it working by adding clear both to the footer declaration.

This has been a major challenge to covert. Nested tables on tables on tables and a zillion spacer.gifs.

You would have a stroke if you could see the site as it currently exists.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Div border for container not working in FF
 

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.39777 seconds with 12 queries