initClub · 1ère Communauté Webflow Francophone

Updated 2 months ago

Svg Rendering Issues with Background Placement

At a glance

A community member is having issues with an SVG (black circular arcs) they want to use as a background. They have copied and pasted the SVG and positioned it absolutely relative to their navbar, but the rendering is not the same as in the Figma design, and the SVG is appearing in front of their hero image despite having a lower z-index. Another community member suggests setting the z-index of the nav_section to 0 to resolve the issue. The community members also discuss increasing the width of the SVG and positioning it absolutely to match the Figma design, as well as using viewport units (vw) to make it responsive on larger screens.

<answer>The answer is to set the z-index of the nav_section to 0.</answer>
Useful resources

Salut à tous !

J’ai plusieurs soucis avec un svg (arcs de cercles noirs) que je veux mettre en back ground (lien du Figma en dessous). J’ai copié collé le svg et je l’ai mis en Absolute, relative a ma navbar. Même avec ça je n’ai pas le même rendu que sur le figma et mon SVG passe devant ma hero image alors que le z index est inférieur à celle ci.

Merci d’avance pour votre aide !

Lien du Figma : https://www.figma.com/community/file/1014188728368038455
Lien du Webflow : https://insurance-994208.design.webflow.com/

Marked as solution

Tu dois passer ta nav_section en z-index 0 🙂

View full solution
T
L
8 comments

Le lien est pas dispo 🙂

Tu dois passer ta nav_section en z-index 0 🙂

Merci !! T’as réussi à faire en sorte que le svg soit coupé comme dans le Figma ?

J’ai pas téléchargé le template figma mais je pense qu’il te suffit d’augmenter la width de ton svg et de la monter un peu en absolute pour avoir le ratio parfait!

Voir pour le passer en vw si tu veux qu’il soit ratio sur les big écran

Merci Thomas ! Je vais check ça

Add a reply
Sign up and join the conversation on Slack