vertical alignment?


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. #zewnetrzny { position: relative}
  3. #wewnetrzny { position:absolute; top: 50%; height: 10em; margin-top: -5em}
  4.  
  5. <div id="zewnetrzny">
  6. <div id="wewnetrzny">
  7. <p>Lorem ipsum</p>
  8. <p>Dolor sit amet</p>
  9. </div>
  10. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.