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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:05:49+00:00 2026-05-23T02:05:49+00:00

I have a webpage where all the content is centered using a wrapper div.

  • 0

I have a webpage where all the content is centered using a wrapper div. It displays fine, but when it print the entire webpage becomes left-aligned. I want the page to be centered on the sheet.

Basically what I have is:

<div id="wrapper">
   Contents
</div>

The contents div is centered using CSS in the following way:

body{ width: 100%; margin: 0; }
#wrapper {width: 60%; margin-left: auto; margin-right: auto; }

Is there a way to make the page centered when printing?

  • 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-23T02:05:50+00:00Added an answer on May 23, 2026 at 2:05 am

    Yes, the same way. Just make sure that ‘print’ is included in the media types specified for the stylesheet.

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

Sidebar

Related Questions

I have a table which surrounds all the content of a webpage, I would
I have a working webpage which just displays external html files inside a div
I have this: $(a.money).colorbox({href:$(a.money).attr(href)+ div#content}); Which opens an overlay but only of the content
Lets say I have a webpage, and all I'm interested is the div with
I have a simple html/css webpage: www.eveo.org All my content is located in my
I need to have multiple forms in the same webpage, all of them POSTing
I have web page in PHP which displays all records in a table. I
I have a webpage where Firefox 2 displays the font certain, really specific elements,
I have a webpage on my site that displays a table, reloads the XML
I have a webpage that implements a set of tabs each showing different content.

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.