Note that there are some explanatory texts on larger screens.

plurals
  1. POJustify single word in html/css
    primarykey
    data
    text
    <p>I have a header which I constructed like this:</p> <pre><code>&lt;header class="top"&gt; &lt;a href=""&gt; &lt;span class="right"&gt;Stichting Delftsche Opera Compagnie presenteert&lt;/span&gt; &lt;h1 class="right"&gt;Carmen&lt;/h1&gt; &lt;h2 class="right"&gt;Een opera door Krashna Musika en de TU Delft&lt;/h2&gt; &lt;/a&gt; &lt;/header&gt; </code></pre> <p>This should look like this, as someone made this in Adobe Illustrator</p> <p><img src="https://i.stack.imgur.com/HPc0A.png" alt="Original"></p> <p>Then I applied some css and got to this (in the original there is a Dutch spelling mistake, this one is corrected, the scale is not completely equal either):</p> <p><img src="https://i.stack.imgur.com/er4ra.png" alt="HTML version"></p> <p>The rules:</p> <pre><code>.top { display: block; width: 800px; float: right; } .top a { background-image: url('../img/logo.jpg'); background-size: 150px 150px; background-repeat: no-repeat; padding-left: 150px; height: 175px; display: block; overflow: hidden; } .top .right { text-align: justify; width: 650px; } .top span, .top h2 { color: #E02C33; font-size: 1.8em; } .top h1 { color: #B02025; font-size: 4.7em; text-transform: uppercase; } </code></pre> <p>I have two issues here:</p> <ol> <li>How can I justify both the <code>&lt;span&gt;</code> and <code>&lt;h2&gt;</code> to their equal lengths (my justify is not working as expected)</li> <li>How can I constraint "CARMEN" such the width and height are pre defined, the spacing between characters is rendered by the browser</li> </ol>
    singulars
    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.
 

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