الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكل في تنسيق الأوسمة لإظهار واحهة كما ينبغي

بدأه agent009 في 18 سبتمبر 2010 · 4 رد · 602 مشاهدة · في منتدى تصميم صفحات الويب
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

أنا عملت صفحة html و معها ملف التنسيق css

الصفحة كانت تظهر على ما يرام لكن يظهر خلل كما في الصورة التالية

ojpa1c.png

يعني دائما قائمة sidebar اللي على اليمين ستمتد تحت ال class بتاع content اللي على يسار القائمة

مما دفعني إلى إنشاء وسم ID لجمعها معا وعمل خلفية لهذا الوسم تمتد كلما امتد sidbar أو post

بعد إضافة ID = spacerbg الدي يجمع القائمة والمحتوى

تغير شكل الواجهة وتشوه كما في الصورة أسفله

23ihxrb.png

هذا هو ملف html كاملا


<head> <title>try it again</title><link rel="stylesheet" media="screen" type="text/css" title="style" href="style.css"></head>
<body>

<div id = "header">
<div class= "bhead"><div class = "b1"></div>
<div class = "b2"><img src='images/b2.gif' /></div>
<div class = "b3"></div>
<div class = "b4"><img src='images/b4.gif' /></div>
<div class = "b5"></div>
<div class = "b6"><img src='images/b6.gif' /></div>
<div class = "b7"></div>
<div class = "b8"><img src='images/b8.png' /></div>
<div class = "b9"></div>
<div class = "b10"></div>
<div class = "b11"><img src='images/b11.gif' /></div>
<div class = "b12"></div></div></div>
<div id="b13"></div>


<div id="spacerbg">
<div class="content">
<div class = "title"></div><div class ="post"><div class = "sd1">post1 post2 post3</div></div>
</div>

<div class="sidebar">
<div class="sidebar1"></div>
<div class ="sidebarlink"><ul><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li></ul></div>
<div class ="sidebottom"></div>

<div class="sidebar2"></div>
<div class ="sidebarlink"><ul><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li><li>islame</li></ul></div>
<div class ="sidebottom"></div>
</div></div>

</body></html>
<html>

وهذا هو ملف css كاملا


body {
width : 1000 px;
margin : 0;
padding : 0;
background-color : gggggg;
height : 1000px;
}


#header {

margin : 0px 85px 0px 85px;
width : 830px;
height : 240px;
background-image : url('images/header.jpg');
color : bbbbbb;
}

.bhead {
float : left;
width : 830px;
margin-top : 240px;
height : 33px;


}

.b1 {
float : left;
width : 62px;
height : 33px;
background-image : url('images/b1.gif') ;
background-repeat : no-repeat;
}

.b2 {
float : left;
height : 33px;
background-repeat : no-repeat;
}

.b3 {
float : left;
height : 33px;
width : 44px;
background-image : url('images/b3.gif') ;
background-repeat : no-repeat;
}

.b4 {
float : left;
background-repeat : no-repeat;
}


.b5 {
float : left;
height : 33px;
width : 44px;
background-image : url('images/b5.gif') ;
background-repeat : no-repeat;
}

.b6 {
float : left;
background-repeat : no-repeat;
}

.b7 {
float : left;
height : 33px;
width : 41px;
background-image : url('images/b5.gif') ;
background-repeat : no-repeat;
}

.b8 {
float : left;
background-repeat : no-repeat;
}

.b9 {
float : left;
height : 33px;
width : 39px;
background-image : url('images/b9.gif') ;
background-repeat : no-repeat;
}

.b10 {
float : left;
height : 33px;
width : 38px;
background-image : url('images/b10.gif') ;
background-repeat : no-repeat;
}

.b11 {
float : left;
background-repeat : no-repeat;
}

.b12 {

float : left;
height : 33px;
width : 38px;
background-image : url('images/b12.gif') ;
background-repeat : no-repeat;
}



/* le contenu kaybda man hna */

#b13{
margin : 0px 85px 0px 85px;
float:left;
height : 34px;
width : 830px;
background-image : url('images/b13.gif') ;
background-repeat : no-repeat;
}



/* post title : le titre de l'article*/

#spacerbg {
float : left;
width : 830px;
margin : 0;
background : url('images/spacerbg.gif');
background-repeat : repeat-y;
}

#spacerbg .content{
float : left;
margin-left : 85px;
margin-top : 0px;
width : 638px;
height: 500px;
background-color : bbbbbb;
}

#spacerbg .content .title{
float : left;
height : 47px;
width : 638px;
background-image : url('images/ptitle.gif') ;
background-repeat : no-repeat;
}


#spacerbg .content .post{
float : left;
width : 638px;
height : 631px;
background-image : url('images/postbg.gif') ;
background-repeat : repeat-y;
color : eeeeee;
background-repeat : repeat-y;
}

/* le menu sidebar */





#spacerbg .sidebar{
padding : 0;
float : left;
margin-right : 92px;
float:right;
width : 192px ;
height : 550px ;
}

#spacerbg .sidebar .sidebar1{
float : left;
width : 192px;
height : 47px;
background-image : url('images/sidebar1.gif') ;
}

#spacerbg .sidebar .sidebar2{
float : left;
width : 192px;
height : 47px;
background-image : url('images/sidebar2.gif') ;
}

#spacerbg .sidebar .sidebarlink{
margin : 0;
float : left;
width : 192px;
background : url("images/sidebarlink.gif") ;
background-repeat : repeat-y;
}


#spacerbg .sidebar .sidebottom{
float : left;
width : 192px;
height : 80px;
background : url("images/sidebottom.gif") ;
background-repeat : repeat-y;
}


تم تعديل هذه المشاركة بواسطة agent009 في 18 سبتمبر 2010 في 01:51

#2

السلام عليكم و رحمة الله

أعتذر بس بصراحة التصميم لا يشجع الشخص على قراءة الكود .. أعتذر مرة أخرى.

−1

welcome to my portfolio:

www.cornerofart.net

Submit you design

here
#3

لماذا أخي مادا تقصد بالتصميم غير مشجع على الرد المشكل ليس في التصميم إنما في تنسيقه

1 −1
#4

سلام

أخي إذا في مجال تحطلنا الصفحة مع الصور بملف مضغوط أو ترفعو بمكان ما عالنت

على كلين:

تأكد من أنو عرض الdiv الجديد كاف لأحتواء كلشي بئلبو

وجرب عطي الستايل: overflow:hidden

بانتظار ملف مضغوط فيو كل الصفحة

1 −1

Ibrahim Khalil

Web Developer

www.jawhersys.com

#5

تم حل المشكل والحمد لله عملت div = container تحتوي على وسم قائمة sidbar و content مع بعض التعديلات في ملف css وأعطيته خلفية لهدا الوسم - container

−1

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…