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

  • Home
  • SEARCH
  • 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 7035457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:18:23+00:00 2026-05-28T01:18:23+00:00

I have a situation where I have one div of fixed width, containing an

  • 0

I have a situation where I have one div of fixed width, containing an image pulled from Twitter, and another div of variable width containing user text of variable length. What I want to achieve is something like the following:

enter image description here

I can do this well enough with a single div that has background-image and padding-left. But I want to be able to apply border-radius to the img element, which simply won’t be possible with a background-image.

If I do text-align: center on the outer div, it gets me halfway there. Here’s a DEMO and a screenshot:

enter image description here

But this obviously isn’t fully what I want.

How can I accomplish this?

  • 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-05-28T01:18:24+00:00Added an answer on May 28, 2026 at 1:18 am

    Ask and you shall receive — a simplified jsFiddle example:

    jsFiddle Screenshot

    As an added bonus, the text is vertically centered too!

    HTML:

    <div class="logo">
        <div class="logo-container">
            <img src="http://img.tweetimag.es/i/appsumo_b.png" />
        </div>
    
        <div class="logo-name">
            AppSumo is a really really long title that continues down the page
        </div>
    </div>
    

    CSS:

    .logo {
        background-color: #eee;
        display: table-cell;
        height: 100px;
        position: relative;
        text-align: center;
        vertical-align: middle;
        width: 600px;
    }
    
    .logo-container {
        background-color: #fff;
        border-radius: 10px;
        left: 10px;
        position: absolute;
        top: 10px;
        width: 75px;
    }
    
    .logo-name {
        font: bold 28px/115% Helvetica, Arial, sans-serif;
        padding-left: 85px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the situation, I have 2 div's next to each other. One div
I have a situation where at one point the html contents of a div
I have the following situation: There is one custom view inside of the first
Here is my situation: I have one table that contains a list of drugs
Here is the situation: You have one long-running calculation running in a background thread.
I have a situation where different threads populate a queue (producers) and one consumer
Here's the situation I have a webpage which has one drop down called prefer.
Consider the following situation: We have two Localizable.string files, one in en.lproj and one
I have a one-to-many relationship between two classes for this situation. I have a
I have a slightly odd situation. One of my customers has an Asp.net (v2

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.