لماذا هذه العناصر لاتأتي على صف واحد مثل ما هو موضح في الصوره
كود html
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><linkrel="stylesheet"href="pstyle.css"><metaname="viewport"content="width=device-width, initial-scale=1.0"><linkrel="preconnect"href="https://fonts.googleapis.com"><linkrel="preconnect"href="https://fonts.gstatic.com"crossorigin><linkhref="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap"rel="stylesheet"><title>CRUDs</title></head><body><divclass="crud"><!-- ----- --><divclass="head"><h2><imgsrc="/project/photos/cruds.png"alt=""width="40px"><p>crud</p></h2><atarget="_blank"href="/ourTeam.html"class="ourTeam">Our Team</a></div><!-- ----- --><divclass="inputs"><inputtype="text"name=""id="title"placeholder="title"><divclass="price"><inputonkeyup="getTotal()"type="text"value=""id="price"placeholder="price"><inputonkeyup="getTotal()"type="text"value=""id="taxes"placeholder="taxes"><inputonkeyup="getTotal()"type="text"value=""id="ads"placeholder="ads"><inputonkeyup="getTotal()"type="text"value=""id="discount"placeholder="discount"></div><pstyle="text-align: center ; width:100%; margin:4px0;"id="total"></p><divclass="containerOfcreat"><divclass="creatdiv"><inputtype="text"id="count"placeholder="count"><inputtype="text"id="category"placeholder="category"></div><buttonid="submit"><imgsrc="/project/photos/creat.png"alt="noIMGerror"width="20px"> Creat</button></div></div><!-- ----- --><divclass="outputs"><divclass="searchBlock"><inputonkeyup="searchData(this.value)"type="text"id="search"placeholder="search"><divclass="btnSearch"><buttononclick="getSearchMood(this.id)"id="searchTitle"><imgwidth="10px"src="/project/photos/search.png"alt="noIMG"> Search By Title</button><buttononclick="getSearchMood(this.id)"id="searchTCategory"><imgwidth="10px"src="/project/photos/search.png"alt="noIMG"> Search By Category</button></div></div></div><divid="deletAll"></div><table><tr><th>id</th><th>title</th><th>price</th><th>taxes</th><th>discount</th><th>total</th><th>ads</th><th>category</th><th>update</th><th>delet</th></tr><tbodyid="tbody"></tbody></table></div><footer><p>Proudly made by Mohammed Haimour 😁</p></footer><scriptsrc="JSfile.js"></script></body></html>
css
*{
margin:0;
padding:0;}
html {
font-family:'Roboto', sans-serif;}
body {
background-color: rgb(215,215,215);
color: rgb(0,0,0);}.crud {
width:80%;
margin:auto;}.head {
display: flex;
justify-content: space-between;
text-align: left;
text-transform: uppercase;
margin:10px0;}.head h2 p {
position: relative;
top:-10px;
display:inline-block;}.head .ourTeam {
margin:5px000;
background-color:#0d1a22;
border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;
padding:10px;
text-decoration: none;
color: white;
transition: all 1s ease;-webkit-transition: all 1s ease;-moz-transition: all 1s ease;-ms-transition: all 1s ease;-o-transition: all 1s ease;}.head .ourTeam:hover {
background-color:#264b62cb;
color: rgb(199,199,199);
box-shadow:0px0px10px rgb(0,41,113);
text-shadow:5px5px5px rgb(255,255,255);}
input {
width:100%;
height:30px;
outline: none;
border: none;
background-color: rgb(255,255,255);
margin:4px0;
border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;
padding:4px;
transition:0.5s all;-webkit-transition:0.5s all;-moz-transition:0.5s all;-ms-transition:0.5s all;-o-transition:0.5s all;}
input:focus {
background-color:#000;
color: white;
transform: scale(1.1);-webkit-transform: scale(1.1);-moz-transform: scale(1.1);-ms-transform: scale(1.1);-o-transform: scale(1.1);}.price input {
width:23%;}#total {
background-color: rgb(148,24,24);
padding:6px3px;
border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;
color: white;}#total::before {
content:"total: ";}
button {
width:101%;
height:30px;
border: none;
cursor: pointer;
background-color: rgb(65,88,208);
color: white;
border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;
transition: all 0.5s;-webkit-transition: all 0.5s;-moz-transition: all 0.5s;-ms-transition: all 0.5s;-o-transition: all 0.5s;}
button:hover {
background-color: rgb(0,25,149);
letter-spacing:0.5px;}.containerOfcreat{
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;}.creatdiv{
width:45%;}#submit {
width:45%;
padding:20px;
display: block;
height:82px;
font-size:30px;
position: relative;
right:-8px;}.btnSearch {
display: flex;
justify-content: space-evenly;}.btnSearch button {
width:45%;}#deletAll button{
margin:15px0;
background-color: rgb(225,0,0);
box-shadow:005px5px rgb(255,21,21);
transition: all 1s;-webkit-transition: all 1s;-moz-transition: all 1s;-ms-transition: all 1s;-o-transition: all 1s;}#deletAll button:hover{
background-color: rgb(143,0,0);
box-shadow:005px5px rgb(255,87,87);}
table {
width:100%;
text-align: center;
margin:10px0;}
table th {
text-transform: uppercase;}
th,
td {
padding:5px;}
footer {
width:100%;
margin-top:40px;
background-color:#0d1a22;
padding:30px0;}
footer p {
color:#346787;
text-align: center;
font-weight: bold;
font-size:30px;
transition: all 1s;-webkit-transition: all 1s;-moz-transition: all 1s;-ms-transition: all 1s;-o-transition: all 1s;}
footer p:hover {
color:#0d1a22;
text-shadow:0px0px10px whitesmoke;}
السؤال
Mohammed Hhhh
لماذا هذه العناصر لاتأتي على صف واحد مثل ما هو موضح في الصوره
كود html
css
2 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.