-2

I have that html code:

<div id ="leftHalf">
    <div><p>CHOOSE</p></div>
</div>

<p>A</p>

<div id ="rightHalf">
    <div><p>CAT</p></div>
</div>

leftHalf is a div that occupies the left half of the screen with black background and rightHalf the right half in white. I just need to put a text (<p>A</p>) in the middle of the screen but I can't not see it. It seams that it's behind the divs.

Anyone knows how to solve this? Thanks.

malifa
  • 8,025
  • 2
  • 42
  • 57
Hack Facilito
  • 71
  • 1
  • 8

1 Answers1

0

I think you may be missing a:

"text-align: center;" on your <p> tag

See https://jsfiddle.net/5ay5xrt4/1/ - hope this helps!

combatc2
  • 1,215
  • 10
  • 10