Reputation: 105
I have a problem with my blog: in oder to make a cool border I used some css commands from the moz-webkit and it used to work rather well. (at least in firefox & chrome, not IE)
These are the lines of code that I used to create the border are:
-moz-border-image:url("file.png") 15 round round;
-webkit-border-image:url("file.png") 15 round round;
border-image:url("file.png") 15 round round;
This does not seem to work anymore and I have no idea why... The Errormessages I'm getting don't really help:
( NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMLocation.href] )
oops, forgot the link to my blog: http://life.wisniewski.org/
Does anyone know what happened or have an alternative to the moz-webkit CSS commands?
Upvotes: 0
Views: 4945
Reputation: 44889
Here's code you can use right away:
border: 15px solid transparent;
-webkit-border-image: url(fotoframe.png) 15 round;
-moz-border-image: url(fotoframe.png) 15 round;
-o-border-image: url(fotoframe.png) 15 round;
border-image: url(fotoframe.png) 15 round;
border-image
property (you had "fotoframe.png.png").border
property, as specifying just border-width
wasn't enough for -moz-border-image
to be displayed correctly. transparent
is a fallback for IE, you may want to change this for some color.round
value.Upvotes: 3
Reputation: 375
I used some css commands from the moz-webkit and it used to work rather well
Did it only stop working when you upgraded to Firefox15?
If so, this might help: David Baron's weblog: CSS border-image changes and unprefixing
Edit/Update:
In order to fix my site and ensure compatibility, I changed this:
-moz-border-image: url("../_images/tributton.png") 0 4 0 4;
To this:
-moz-border-image: url("../_images/tributton.png") 0 4 0 4; border-image: url("../_images/tributton.png") fill 0 4 0 4; border-style: solid;
Upvotes: 1
Reputation: 13333
Well border image is css3 property.To solve your problem try like this
#example-one {
border-width:25px 30px 10px 20px;
-moz-border-image:url("border-image.png") 25 30 10 20 repeat stretch;
-webkit-border-image:url("border-image.png") 25 30 10 20 repeat stretch;
border-image:url("border-image.png") 25 30 10 20 repeat stretch;
}
For more reference you can check this site. http://css-tricks.com/understanding-border-image/
Update By searching your error code over Google I got this answer. Have a look on this it might help you out
What is the NS_ERROR_INVALID_POINTER error in Firefox?
Upvotes: -1
Reputation: 79
Instead of giving round u can specify the values as given below
-moz-border-image:url("border-image.png") 25 30 10 20 repeat;
-webkit-border-image:url("border-image.png") 25 30 10 20 repeat;
border-image:url("border-image.png") 25 30 10 20 repeat;
Please check the same.
Upvotes: -1