2016-06-18 7 views
0

Mein Code: https://jsfiddle.net/xgckxtes/1/Wie würde ich den Text hier unten verschieben?

Wie würde ich den Text niedriger nur mit HTML verschieben?

<div style="display: block;background-color:black; color:white; width: 266px; height:266px;x; border-radius:50px"> 

<p><q>Never let society to turn you into a grain of sand on the beach. Be different, be individual. Refuse to look alike with others. Leave your herd, only then you will have a real name and till then your name will remain as the grain of sand.</q> - <em>Mehmet Murat ildan</em></p> 

Antwort

0
<div style="display: table;background-color:black; color:white; width: 266px; height:266px;x; border-radius:50px"> 

<p style="display: table-cell; vertical-align: middle;"><q>Never let society to turn you into a grain of sand on the beach. Be different, be individual. Refuse to look alike with others. Leave your herd, only then you will have a real name and till then your name will remain as the grain of sand.</q> - <em>Mehmet Murat ildan</em></p> 
+0

Wenn Bedarf Text unten ändern „vertical-align ausrichten: Mitte, zu vertical-align: bottom; " – Nehemiah

+0

Gibt es eine Möglichkeit anzugeben, wie hoch oder wie tief der Text sein soll? – assaassa

+0

Never let society to turn you into a grain of sand on the beach. Be different, be individual. Refuse to look alike with others. Leave your herd, only then you will have a real name and till then your name will remain as the grain of sand. - Mehmet Murat ildan

Nehemiah

0

ändern Stil display: table-cell; vertikal ausrichten: Mitte;

Padding-Eigenschaft hinzufügen. Es wird es schöner machen.

padding-top einzustellen oben

zB:

<div style="display:table-cell; vertical-align: middle; background-color:black; 
padding:20px; 


color:white; width: 266px; height:266px;x; border-radius:50px"> 

<p><q>Never let society to turn you into a grain of sand on the beach. Be different, be individual. Refuse to look alike with others. Leave your herd, only then you will have a real name and till then your name will remain as the grain of sand.</q> - <em>Mehmet Murat ildan</em></p> 

</div> 

modifizierte Geige: https://jsfiddle.net/djsreeraj/84k62frb/2/

0
<style> 
    .item { width:300px; /*width:100%;*/ background-color:black; color:#FFF; border-radius:50px; padding:20px; } 
    .item p { font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:20px; padding:0; } 
</style> 

<div class="item"> 
<p><q>Never let society to turn you into a grain of sand on the beach. Be different, be individual. Refuse to look alike with others. Leave your herd, only then you will have a real name and till then your name will remain as the grain of sand.</q> - <em>Mehmet Murat ildan</em></p> 
</div> 
Verwandte Themen