Wie setze ich die Breite eines -Tags in CSS ein? [Duplikat]HTML

HTML-Programmierer
Guest
 Wie setze ich die Breite eines -Tags in CSS ein? [Duplikat]

Post by Guest »

Ich habe versucht, die Breite des Codes gleich zu machen, aber es funktioniert nicht. Wie mache ich es so, dass es die gleiche Breite hat? Ich habe den Stil auf 100%gesetzt, aber er ist immer noch anders. Dies soll ein Cheatsheet über die Tags und Code sein, daher habe ich das Code -Tag verwendet. < /P>

Code: Select all

    




HTML Cheatsheet

.head {
font-size: 300%;
}

code {
font-size: 250%;
border-style: solid solid hidden solid;
width: 100%
}

.last {
border-style: solid;
}

div {

}





[b]HEADINGS[/b]

Heading 1
Heading 2
Heading 3
[h4]Heading 4[/h4]
Heading 5
Heading 6
Heading 1 is the biggest, Heading 6 is the smallest.

<h1>Heading 1</h1>

Code: Select all

<h2>Heading 2</h2>

Code: Select all

<h3>Heading 3</h3>

Code: Select all

<h4>Heading 4</h4>

Code: Select all

<h5>Heading 5</h5>

Code: Select all

<h6>Heading 6</h6>


PARAGRAPHS

Paragraph

Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim distinctio maiores voluptatibus asperiores facere
et assumenda adipisci inventore, dolorem iusto dignissimos id earum iste, delectus reprehenderit, repellendus
consequatur! Adipisci, quas.

Code: Select all

<p>Paragraph text</p>


TEXT STYLING

Strong text
Italic text
Note: both are p

Code: Select all

<p><strong>Strong text<strong></p>

Code: Select all

<p><em>Italic text<em></p>




Was ist das Problem hier und wie löste ich es?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post