Ich bin mit dem Problem hinsichtlich der CSS-div-Tag konfrontiert.Div-Tag in einer einzigen Zeile
Dies ist mein Code, den ich verwende.
#title {
float: left;
background-color: #2e3539;
color: white;
}
.arrow-down {
float: left;
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 0px solid transparent;
border-bottom: 15px solid #2e3539;
}
.arrow-up {
float: left;
width: 0;
height: 0;
border-left: 0px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid #2e3539;
}
<DIV class=arrow-down></DIV>
<DIV id=title>{Title}</DIV>
<DIV class=arrow-up></DIV>
und das ist der Ausgang
Ich versuche, alle diese Div-Tag in einer Reihe zu machen, so sollte das Bild unten mögen: -
Jungs bitte helfen, ich verstehe nicht, was ich hier falsch mache.
Jungs, ich habe einige der Vorschläge ausprobiert, aber hatte das gleiche Problem, so füge ich den vollständigen Code hier Bitte schauen Sie.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.9600.18427"></HEAD>
<BODY>
<H1>{First name} {Last name}</H1>
<DIV class=arrow-down></DIV>
<DIV id=title>{Title}</DIV>
<DIV class=arrow-up></DIV><BR>
<DIV id=phone>
<P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN><BR>off:</SPAN> {mobile no} | <SPAN>mob:</SPAN> {office number}</P><BR></DIV>
<DIV id=address><SPAN>company</SPAN><BR> {address}
<BR>{country}<BR><BR></DIV>
<STYLE>
@import url('http://fonts.googleapis.com/css?family=Lato:400,700');
body {
font-size:12px;
color: black;
font-family: 'Lato', sans-serif;
}
h1 {
color: #77bc1f;
margin: auto;
padding-left: 14px;
font-size: 17px;
}
span {
color: #77bc1f;
font-weight: bold;
}
#title {
float: left;
background-color: #2e3539;
color: white;
}
.arrow-down {
float: left;
width: 5px;
height: 0px;
border-left: 15px solid transparent;
border-right: 0px solid transparent;
border-bottom: 21px solid #2e3539;
}
.arrow-up {
float: left;
width: 5px;
height: 0;
border-left: 0px solid transparent;
border-right: 15px solid transparent;
border-top: 21px solid #2e3539;
}
</STYLE>
</BODY>
Vielen Dank im Voraus.
https://jsfiddle.net/ozu6ru29/ scheint just fine – haim770