Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8402283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:00:58+00:00 2026-06-09T22:00:58+00:00

This is my jsfiddle . The link follow us is next to the twitter

  • 0

This is my jsfiddle.

The link “follow us” is next to the twitter icon. What I want is for the link to be vertically centered on the image using css without inline styles if possible.

I’ve tried adding a class directly to the <a> tag and then adjusting the margin. That did not work.

I tried adding a class directly to the img tag and then adjusting the margin. That did not work.

I tried doing both of these things again adjusting the padding instead of the margin.

Is this even possible the way I have it set up or am I going to have to change the html..or both?

Any suggestions are highly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:00:59+00:00Added an answer on June 9, 2026 at 10:00 pm

    I would float the image to the left, then change the line-height of the a tag to be equivalent to the height of the image (in this case, 19px). To target the line height only to the anchor surrounding “Follow Us,” just add a class to the anchor like .follow.

    HTML

    <img src="imageURL.png" width="24px" height="19px">
    <a href="#" class="follow"> Follow Us</a>
    

    CSS

    img { float: left; }
    .follow { line-height: 19px; }
    

    JS Fiddle Example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the link for my html http://jsfiddle.net/9rprY/18/ In this I need the middle
I have been trying to get this jsfiddle to work. So far without luck.
In this jsfiddle I'm trying to create a link that covers the entirety of
look at this jsFIDDLE sample i want to change the cell background color for
Please see this jsfiddle: http://jsfiddle.net/kZA8D/ Basically, whenever I move through / past the link
This jsfiddle example shows what I'm talking about, I gave the div in question
I have this jsfiddle . When I move the script from the upper panel
I'll let this jsfiddle describe most of the problem for me. http://jsfiddle.net/zAPVQ/4/ I've got
Have a look at this jsfiddle: http://jsfiddle.net/Dh96F/1/ The Expand button will animate the widening
As you can see in this jsfiddle , I'm trying to make a toggle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.