Skip to content

Instantly share code, notes, and snippets.

@keerthik
Last active November 30, 2024 21:27
Show Gist options
  • Save keerthik/2c545df55c1661e2219ed9f351082c48 to your computer and use it in GitHub Desktop.
Save keerthik/2c545df55c1661e2219ed9f351082c48 to your computer and use it in GitHub Desktop.
x.com svg black circle background former twitter

When listing social media icons, you can use this with your existing li wrapper elements:

<li class="your-li-class">...//facebook
<li class="your-li-class">...//instagram
<li class="your-li-class">
  <a href="https://x.com/yourhandle" target="_blank" class="your-li-a-class">
    <img src="assets/images/icons/x_com.svg" alt="x.com">
  </a>
</li>

to achieve something like this

image

Your li and a dimensions will determine the bounds of the SVG and the circle and X logo should be centered within it.

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment