Meine Divs sind perfekt ausgerichtet. Ich versuche, ein Bild in der Mitte Div hinzuzufügen, aber sobald ich das Bild hinzufügen die Divs verschwinden und das Bild wird nicht angezeigt. Ich habe das Problem mit dem Hinzufügen des Bildes, kann jemand bitte helfen. Warum zeigt mein Bild nicht, was mit meinem Code falsch ist? Bild nicht innerhalb div
<style>
.div_parent{
display:inline;
background-image: url('../images/image.jpg') top center no-repeat;"
}
.div_center {
width:300px;
float:left;
border-color:black;
border-style:solid;
border-width:3px;
height :700px
}
.div_right
{
background-color:#edeeef;
border-color:black;
border-style:solid;
border-width:3px;
width: 150px;
float:left;
height:100%
}
.div_left
{
background-color:#edeeef;
border-color:black;
border-style:solid;
border-width:3px;
width: 150px;
float:left;
height:100%
}
</style>
<div class="div_parent">
<div class="div_left">
<br /><br /><br /><br /><br /><br />
\t \t \t \t \t \t \t <FONT size="3" style="font-family:sans-serif ; color:red; text-align:center;" > <STRONG>Welcome to the Reporting Portal! </STRONG> </font><br />
\t \t \t \t \t \t \t <br />
\t \t \t \t \t \t <FONT size="2" style="font-family:sans-serif; text-align: left;"> \t
\t \t \t \t \t Reports on this site are available as view-only or as an Excel download. </font>
</div>
<div class="div_center">
</div>
<div class="div_right">
<br /><br /><br /><br /><br /><br />
<FONT size="3" style="font-family:sans-serif ; color:red; text-align:center;" > <STRONG> We're Here to Help! </STRONG> </font><br /><br />
\t \t \t \t \t \t \t
<FONT size="2" style="font-family:sans-serif; text-align:left;"> \t
We're friendly and available to chat. Reach out to us anytime and we'll happily answer your questions.</br><br />
Supervisors should submit requests including specific fields and search criteria to us at Report Manager</a></font>
</div>
</div>
Wie wollen Sie sie ausgerichtet? selbe Größe? ein div unter dem anderen, wenn die Breite für beide zu klein ist und sie nach links schweben lassen? – KujAslani
Ich möchte sie ausgerichtet 1 ---- 2 ----- 3 zwei Seiten sollte eine wie 15px sein und die mittlere sollte die breiteste sein. – CrazyCoder