السلام عليكم و رحمة الله
اريد التعديل على قائمة lavalamp لكي تظهر من اليمين إلى اليسار في موقعي، حاولت لكن يظهر لي مشكل الإنحراف الزر الداخلي لها كما هو موضح في الصورة الآتية:
المربع الصغير خرج عن المستطيل الذي من المفروض أن يكون بداخله، شيء آخر، كيف أمل المستطيل الطويل ليكون بنفس طول المستطيل الأسود الذي فوقه.
.lavaLampWithImage {
position: relative;
height: 29px;
width: 521px;
background: url("../images/bg.gif") no-repeat top;
padding: 15px;
margin: 10px;
padding-left: 50px;
margin-left: 418px;
overflow: hidden;
}
.lavaLampWithImage li {
float: right;
list-style: none;
}
.lavaLampWithImage li.back {
background: url("../images/lava.gif") no-repeat right -30px;
width: 9px;
height: 30px;
z-index: 8;
position: absolute;
}
.pos {
padding-left: 8px;
}
.lavaLampWithImage li.back .left {
background: url("../images/lava.gif") no-repeat top left;
height: 30px;
margin-right: 9px; /* 7px is the width of the rounded shape */
}
.lavaLampWithImage li a {
font: bold 14px arial;
text-decoration: none;
color: #fff;
outline: none;
text-align: center;
top: 7px;
text-transform: uppercase;
letter-spacing: 0;
z-index: 10;
display: block;
float: left;
height: 30px;
position: relative;
overflow: hidden;
margin: auto 10px;
}
.lavaLampWithImage li a:hover, .lavaLampWithImage li a:active, .lavaLampWithImage li a:visited {
border: none;
}