css fixed social media sidebar

How we can create a fixed social share widget using only HTML CSS? Solution: See this CSS Fixed Social Media Sidebar With Icons, HTML CSS Share Widget.

Previously I have shared floating social share buttons, but this a fixed sidebar widget which commonly used by many websites. Basically, this is a kind of WordPress plugin which create the same type of social sharing widget. You will see mostly that kind of sharing button on many websites, because this design is the default form of many plugins.

Today you will learn to create HTML CSS Share Widget with fixed position. Basically, here is sidebar or side place element on left-middle position and there are some social media icons like facebook, twitter, dribble, GitHub, etc. All icons are grey in color by default but on hover, it becomes with original color and there will appear a tooltip for informing which network is it.

So, Today I am sharing CSS Fixed Social Media Sidebar With Icons. This design completely based on HTML and CSS, you can call is a pure CSS program. This is just a design concept you have put URL format inside hyperlink for sharing content live, you must have backend integration for fetch URL.

If you are thinking now how this social widget actually is, then see the preview given below.

Preview Of HTML CSS Share Widget

See this video preview to getting an idea of how this sidebar looks like.

Live Demo

Now you can see this visually, you can also see it live by pressing the button given above. If you like this, then get the source code of its.

You May Also Like:

CSS Fixed Social Media Sidebar With Icons Source Code

Before sharing source code, let’s talk about it. First I have created a list using HTML <ul> & <li> tags, and put a hyperlink and a span on every li section. In the hyperlink tags I have placed class name for icons and inside the span placed the name which works as a tooltip. For placing the icons I have used a font family named entypo with welovefonts API (get).

Now using CSS I have placed the element on left middle position, and used CSS @import for getting a google font and the icons. Now put some values like the color on hover, show tooltip, etc. For fixing the placement I have used CSS position: fixed; command. Left all other things you will understand after getting the codes, I can’t explain in writing.

For creating this widget you have to create only 2 files, one for HTML and one for CSS. Follow the steps to creating this without any error.

index.html

Create an HTML file named ‘index.html‘ and put these codes given below.

style.css

Now create a CSS file named ‘style.css‘ and put these codes given here.

That’s It. Now you have successfully created CSS Fixed Social Media Sidebar With Icons, HTML CSS Share Widget. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting.

3 COMMENTS

  1. hi, firstly thank you for this great design, unfortunately i seem to be having an issue with the icons not showing….. everything else works fine

  2. Hi for people asked for icons issues :

    You might to add this in your css :
    /* Add icon that you want, the content code is available in the demo above*/

    .entypo-twitter:before {
    content: “\f309”;
    }

    .entypo-facebook:before {
    content: “\f30c”;
    }
    @font-face {
    font-family: ‘entypo’;
    font-style: normal;
    font-weight: normal;
    src: url(‘https://weloveiconfonts.com/api/fonts/entypo/entypo.eot’);
    src: url(‘https://weloveiconfonts.com/api/fonts/entypo/entypo.eot?#iefix’) format(‘eot’),
    url(‘https://weloveiconfonts.com/api/fonts/entypo/entypo.woff’) format(‘woff’),
    url(‘https://weloveiconfonts.com/api/fonts/entypo/entypo.ttf’) format(‘truetype’),
    url(‘https://weloveiconfonts.com/api/fonts/entypo/entypo.svg#entypo’) format(‘svg’);
    }
    Then it will work well 😉

LEAVE A REPLY

Please enter your comment!
Please enter your name here