Vertical center content on a page

There’s actually many ways to center codes vertically, but this method is the most simple. Here’s all you need.

<style type="text/css" media="all">
html, body {height:100%; margin:0; padding:0; background:#000;}
#spacer {height:50%; margin-bottom:-200px; position:relative;} /* You must know the height of your content, divide by 2 for margin-bottom */
#content {clear:both; height:400px; width:500px; position:relative; margin:0 auto; background-color:#fff; text-align:center; color:#000;}
</style>

<body>
<div id="spacer"> </div>
<div id="content"> Your Content Here</div>
</body>

This creates a white box 500px by 400px, centered horizontally and vertically on the page.

Posted on February 15, 2012 in Web

Share the Story

About the Author

Responses (171)

  1. metronidazole 500mg for teeth
    March 18, 2021 at 3:05 pm ·

    metronidazole 500mg for teeth

    Vertical center content on a page – Eris Graphics

  2. generic viagra india
    March 19, 2021 at 3:00 am ·

    generic viagra india

    generic viagra india

  3. buying viagra
    March 19, 2021 at 6:58 am ·

    buying viagra

    buying viagra

  4. levitra 20mg
    March 19, 2021 at 7:56 am ·

    levitra 20mg

    levitra 20mg

  5. cialis in action
    March 19, 2021 at 10:40 am ·

    cialis in action

    cialis in action

  6. cialis cost per pill
    March 19, 2021 at 12:27 pm ·

    cialis cost per pill

    cialis cost per pill

  7. viagra falls
    March 19, 2021 at 4:36 pm ·

    viagra falls

    viagra falls

  8. what is female viagra
    March 19, 2021 at 6:57 pm ·

    what is female viagra

    what is female viagra

  9. does viagra work
    March 19, 2021 at 9:03 pm ·

    does viagra work

    does viagra work

  10. warnings for cialis
    March 19, 2021 at 11:12 pm ·

    warnings for cialis

    warnings for cialis

  11. free viagra
    March 20, 2021 at 1:37 am ·

    free viagra

    free viagra

  12. how to take sildenafil citrate
    March 26, 2021 at 3:48 pm ·

    how to take sildenafil citrate

    Vertical center content on a page – Eris Graphics

  13. how much does cialis cost at cvs

    how much does cialis cost at cvs

  14. pharmacy rx one viagra
    April 3, 2021 at 6:12 am ·

    pharmacy rx one viagra

    pharmacy rx one viagra

  15. milf teasing son viagra
    April 3, 2021 at 10:14 am ·

    milf teasing son viagra

    milf teasing son viagra

  16. shri durga generic viagra
    April 3, 2021 at 12:12 pm ·

    shri durga generic viagra

    shri durga generic viagra

  17. taking viagra with illigal drugs
    April 3, 2021 at 11:31 pm ·

    taking viagra with illigal drugs

    taking viagra with illigal drugs

  18. sildenafil for ed dosage
    April 4, 2021 at 1:22 am ·

    sildenafil for ed dosage

    sildenafil for ed dosage

  19. viagra sin receta y barato
    April 4, 2021 at 3:35 am ·

    viagra sin receta y barato

    viagra sin receta y barato

  20. discount cialis online
    April 4, 2021 at 6:19 am ·

    discount cialis online

    discount cialis online

  21. global pharmacy viagra
    April 4, 2021 at 12:43 pm ·

    global pharmacy viagra

    global pharmacy viagra

  22. cialis generic from mexico
    April 4, 2021 at 4:02 pm ·

    cialis generic from mexico

    cialis generic from mexico

  23. buy 150 mg viagra online
    April 5, 2021 at 4:39 am ·

    buy 150 mg viagra online

    buy 150 mg viagra online

  24. sildenafil prices 20 mg
    April 5, 2021 at 8:20 am ·

    sildenafil prices 20 mg

    sildenafil prices 20 mg

  25. combining cialis and otc ed pills

    combining cialis and otc ed pills

  26. cialis reviews reddit australia
    April 5, 2021 at 1:25 pm ·

    cialis reviews reddit australia

    cialis reviews reddit australia

  27. generic viagra 50 mg us
    April 5, 2021 at 2:51 pm ·

    generic viagra 50 mg us

    generic viagra 50 mg us

  28. moore stepmom viagra problem
    April 5, 2021 at 4:49 pm ·

    moore stepmom viagra problem

    moore stepmom viagra problem

  29. amoxicillin for pneumonia
    April 6, 2021 at 5:12 am ·

    amoxicillin for pneumonia

    amoxicillin for pneumonia

  30. does amoxicillin treat uti
    April 6, 2021 at 6:16 am ·

    does amoxicillin treat uti

    does amoxicillin treat uti

  31. azithromycin and sun exposure
    April 6, 2021 at 9:56 am ·

    azithromycin and sun exposure

    azithromycin and sun exposure

  32. celecoxib mechanisms of action
    April 6, 2021 at 1:26 pm ·

    celecoxib mechanisms of action

    celecoxib mechanisms of action

  33. celecoxib manufacturer
    April 6, 2021 at 4:40 pm ·

    celecoxib manufacturer

    celecoxib manufacturer

  34. cephalexin 500 mg capsule uses
    April 6, 2021 at 7:16 pm ·

    cephalexin 500 mg capsule uses

    cephalexin 500 mg capsule uses

  35. walmart keflex price
    April 6, 2021 at 8:32 pm ·

    walmart keflex price

    walmart keflex price

  36. alcohol cymbalta
    April 7, 2021 at 2:14 am ·

    alcohol cymbalta

    alcohol cymbalta

  37. hydroxychloroquine dosage for lupus

    Vertical center content on a page – Eris Graphics

  38. cialis online fast shipping
    April 22, 2021 at 12:11 pm ·

    cialis online fast shipping

    Vertical center content on a page – Eris Graphics

  39. where to get hydroxychloroquine
    April 24, 2021 at 2:46 am ·

    where to get hydroxychloroquine

    Vertical center content on a page – Eris Graphics

  40. where to buy hydroxychloroquine online

    Vertical center content on a page – Eris Graphics

  41. over counter antibiotics pills amoxicillin

    Vertical center content on a page – Eris Graphics

  42. best price for vidalista tablets

    Vertical center content on a page – Eris Graphics

  43. average cost cialis daily use

    Vertical center content on a page – Eris Graphics

  44. lovoo promo code 2018
    May 19, 2021 at 9:04 am ·

    lovoo promo code 2018

    Vertical center content on a page – Eris Graphics

  45. prescription cialis online
    May 20, 2021 at 2:18 pm ·

    prescription cialis online

    Vertical center content on a page – Eris Graphics

  46. when will careprost be available in generic

    Vertical center content on a page – Eris Graphics

  47. tetracycline powder for chickens

    Vertical center content on a page – Eris Graphics

  48. dapoxetine other uses
    May 26, 2021 at 5:53 am ·

    dapoxetine other uses

    Vertical center content on a page – Eris Graphics

  49. how to get cialis pills
    May 26, 2021 at 2:24 pm ·

    how to get cialis pills

    Vertical center content on a page – Eris Graphics

  50. hydroxychloroquine for malaria prevention

    Vertical center content on a page – Eris Graphics

  51. how long can you take azithromycin

    Vertical center content on a page – Eris Graphics

  52. albuterol solution for nebulizer prescription

    Vertical center content on a page – Eris Graphics

  53. malaria medicine side effects
    June 6, 2021 at 3:31 pm ·

    malaria medicine side effects

    Vertical center content on a page – Eris Graphics

  54. canadian pharcharmy online review

    Vertical center content on a page – Eris Graphics

  55. buy cialis 5mg daily use
    June 9, 2021 at 12:53 am ·

    buy cialis 5mg daily use

    Vertical center content on a page – Eris Graphics

  56. who owns hydroxychloroquine patent

    Vertical center content on a page – Eris Graphics

  57. can metronidazole cure yeast infection

    Vertical center content on a page – Eris Graphics

  58. why two azithromycin on first day

    Vertical center content on a page – Eris Graphics

  59. amoxicillin 400mg 5ml dosage for children

    Vertical center content on a page – Eris Graphics

  60. acyclovir 800 mg pills
    June 23, 2021 at 3:52 am ·

    acyclovir 800 mg pills

    Vertical center content on a page – Eris Graphics

  61. tadalafil 5 mg tablet price
    June 23, 2021 at 7:24 pm ·

    tadalafil 5 mg tablet price

    Vertical center content on a page – Eris Graphics

  62. free asexual dating sites
    July 1, 2021 at 2:16 pm ·

    free online interactive dating games

  63. bactrim and food
    July 3, 2021 at 9:17 am ·

    bactrim and food

    Vertical center content on a page – Eris Graphics

  64. availability of ivermectin over the counter

    Vertical center content on a page – Eris Graphics

  65. keto diet to lose weight
    July 6, 2021 at 7:26 am ·

    keto diet fad

  66. keto wraps
    July 6, 2021 at 7:49 am ·

    is greek yogurt keto

  67. keto and diet soda
    July 6, 2021 at 11:40 am ·

    keto broccoli salad

  68. usa over the counter sildenafil
    July 16, 2021 at 5:41 pm ·

    usa over the counter sildenafil

    Vertical center content on a page – Eris Graphics

  69. megaphone gay dating
    August 9, 2021 at 6:15 am ·

    best gay dating site for asia https://gaychatrooms.org/

  70. dating as a shy gay guy
    August 9, 2021 at 10:03 am ·

    free dating site for gay guys https://gaychatus.com/

  71. dating gay s and m masters
    August 9, 2021 at 3:01 pm ·

    top ten gay dating sites https://freegaychatnew.com/

  72. hiv positive dating gay
    August 10, 2021 at 8:02 am ·

    gay dating profile pictures https://gaydatingzz.com/

  73. dapoxetine pills over the counter
    August 20, 2021 at 7:08 pm ·

    dapoxetine pills over the counter

    Vertical center content on a page – Eris Graphics

  74. hiv pos gay dating sites
    September 1, 2021 at 2:35 am ·

    ellie goulding dating gay https://gaychatgay.com/

  75. prednisone pack 5 mg
    September 2, 2021 at 8:31 am ·

    prednisone pack 5 mg

    Vertical center content on a page – Eris Graphics

  76. what can you take instead of prednisone

    Vertical center content on a page – Eris Graphics

  77. gay online dating sucks
    September 8, 2021 at 3:05 am ·

    gay military men dating site https://gayedating.com/

  78. 4th man out gay dating sites
    September 8, 2021 at 5:10 pm ·

    gay dating sierra vista az https://datinggayservices.com/

  79. plenty more fish gay dating
    September 9, 2021 at 4:10 am ·

    dating games sites gay https://gayonlinedating.net/

  80. best gay dating webwite men
    September 10, 2021 at 5:50 am ·

    best dating sites for gay men https://dating-gaym.com/

  81. best gay dating cities
    September 11, 2021 at 6:02 am ·
  82. sildenafil coupons 100mg
    September 17, 2021 at 3:24 pm ·

    sildenafil coupons 100mg

    Vertical center content on a page – Eris Graphics

  83. write college essays for money
    September 28, 2021 at 10:14 am ·

    admission essay writing https://essaywritercentral.com/

  84. write essay for you
    September 28, 2021 at 2:08 pm ·

    focus on writing paragraphs and essays https://essayghostwriter.com/

  85. writing essay introductions
    October 11, 2021 at 4:37 pm ·

    essay writing helper https://essaytag.com/

  86. writing college application essays
    October 11, 2021 at 5:21 pm ·

    write essays for me https://essaysnet.com/

  87. the best essay writing services
    October 12, 2021 at 7:24 am ·

    writing about yourself essay https://essaypoints.com/

  88. writing essays online
    October 14, 2021 at 6:57 am ·

    writing a conclusion for an essay https://online2casino.com/

  89. writing a compare and contrast essay
    October 14, 2021 at 7:19 pm ·

    essay about writing https://onlinecasinos4me.com/

  90. warnings for ivermectin
    October 22, 2021 at 2:14 am ·

    warnings for ivermectin

    Vertical center content on a page – Eris Graphics

  91. best online casino to win money
    October 26, 2021 at 3:52 pm ·

    casino games that pay real money https://casinoonlinet.com/

  92. best casino bonuses
    October 27, 2021 at 5:37 am ·

    no deposit casino real money https://casinosonlinex.com/

  93. no deposit free bonus casino
    October 27, 2021 at 4:35 pm ·

    free slots for mac https://onlinecasinoad.com/

  94. welcome bonus casino
    October 27, 2021 at 4:35 pm ·

    no deposit slots for real money https://casinoonlinek.com/

  95. writing a essay about yourself
    October 29, 2021 at 4:05 pm ·

    writing a biography essay https://essaytodo.com/

  96. website to write essays
    October 29, 2021 at 6:13 pm ·

    writing an argumentative essay https://buy1essay.com/

  97. cialis india pharmacy
    November 23, 2021 at 3:43 pm ·

    cialis india pharmacy

    cialis india pharmacy

  98. quality sex games
    November 24, 2021 at 9:04 am ·

    friends playing sex games https://sexgameszone.com/

  99. tadalafil 30mg liquid
    November 25, 2021 at 12:31 pm ·

    tadalafil 30mg liquid

    tadalafil 30mg liquid

  100. dangerous sex games https://sex4games.com/

  101. soft viagra
    November 26, 2021 at 10:32 am ·

    soft viagra

    soft viagra

  102. sex games mlp
    November 26, 2021 at 6:17 pm ·
  103. tumblr sex games
    November 27, 2021 at 3:45 am ·

    adventure time sex games https://sexgamesx.net/

  104. collection of 3d rpg adult sex games
    December 6, 2021 at 8:27 am ·

    japanses sex ed, games uncenored https://cybersexgames.net/

  105. casino online games real money
    December 12, 2021 at 12:53 pm ·

    online casino new jersey https://casinogamesmachines.com/

  106. keto cake recipe
    December 14, 2021 at 6:38 am ·
  107. keto before and after
    December 14, 2021 at 9:13 am ·
  108. how to do keto diet
    December 15, 2021 at 4:42 am ·
  109. keto chicken cordon bleu
    December 15, 2021 at 8:29 am ·

    keto cookies recipes https://ketogendiets.com/

  110. my essay writing
    December 15, 2021 at 12:58 pm ·

    cheap custom essay writing service https://anenglishessay.com/

  111. best custom essay writing services
    December 15, 2021 at 8:46 pm ·

    essay writing website https://topessayswriter.com/

  112. write essay service
    December 16, 2021 at 11:46 am ·

    where can i buy an essay https://yoursuperessay.com/

  113. write compare and contrast essay
    December 17, 2021 at 1:12 am ·

    writing a compare and contrast essay https://howtowriteessaytips.com/

  114. writing persuasive essay
    December 17, 2021 at 4:44 am ·

    writing an argumentative essay https://checkyouressay.com/

  115. catholic gay dating
    December 17, 2021 at 7:36 am ·

    gay online dating sites canada https://gayprideusa.com/

  116. gay dating service chicago
    December 17, 2021 at 8:50 am ·

    dublin gay dating https://gayfade.com/

  117. gay dad dating
    December 17, 2021 at 10:55 am ·
  118. critical thinking activities
    December 19, 2021 at 6:51 am ·

    learning critical thinking https://criticalthinkingbasics.com/

  119. critical thinking nursing
    December 19, 2021 at 8:34 am ·

    stages of critical thinking https://criticalthinkinginstitute.com/

  120. critical thinking techniques
    December 19, 2021 at 10:58 am ·

    critical thinking synonym https://criticalthinking2020.net/

  121. nursing process and critical thinking
    December 19, 2021 at 12:50 pm ·

    critical thinking games for kids https://uncriticalthinking.com/

  122. parts of an essay
    December 19, 2021 at 3:27 pm ·

    do video games cause violence essay https://choosevpn.net/

  123. essay generator
    December 19, 2021 at 5:53 pm ·

    write my essay https://topvpndeals.net/

  124. uc essay examples
    December 19, 2021 at 7:31 pm ·

    national junior honor society essay examples https://tjvpn.net/

  125. essay format mla
    December 19, 2021 at 9:58 pm ·

    thesis statement for compare and contrast essay https://thebestvpnpro.com/

  126. mla format essay example
    December 19, 2021 at 11:28 pm ·

    reword essay https://vpn4home.com/

  127. what is a definition essay
    December 20, 2021 at 1:46 am ·

    common app essay word limit https://vpnshroud.com/

  128. ways to start an essay
    December 20, 2021 at 2:49 am ·

    read my essay to me https://vpnsrank.com/

  129. collehe essay
    December 20, 2021 at 4:41 am ·
  130. hook in an essay
    December 20, 2021 at 7:16 am ·

    social media essay https://windowsvpns.com/

  131. 3self-defense
    December 30, 2021 at 5:13 pm ·

    3training

  132. 1cracking
    December 31, 2021 at 2:26 am ·

    1environs

  133. cialis price europe
    January 1, 2022 at 5:32 pm ·

    cialis price europe

    cialis price europe

  134. gay dating hole
    January 2, 2022 at 4:41 am ·

    amateur after dating gay sex https://gaypridee.com

  135. older gay dating app https://gay-buddies.com

  136. gay dad dating game
    January 2, 2022 at 6:41 am ·

    michael dinsmore gay dating https://gayprideusa.com

  137. free gay sex dating
    January 2, 2022 at 7:42 am ·

    gay black dating site https://speedgaydate.com

  138. amateur after dating gay sex
    January 2, 2022 at 8:47 am ·

    gay dating long term relationship oriented guys into spanish https://gayfade.com

  139. macro sonic dating sim gay
    January 2, 2022 at 9:47 am ·

    gay dating dallas texas https://gaysugardaddydatingsites.com

  140. azithromycin dihydrate
    January 4, 2022 at 1:50 am ·

    azithromycin dihydrate

    azithromycin dihydrate

  141. sildenafil tablet 200mg
    January 12, 2022 at 12:54 am ·

    sildenafil tablet 200mg

    sildenafil tablet 200mg

  142. good chat to meet gay bimarried
    January 14, 2022 at 2:27 am ·
  143. about dating gay spanish men rtics
    January 14, 2022 at 8:11 am ·

    gay indiana online dating sites https://gaypridee.com/

  144. free xxx gay chat rooms
    January 14, 2022 at 9:53 am ·

    gay chat ru=oulette https://gaytgpost.com/

  145. free gay bi chat lines in seattle wa
    January 14, 2022 at 12:54 pm ·

    google zoom gay chat rooms https://gay-buddies.com/

  146. chubby gay dating, nyc
    January 15, 2022 at 1:16 pm ·

    gay dating service worcester ma https://speedgaydate.com/

  147. cialis soft gel
    January 16, 2022 at 11:20 am ·

    cialis soft gel

    cialis soft gel

  148. stronghealthstore sildenafil citrate
    January 17, 2022 at 10:40 am ·

    stronghealthstore sildenafil citrate

    stronghealthstore sildenafil citrate

  149. meloxicam 10mg cap
    January 24, 2022 at 2:53 am ·

    meloxicam 10mg cap

    meloxicam 10mg cap

  150. icy wilds slots
    January 28, 2022 at 8:41 am ·

    triple seven slots free https://2-free-slots.com/

  151. slots lv
    January 28, 2022 at 12:33 pm ·

    fortune slots free online https://freeonlneslotmachine.com/

  152. wow character slots
    January 28, 2022 at 3:55 pm ·
  153. download scatter slots
    January 28, 2022 at 7:18 pm ·

    hot vegas slots free games https://pennyslotmachines.org/

  154. harts of gold free slots
    January 28, 2022 at 10:30 pm ·
  155. superman slots
    February 3, 2022 at 9:22 am ·

    wobka slots promo codes https://slotmachinesforum.net/

  156. play free slots for fun
    February 3, 2022 at 12:26 pm ·

    heart of vegas free slots https://slot-machine-sale.com/

  157. big fish free slots games
    February 3, 2022 at 3:23 pm ·
  158. free slots that pay cash
    February 3, 2022 at 8:16 pm ·

    free slots games egypt https://download-slot-machines.com/

  159. ruby slots casino login
    February 3, 2022 at 10:11 pm ·

    free on line slots https://411slotmachine.com/

  160. wow character slots
    February 4, 2022 at 2:31 am ·

    100 percent free slots https://www-slotmachines.com/

  161. wizard of oz slots
    February 4, 2022 at 5:54 am ·
  162. cialis patent expired
    February 9, 2022 at 3:53 pm ·

    cialis patent expired

    cialis patent expired

  163. guidelines for dissertation writing
    February 11, 2022 at 6:43 am ·

    writing dissertation for dummies https://dissertationwriting-service.com/

  164. uf dissertation first submission
    February 11, 2022 at 1:49 pm ·
  165. writing a dissertation for dummies
    February 11, 2022 at 8:22 pm ·

    dissertation acknowledgements examples https://dissertations-writing.org/

  166. online dissertation help
    February 11, 2022 at 10:07 pm ·

    writing a master’s dissertation https://helpon-doctoral-dissertations.net/

  167. zithromax classification
    February 19, 2022 at 10:09 am ·

    zithromax classification

    zithromax classification

  168. azithromycin alcohol
    February 20, 2022 at 6:26 am ·

    azithromycin alcohol

    azithromycin alcohol

  169. azithromycin classification
    February 20, 2022 at 5:39 pm ·

    azithromycin classification

    azithromycin classification

  170. keflex dogs
    February 20, 2022 at 8:26 pm ·

    keflex dogs

    keflex dogs

Leave a reply

Back to Top