PDA

View Full Version : Css hel(l/p)!


IwantMORE
11-06-2008, 11:14 AM
Anyone know why I get the following warning/error from FF's Error Console?

Warning: Error in parsing value for 'border-color'. Declaration dropped.


.select-name
{
font-family: 'Lucida Grande', Arial Bold, sans-serif;
font-size:11px;
padding:5px 0px 5px 10px;
line-height:18px;
text-align:left;
background-color: #f3f3f3;
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
border-left: 1px solid #f69135;
border-color: 1px solid #c0c0c0;
}

unforgiven
11-06-2008, 11:36 AM
The 'border-color' property sets the color of the four borders. 'border-color' can have from one to four values, and the values are set on the different sides, as I can see you have
border-bottom
border-right
border-left
and you forgot to set the border-top
so change the border-color to border-top , check it again ( don't forget to use hard refresh -> Ctrl+F5 ).

Vroomfondel
11-06-2008, 11:57 AM
.select-name
{
font-family: 'Lucida Grande', Arial Bold, sans-serif;
font-size:11px;
padding:5px 0px 5px 10px;
line-height:18px;
text-align:left;
background-color: #f3f3f3;
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
border-left: 1px solid #f69135;
border-top: 1px solid #c0c0c0;
}


I think this might be what you meant to do.

IwantMORE
11-06-2008, 12:04 PM
ta will try it at work tomorrow. Bloody dreamweaver I hate it...

Vroomfondel
11-06-2008, 12:18 PM
Dreamweaver is great, but it helps a lot if you have a good understanding of XHTML and CSS or whatever else you use.

IwantMORE
11-06-2008, 06:18 PM
it's not me. It's the designer I work with. He gives me these pages that look good on all browsers but the code is over complex and messy. I go through from time to time and clean them up. But it's mainly technical errors as the pages still work right in all browsers. Maybe the CDs rules could follow the browsers here.

Mr.Fibbles
11-10-2008, 10:37 PM
it's not me. It's the designer I work with. He gives me these pages that look good on all browsers but the code is over complex and messy. I go through from time to time and clean them up. But it's mainly technical errors as the pages still work right in all browsers. Maybe the CDs rules could follow the browsers here.

That is what happens when you use things like Dreamweaver or other WYSIWYG web page editors. . .hence why I use notepad or some other text editor (if I had a working Linux I would use Quantaplus) for all my web editing needs.

IwantMORE
11-11-2008, 03:33 AM
I always use a text editor myself, but unfortunately when you work as part of a team you don't always get to code everything yourself.

At least most browsers are more forgiving than the standards and most of the time consistent, although there are still the odd time when you just can't seem to get IE and FF to play well together.

Crosma
11-12-2008, 06:30 AM
At least most browsers are more forgiving than the standards and most of the time consistent, although there are still the odd time when you just can't seem to get IE and FF to play well together.Mmm... conditional comments. Actually, with conditional comments, it's quite easy to fix most IE rendering problems. Just feed it different CSS.

IE8's looking pretty acceptable (if nothing special) though, so hooray.