PDA

View Full Version : FF problem



ff123
June 3rd, 2008, 07:47 PM
I have this code for bg in CSS

.blogbg{;
padding-top: 20px;
background: url('bg.jpg') no-repeat 1px 0; /*20px 0 equals horizontal and vertical position of arrow. Adjust as desired (ie: 20px -5px).*/
}

and used this in html <div class="blogbg"> fkkd </div>

its showing the bg in Internet Explorer but not in FireFox

Raydred
June 3rd, 2008, 08:18 PM
I dont think this is valid:
.blogbg{;
it should be:
.blogbg{ (without the ";");



.blogbg
{
padding-top: 20px;
background: url('bg.jpg') no-repeat 1px 0; /*20px 0 equals horizontal and vertical position of arrow. Adjust as desired (ie: 20px -5px).*/
}

try taking that out and see if that makes a difference. IE is very forgiving with stuff like that (it renders anyway), but it encourages bad form and makes mistakes less obvious.

ff123
June 3rd, 2008, 09:43 PM
Silly mistakes.. Thanks dude..

Raydred
June 4th, 2008, 12:20 AM
Silly mistakes.. Thanks dude..

No problem =) thats what im here for.