- This topic is empty.
-
AuthorPosts
-
December 12, 2011 at 6:49 am #35600tobeeornotMember
I’m looking to test some css3 background patterns and have been using the code supplied by Lea Verou but I have had no luck getting them to work on Chrome, Firefox, or Opera. I can’t think why this should be the case, as they should work, at least to some degree, on these browsers. All I am getting is the plain background color specified in the code as a fallback (i’m assuming) Any ideas?
December 12, 2011 at 6:59 am #92503Paulie_DMemberDifficult to comment without a link or some code.
December 12, 2011 at 7:05 am #92504tobeeornotMember@Paulie_D The code is the located behind each pattern.
December 12, 2011 at 7:11 am #92505Paulie_DMemberYes I know that but perhaps your implementation is wrong…that’s what we need to see.
BTW…I’m having trouble too but perhaps we’re both doing it wrong.
December 12, 2011 at 7:18 am #92506BrightonmikeMemberI had problems using the code that displays in her popup boxes. I think it’s wrong.
But should be able to find the code by inspecting the code. That worked for me. Also google Patternify for a nice little generator.
There’s also tools on the web that turn images into Base64 code for use in CSS – but only use basic images otherwise it’s too much code.
December 12, 2011 at 7:20 am #92507chrisburtonParticipantNothing is wrong. Use browser prefixes if needed. http://jsfiddle.net/wBysV
December 12, 2011 at 7:22 am #92508Paulie_DMemberThe pop-up code isn’t “wrong” but it’s not browser specific unless you have IE10…I think.
I’ve had success by adding vendor prefixes to the gradients.
See here
December 12, 2011 at 7:25 am #92509chrisburtonParticipantI updated my fiddle. Forgot to add background before the -moz- prefix
December 12, 2011 at 7:30 am #92510tobeeornotMember@BrigthonMike – Thanks all for those sources. That is very handy.
@ChristopherBurton – Thanks for that – you really answered my question. Re: browser prefixes, Lea mentions that support is limited at the time of writing. Would you steer clear of using these types of patterns until they are more transferable? I am guessing Chris Coyier has used CSS3 for his background on this site so it must be reasonably well supported?
December 12, 2011 at 7:31 am #92511tobeeornotMember@Paulie_D – thanks. It looks good in Chrome!
December 12, 2011 at 7:37 am #92512chrisburtonParticipant@tobeeornot Yeah, why not? Just use an actual image for those that do not support or you can go as simple as using a color.
December 12, 2011 at 7:39 am #92513tobeeornotMemberBrilliant! Thanks all!
December 12, 2011 at 8:04 am #92514tobeeornotMember@ChristopherBurton – sorry to be a pain but I just tried your jfiddle in Firefox and it didn’t work, which is strange as it has the moz prefix. Also added the vendor prefix for Opera and no luck either.
December 12, 2011 at 8:11 am #92515chrisburtonParticipant@tobeeornot This one? What version of firefox?
December 12, 2011 at 8:17 am #92516tobeeornotMember@ChristopherBurton. Yes , that jfiddle. I am running Firefox 8.0.1.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.