• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Blockquote anders positionieren als im CSS festgelegt

Rola

Neues Mitglied
Ich habe verschiedene blockquotes mit css festgelegt, die unterschiedliche margins links und rechts haben.

Ich möchte mit html das margin für die blockquote-Klasse links rechts anders festlegen alls im css definiert. (alternativ könnte ich natürlich noch ne weitere Blockquote Klasse festlegen, was ich aber nicht will)

Wie sieht der html code aus für ein margin links und recht von 100px


Code:
 blockquote.home1 {
      background: #f9f9f3;
      font-family: Arial, Helvetica, sans-serif;
      color:#666;
      font-size:12px;
      font: bold 1em;
      padding: 1.5em 1em 1.2em 1em;
      border-top: 2px solid #508aff;
      border-bottom: 2px solid #508aff;
      margin: 10px 195px 20px 15px;
   }
   
    blockquote.home2{
      background: #f9f9f3 ;
      font: bold 1em;
      font-family: Arial, Helvetica, sans-serif;
      color:#666;
      font-size:12px;
      padding: 1.5em 1em 1.2em 1em;
      border-top: 2px solid #508aff;
      border-bottom: 2px solid #508aff;
      margin: 10px 80px 20px 170px;
   }


Vielen Dank im Voraus
 
Hallo,

wenn das anders als in der css haben möchtest muss das so:
Code:
<blockquote class="home1" style="margin:0 100px;"

Cheffchen
 
Zurück
Oben