Witam! Mam mały problem ze skryptem. Teoretycznie wszystko cacy ale muszę sklepać 2 style ze sobą a nie wiem za bardzo jak wykryć co się gryzie :/ gdy korzystam z podstawowego stylu to strona wygląda tak jak chcę, jednak nie działa javascript, a gdy sklepie 2 cssy w jeden to skrypt działa, ale za to strona się psuje :/
css1 (znaleziony w necie, przerobiony przeze mnie)
body
{
color: #423f46;
background: #423f46 url(images/back.jpg) no-repeat center top;
font-size: 12px;
font-family: Geneva, Arial, Helvetica, Tahoma;
line-height: 150%;
}
html
{
height: 100%!important;
}
html,body
{
margin: 0;
padding: 0;
}
/* Global styles */
a
{
color: #323345;
text-decoration: none;
}
a:hover, a:active, a:focus
{
color: #ddddf5;
}
.button
{
color: #333;
font-weight: bold;
background: url(images/button-back.png) repeat;
border: 1px solid #555;
padding: 2px;
margin-top: 5px;
margin-bottom: 5px;
}
.inputbox
{
background: url(images/input-back.png) repeat;
border: 1px solid #555;
padding: 3px 0 3px 5px;
margin-top: 5px;
}
.clearfix:after
{
clear: both;
display: block;
content: "#";
height: 0;
visibility: hidden;
}
/* /Global styles */
/* Wrapper styles */
#pagewrap
{
width: 980px;
margin: 0 auto;
}
#flashwrap
{
background: top center;
height: 385px;
margin-left: 15px;
}
#mainwrap
{
float: right;
margin-top: -85px;
width: 750px;
}
#contentwrap-top
{
background: url(images/wrap-top.png) no-repeat center top;
position: relative;
height: 106px;
}
#contentwrap-center
{
background: url(images/wrap-center.png) repeat-y center top;
min-height: 810px;
}
#status
{
float: right;
margin-top: -2px;
margin-right: 30px;
}
#contentwrap
{
margin-left: 30px;
margin-right: 30px;
font-size: 14px;
}
#contentwrap h3
{
text-align: center;
}
#contentwrap a
{
color: #444488;
}
#contentwrap a:hover
{
color: #6666DD;
}
#contentwrap-bottom
{
background: url(images/wrap-bottom.png) no-repeat center bottom;
height: 106px;
line-height: normal;
}
#menuwrap
{
float: right;
margin-top: 45px;
width: 230px;
overflow: hidden;
color: #000;
}
#menupad
{
padding: 0 10px 10px 0;
}
#menuwrap a
{
font-size: 12px;
padding-left: 15px;
}
#menuwrap a.nostyle
{
font-size: 12px;
padding-left: 0px;
}
#menuwrap form
{
padding-left: 20px;
}
#menuwrap a.menulink
{
border-bottom: 1px dotted #666;
display: block;
background: url(images/bullet.png) no-repeat left;
margin-left: 45px;
font-size: 13px;
font-weight: bold;
padding-left: 18px;
}
#menuwrap a.menulink:hover
{
background: url(images/bullet-hover.png) no-repeat left;
}
#menumodule
{
padding:0 0 12px;
}
#menumodule h3
{
font-size: 16px;
font-weight: bold;
text-align: center;
color: #bbc0c4;
background: url(images/title-back.png) no-repeat top left;
width: 100%;
margin: 0;
padding: 8px 15px 15px;
}
#footerwrap
{
width: 78%;
float: right;
position: relative;
color: #F7F7F7;
}
/* /Wrapper styles */
css2
#lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
#lightbox img{ width: auto; height: auto;}
#lightbox a img{ border: none; }
#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer{ padding: 10px; }
#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}
#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }
#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; }
#imageData{ padding:0 10px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
#imageData #caption{ font-weight: bold; }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; outline: none;}
#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }
Proszę o pomoc
P.S.: Jest jakiś program do tworzenia stylów css z debugerem? ^^
Ten post edytował kamilosxd678 25.09.2009, 12:36:34