mdc_web
mdc_web copied to clipboard
Use mdc_web through index.html or pubspec.yaml+Dart file?
Jacob, in your repo, you instruct the use of mdc_web by a script placed in index.html. Then on mdc_web Pub Dev you instruct the use of mdc_web by a different set of instructions, through an edit on pubspec.yaml and, if I'm not mistaken, an import of the pkg to a component's Dart file. Which one is it? Or is it both?
Thanks, Andres
Hi Jacob,
.card_media {
background-image: url($mdc-card-image);
position: relative; // Child element `__media-content` has `position: absolute`
box-sizing: border-box;
background-repeat: no-repeat;
background-position: left;
background-size: cover;
}
Isn't working for me. In particular, background-position: left
, which I imagine will position the media to the left of the card, instead of atop, or north of the card. Am I missing anything?