CSS noob - Help with border color browser issue please!!!

This is a discussion on "CSS noob - Help with border color browser issue please!!!" within the Web Page Design section. This forum, and the thread "CSS noob - Help with border color browser issue please!!! are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 12th, 2006, 19:21
Junior Member
Join Date: Jun 2005
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
CSS noob - Help with border color browser issue please!!!

Im having a little trouble getting this to work, its my first attempt at using one set of css instructions to control multiple tables rather than use dreamweaver to assign properties to 1 table at a time.


Code: Select all
table.ess {
    border-width: 0px 0px 0px 0px;
    border-spacing: 0px;
    border-style: solid solid solid solid;
    border-color: #000066 #000066 #000066 #000066;
    border-collapse: collapse;
    background-color: ;
}
table.ess th {
    border-width: 2px 2px 2px 2px;
    padding: 2px 2px 2px 2px;
    border-style:  solid solid solid;
    border-color: #000066 #000066 #000066 #00006;
    background-color: #000066;
    -moz-border-radius: 0px 0px 0px 0px;
}
table.ess td {
    border-width: 2px 2px 2px 2px;
    padding: 2px 2px 2px 2px;
    border-style: solid solid solid;
    border-color: #000066 #000066 #000066 #00006;
    background-color: #c1e7ff;
    -moz-border-radius: 0px 0px 0px 0px;
}
My problem is that in Firefox all my table borders (TH and TD) appear as grey but in IE they appear as the colour intended. I know browsers vary but is there a way to get my desired color in FF?

I read in here that becasue browsers display things differently I might need to make one css file for FF and one for IE and use this
Code: Select all
<!--[if lte IE 6]>    <link rel="StyleSheet" type="text/css" href="ieonly.css" /> <![endif]-->
to call the css file depending upon the browser viewing the page. Is this the case?

Thanks peeps!!!!!!!





EDIT//// SOLVED IT...

I removed all entries of more than one instance.. for example,

Code: Select all
border-width: 2px 2px 2px 2px;
changed to

Code: Select all
border-width: 2px;
I did that for all repeated instructions and its fine now....

Last edited by Micky-D; Oct 12th, 2006 at 19:29. Reason: SOLVED THE PROBLEM
Reply With Quote

  #2 (permalink)  
Old Oct 12th, 2006, 19:29
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,711
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: CSS noob - Help with border color browser issue please!!!

Are you applying the class name to the tables? <table class="ess">? Hard to pin point really without seeing your html
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #3 (permalink)  
Old Oct 12th, 2006, 19:40
Junior Member
Join Date: Jun 2005
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS noob - Help with border color browser issue please!!!

Thanks moojoo...

you must have been replying as I was editing my 1st post lol... it was multiple instances of the same command casuing the issue ie border: 2px 2px 2px 2px;

removed 3 of them and its great... just got padding probs now lol

changed from working from padding in px to padding in cm seems easier.

Firefox seems add more padding than ie though... :S :S :S
Reply With Quote
  #4 (permalink)  
Old Oct 14th, 2006, 19:57
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS noob - Help with border color browser issue please!!!

What?! That shouldn't be the problem. Border-width: 2px 2px 2px 2px; is the exact same thing as border: 2px;! Leave it to IE. I hate the padding issue. I don't know if where you're using padding, but if you use a <div> inside another <div>, you can simulate padding. It doesn't look so great in your source, but it looks nice on the surface!

Ooooh, this is my 666th post. Creepy. Should've saved it for Halloween.
Reply With Quote
  #5 (permalink)  
Old Oct 14th, 2006, 19:58
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS noob - Help with border color browser issue please!!!

Ah crap, I just realized Friday the 13th was yesterday. I was a day too late.
Reply With Quote
Reply

Tags
css border colours

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
color: inherit; issue with IE 7 Voodoochilli Web Page Design 3 Oct 15th, 2007 13:00
HELP!!! Cross browser issue... hak Web Page Design 7 Dec 4th, 2006 11:40
Help! Cross Browser Issue centenial Web Page Design 1 Aug 8th, 2006 18:56
td and border issue ltl_dragon Web Page Design 3 May 13th, 2006 14:50
css validating - color issue ivyholly Web Page Design 13 Dec 6th, 2005 16:05


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


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43