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
css problem in firefox and netscape
Old 09-17-2005, 11:08 PM css problem in firefox and netscape
Mr. Plague's Avatar
Experienced Talker

Posts: 38
Location: Vernon, BC, Canada
Trades: 0
Hello,

I am needing someone who can tell me why div borders dont work for me in Netscape or Firefox. I am wanting a border around the whole content div. It works in explorer but not in both Netscape and Firefox. Here is the code.

<style>

#container {
background: #FFFFFF;
margin: 0px auto;
text-align: center;
border-style: solid;
border-color: #cccccc;
border: 1px;
width: 700px;
}

</style>


<body>

<div id="container">All my site stuff</div>

</body>
__________________
Tanner - I Am Canadian

Please login or register to view this content. Registration is FREE
Mr. Plague is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-18-2005, 01:52 AM
Kaiman's Avatar
Extreme Talker

Posts: 237
Trades: 0
Mr. Plague,

your CSS should read:

border-width: 1px;

not:

border: 1px;

IE will just display it anyway, but more standards compliant browsers such as IE won't parse it unless the syntax is correct.

Try that and let me know if it doesn't work.

Kaiman

Storm King Design - Glenwood Springs, CO
Computer Repairs, Networking, and Training - Glenwood Springs, CO
Kaiman is offline
Reply With Quote
View Public Profile
 
Old 09-18-2005, 02:58 AM
Mr. Plague's Avatar
Experienced Talker

Posts: 38
Location: Vernon, BC, Canada
Trades: 0
Kaiman,

It works, in Firefox and Netscape, now. I have only learned css recently, thanks for clearing this up.
__________________
Tanner - I Am Canadian

Please login or register to view this content. Registration is FREE
Mr. Plague is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to css problem in firefox and netscape
 

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