Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
junger

Horizontally Center an SVG

Recommended Posts

I have some SVG graphics.

I have them set with a

width:100% and height 100%

I am able to move them along the x axis using the viewport but not sure what to set it at to make it directly centered.

Thanks for your help.

The site url:

www.lensfirefilms.com

Edited by junger

Share this post


Link to post

To help, one needs the site url. Consider editing your question (click on the small cogwheel icon to the right of the question title) to give this.


I'm a retired attorney who was asked by a friend to build a website. In a prior lifetime, in a galaxy far, far away and long, long ago, I was a computer systems analyst / programmer. I'm a novice autodidact in CSS, JavaScript and HTML learning in part by example.. I've asked questions on this forum and been lucky enough to have others help me, so I'm inclined to answer any question I can. Pay it forward.

Share this post


Link to post

I put the url in the question. For the time being, I have the svg set with their width and height, because I could not center them when I had the width and height at 100%.

@alxfyv

Edited by junger
Initial Revision

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...