html - CSS img:after not working on Coppermine -



html - CSS img:after not working on Coppermine -

i trying add together css style in coppermine gallery doesn't work. here's code want apply gallery thumbnails.

.image-wrap { position: relative; display: inline-block; max-width: 100%; vertical-align: bottom; } .image-wrap:after { content: ' '; width: 100%; height: 100%; position: absolute; top: -1px; left: -1px; border: solid 1px #1b1b1b; -wekbit-box-shadow: inset 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.3); -moz-box-shadow: inset 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.3); box-shadow: inset 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.3); -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px; } .image-wrap img { vertical-align: bottom; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4); -moz-box-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: 0 1px 2px rgba(0,0,0,.4); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; }

the pseudo-classes image links little bit weird apply image-wrap:after stylesheet , went little bit messy trying figure out how apply it. here's code ended writing a:link .image{

/* pseudo-classes image links */ a:link .image{ vertical-align: bottom; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4); -moz-box-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: 0 1px 2px rgba(0,0,0,.4); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } a:after .image{ content: ' '; width: 100%; height: 100%; position: absolute; top: -1px; left: -1px; border: solid 1px #1b1b1b; -wekbit-box-shadow: inset 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.3); -moz-box-shadow: inset 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.3); box-shadow: inset 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.3); -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px; }

here's gallery. how can create css style work? thank much! i love coding turns little bit hard.

i'll gladly help, don't understand you're trying here. can have image of result want ?

anyway, general advices :

you don't need prefixes on border-radius , box-shadow anymore you don't need specify :link on link tag. consider using "top: 0; bottom: 0; left: 0; right: 0;" rather width , height 100%.

edit: okay, image understand.

so, problem here :

a:after .image {...}

doing so, don't target :after pseudo-element, .image element wich kid of it. it's nonsense. should add together class on link (if possible) or target more exactly using selectors, , work on :after pseudo-element.

i'll create illustration if isn't plenty help you. :)

edit: okay, made illustration anyway: http://jsfiddle.net/manumanu/gon7kooa/ , if wish utilize hover: http://jsfiddle.net/manumanu/gon7kooa/2/

html css image gallery

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -