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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:24:41+00:00 2026-06-16T21:24:41+00:00

I have searched the internet for countless hours looking for a solution and I

  • 0

I have searched the internet for countless hours looking for a solution and I can never seem to find it. What if I had a log in page and I wanted to have it completely centered in the center of the page.

I’ve never figured out how to do this and hopefully someone can help me put and end to this lack of knowledge of mine.

Here is an example
enter image description here

What I want is to have a div with a height of 410px and a width of 756px to be centered on the screen. So vertically and horizontally. I then want to be able to put other ‘s inside it with content. For example maybe I want to put a login page in there or a blog post or anything.

Major thanks in advance!

  • 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-16T21:24:42+00:00Added an answer on June 16, 2026 at 9:24 pm

    Use margin: auto;.

    HTML:

    ​<div class="middle">middle</div>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
    

    CSS:

    ​.middle
    {
        width: 100px;
        height: 50px;
        border: solid 1px red;
        margin: auto;
    }​
    

    See this link for vertical centering.

    Here’s a fully working example.

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

Sidebar

Related Questions

I have searched the Internet, but I can't find the info I'm looking for.
I have searched the Internet and I can't seem to find anything related to
I have searched the internet and the perforce help pages, but couldn't find a
I have searched for a general solution to this but only find answers to
I have searched all morning and yesterday afternoon and still cannot find an solution
I have searched the internet non-stop for three days to find a fix for
I have searched the internet for several days, but I cannot find a consise
I have searched the internet and the Boost serialization docs and I cannot find
I have searched the internet and I know that in .Net we can use
I have searched the internet, but could not find any convincing answers; Are the

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.