Next.js Discord

Discord Forum

custom imageStyle

Answered
Gharial posted this in #help-forum
Open in Discord
GharialOP
This is in docs.

const imageStyle = {
borderRadius: '50%',
border: '1px solid #fff',

}


export default function LogoImage() {
return (
<Image
src={Logo}

style={imageStyle}

/>
)
}

Is it possible to add z-index to const imageStyle ?
Answered by Clown
It would probably be named zIndex instead
View full answer

6 Replies

Try it
It would probably be named zIndex instead
Answer
GharialOP
Thanks, zIndex works z-index doesnt. Can I ask why is that?
Its just their naming convention
camelCase
Mark the answer btw 🙂