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 7074179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:01:12+00:00 2026-05-28T06:01:12+00:00

Possible Duplicate: How to make an image center (vertically & horizontally) inside a bigger

  • 0

Possible Duplicate:
How to make an image center (vertically & horizontally) inside a bigger div

So I have a div which is 300px in both height and length. I want a div which is 100px in height and width to be within that div, centered horizontally and vertically. So basically there is 100px on every side of the inner div. How do i do that?

  • 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-28T06:01:13+00:00Added an answer on May 28, 2026 at 6:01 am
    #big {
      width: 300px;
      height: 300px;
    }
    #small {
      width: 100px;
      height: 100px;
      margin: 100px;
    }
    
    <div id="big">
      <div id="small"></div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to make an image center (vertically & horizontally) inside a bigger
Possible Duplicate: Css z-index problem I have an issue where one image is infront
Possible Duplicate: C# Sortable collection which allows duplicate keys Basically I'd like to make
Possible Duplicate: Best Way to Sprite Images? I have the following image that I
Possible Duplicate: make drop down list item unselectable I have an asp.net dropdownlist and
Possible Duplicate: C# - Make a borderless form movable? I have made a form
Possible Duplicate of Convert jpg image to gif, png & bmp format using PHP
Possible Duplicate: Android: Scale a Drawable or background image? I'd like to make a
Possible Duplicate: How to make a JFrame Modal in Swing java I have 2
Possible Duplicate: How to make a custom select option menu style without image in

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.