Note that there are some explanatory texts on larger screens.

plurals
  1. POVertical padding %
    primarykey
    data
    text
    <p>I'm trying to make my home page divided into two areas one above (white) and the other below (black).</p> <p>The page is intended to be divided vertically at 50% and it works fine.</p> <p>Both area have a title, the white area on top (should have the title on the bottom side of it) while the dark area below should have the title on it's upper side. In this way the two titles are in the center of the page.</p> <p>My only problem is that I cant find a way to bring down the title of the upper area. The fastest way was to use padding-top and a %, but this way the padding would result a % of the width of the page and not its height.</p> <p>Do you have any idea how to solve that?</p> <p>HTML</p> <pre><code>&lt;div&gt; &lt;div style="height:50%; width:100%; background-color:#FFFFFF"&gt; &lt;a href="http://www.lorenzomeschini.com/architecture"; onMouseOver="this.style.color='#FCB415'" onMouseOut="this.style.color='#cccccc'" style="text-align:center; font-family:Tahoma, Geneva, sans-serif; color:#dddddd; font-size:19px; letter-spacing:0.22em; height:100%"&gt;architecture&lt;/a&gt; &lt;/div&gt; &lt;div style="position: absolute; bottom:0;width:100%;height:50%"&gt; &lt;a href="http://www.lorenzomeschini.com/photography"; onMouseOver="this.style.color='#FCB415'" onMouseOut="this.style.color='#cccccc'" style="text-align:center; font-family:Tahoma, Geneva, sans-serif; color:#cccccc; font-size:19px; letter-spacing:0.21em; height:100%"&gt;photography&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>CSS</p> <pre><code>body { background-color: #1E1E1E; margin: 0; padding: 0; color: #919191; font-family: "Courier New", Courier, monospace; font-size: 13px; </code></pre> <p>Thank you so much</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload