robie strone na DIV'ach - pod FireFox wszystko jest ok, jednak pod IE pod obrazkiem/odsylaczem menu daje 4px wolnego.
tak wyglada moj CSS
CODE
div {
position:absolute;
margin:0px;
}
#container {
margin:0px;
}
#footer {
position:static;
z-index:0;
text-align:center;
}
#apDiv1 {
left: 0px;
top: 0px;
width: 195px;
z-index: 0;
vertical-align: middle;
}
#apDiv2 {
left: 195px;
top: 0px;
width: 805px;
z-index: 0
}
#apDiv3 {
left: 195px;
top: 146px;
width: 644px;
z-index: 0;
vertical-align: top;
}
#apDiv4 {
left: 839px;
top: 146px;
width: 10px;
z-index: 0;
vertical-align: middle
}
#apDiv5 {
left: 849px;
top: 146px;
width: 151px;
text-align:left;
z-index: 0;
vertical-align: top;
}
#apDiv6 {
left: 0px;
top: 291px;
width: 195px;
text-align:center;
z-index: 0;
}
#apDiv7 {
left: 195px;
width: 644px;
z-index: 0;
position:relative;
}
#apDiv8 {
left: 0px;
top: 0px;
width: 1px;
z-index: 0
}
body {
background-color: #000000;
background-image: url(images/tlo.gif);
margin:0px;
padding:0px;
}
img {
border:0px;
border:none;
margin:0px;
padding:0px;
}
position:absolute;
margin:0px;
}
#container {
margin:0px;
}
#footer {
position:static;
z-index:0;
text-align:center;
}
#apDiv1 {
left: 0px;
top: 0px;
width: 195px;
z-index: 0;
vertical-align: middle;
}
#apDiv2 {
left: 195px;
top: 0px;
width: 805px;
z-index: 0
}
#apDiv3 {
left: 195px;
top: 146px;
width: 644px;
z-index: 0;
vertical-align: top;
}
#apDiv4 {
left: 839px;
top: 146px;
width: 10px;
z-index: 0;
vertical-align: middle
}
#apDiv5 {
left: 849px;
top: 146px;
width: 151px;
text-align:left;
z-index: 0;
vertical-align: top;
}
#apDiv6 {
left: 0px;
top: 291px;
width: 195px;
text-align:center;
z-index: 0;
}
#apDiv7 {
left: 195px;
width: 644px;
z-index: 0;
position:relative;
}
#apDiv8 {
left: 0px;
top: 0px;
width: 1px;
z-index: 0
}
body {
background-color: #000000;
background-image: url(images/tlo.gif);
margin:0px;
padding:0px;
}
img {
border:0px;
border:none;
margin:0px;
padding:0px;
}
a HTML taki
<body> <div id="container"> <img src="images/odstep.jpg" width="26" height="3"> <img src="images/promocje_off.gif"> <img src="images/odstep.jpg" width="26" height="3"> <img src="images/sklepy_off.gif"> <img src="images/odstep.jpg" width="26" height="3"> <img src="images/odstep.jpg" width="26" height="3"> <img src="images/odstep.jpg" width="26" height="3"> <img src="images/odstep.jpg" width="26" height="3"> <img src="images/cien.gif"> </div> </body>
bardzo prosty kod, a nie wiem gdzie jest blad. pod obrazkami w menu (apDiv6) daje 4px wolnego.
p.s.
to reszta CSS nie istotna (chyba) przy tym problemie
CODE
body {
background-color: #000000;
background-image: url(images/tlo.gif);
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #4e4e4e;
scrollbar-darkshadow-color: #98AAB1;
color:#FFFFFF;
}
/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link,a:active,a:visited { color : #ffffff; }
a:hover { text-decoration: underline; color : #ffffff; }
hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline { background-color: #000000; border: 0px #000000 solid; }
/* This is the outline round the main forum tables */
.forumline { background-color: #000000; border: 0px #000000 none; }
.forumlineGaw { background-color: #4e4e4e; border: 1px #000000 solid; }
/* Main table cell colours and backgrounds */
td.row1 { background-color: #4e4e4e; }
td.row2 { background-color: #717171; }
td.row3 { background-color: #D1D7DC; }
/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: #000000;
background-image: url(images/cellpic2.jpg);
background-repeat: repeat-y;
}
/* Header cells - the blue and silver gradient backgrounds */
th {
color: #FFA34F; font-size: 11px; font-weight : bold;
background-color: #000000; height: 25px;
background-image: url(images/cellpic3.gif);
}
td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-image: url(images/cellpic1.gif);
background-color:#D1D7DC; border: #000000; border-style: none; height: 28px;
}
td.catGaw {
border: #000000; border-style: none; height: 28px;
background-image: url(images/cellpic1.gif);
vertical-align:middle;
}
/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.t
CornerR {
font-weight: bold; border: #000000; border-style: none; height: 28px; }
td.row3Right,td.spaceRow {
background-color: #D1D7DC; border: #4e4e4e; border-style: solid; }
th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }
/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2 {
font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #000000;
}
/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #ffffff; }
a.gen,a.genmed,a.gensmall { color: #FFFFFF; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #ffffff; text-decoration: underline; }
/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : 11px; color : #000000 }
a.mainmenu { text-decoration: none; color : #FFFFFF; }
a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }
/* Forum category titles */
.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #FFFFFF}
a.cattitle { text-decoration: none; color : #FFFFFF; }
a.cattitle:hover{ text-decoration: underline; }
/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: 12px; color : #FFFFFF; }
a.forumlink { text-decoration: none; color : #FFFFFF; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }
/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: 11px; color : #ffffff;}
a.nav { text-decoration: none; color : #FFFFFF; }
a.nav:hover { text-decoration: underline; }
/* titles for the topics: could specify viewed link colour too */
.topictitle { font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link { text-decoration: none; color : #FFFFFF; }
a.topictitle:visited { text-decoration: none; color : #ffffff; }
a.topictitle:hover { text-decoration: underline; color : #DD6900; }
/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : 11px; color : #ffffff;}
/* Location, number of posts, post date etc */
.postdetails { font-size : 10px; color : #ffffff; }
/* The content of the posts (body of text) */
.postbody { font-size : 12px;}
a.postlink:link { text-decoration: none; color : #FFFFFF }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}
/* Quote & Code blocks */
.code {
font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
.quote {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
/* Copyright and bottom info */
.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
a.copyright { color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: underline;}
/* Form elements */
input,textarea, select {
color : #000000;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-color : #000000;
background-color:#FFFFFF;
}
/* The text input fields background colour */
input.post, textarea.post, select {
background-color : #FFFFFF;
}
input { text-indent : 2px; }
/* The buttons used for bbCode styling in message post */
input.button {
background-color : #4e4e4e;
color : #000000;
font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}
/* The main submit button option */
input.mainoption {
background-color : #FAFAFA;
font-weight : bold;
}
/* None-bold submit button */
input.liteoption {
background-color : #FAFAFA;
font-weight : normal;
}
/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know
*/
.helpline { background-color: #DEE3E7; border-style: none; }
background-color: #000000;
background-image: url(images/tlo.gif);
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #4e4e4e;
scrollbar-darkshadow-color: #98AAB1;
color:#FFFFFF;
}
/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link,a:active,a:visited { color : #ffffff; }
a:hover { text-decoration: underline; color : #ffffff; }
hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline { background-color: #000000; border: 0px #000000 solid; }
/* This is the outline round the main forum tables */
.forumline { background-color: #000000; border: 0px #000000 none; }
.forumlineGaw { background-color: #4e4e4e; border: 1px #000000 solid; }
/* Main table cell colours and backgrounds */
td.row1 { background-color: #4e4e4e; }
td.row2 { background-color: #717171; }
td.row3 { background-color: #D1D7DC; }
/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: #000000;
background-image: url(images/cellpic2.jpg);
background-repeat: repeat-y;
}
/* Header cells - the blue and silver gradient backgrounds */
th {
color: #FFA34F; font-size: 11px; font-weight : bold;
background-color: #000000; height: 25px;
background-image: url(images/cellpic3.gif);
}
td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-image: url(images/cellpic1.gif);
background-color:#D1D7DC; border: #000000; border-style: none; height: 28px;
}
td.catGaw {
border: #000000; border-style: none; height: 28px;
background-image: url(images/cellpic1.gif);
vertical-align:middle;
}
/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.t
CornerR {
font-weight: bold; border: #000000; border-style: none; height: 28px; }
td.row3Right,td.spaceRow {
background-color: #D1D7DC; border: #4e4e4e; border-style: solid; }
th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }
/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2 {
font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
text-decoration: none; line-height : 120%; color : #000000;
}
/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #ffffff; }
a.gen,a.genmed,a.gensmall { color: #FFFFFF; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #ffffff; text-decoration: underline; }
/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : 11px; color : #000000 }
a.mainmenu { text-decoration: none; color : #FFFFFF; }
a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }
/* Forum category titles */
.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #FFFFFF}
a.cattitle { text-decoration: none; color : #FFFFFF; }
a.cattitle:hover{ text-decoration: underline; }
/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: 12px; color : #FFFFFF; }
a.forumlink { text-decoration: none; color : #FFFFFF; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }
/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: 11px; color : #ffffff;}
a.nav { text-decoration: none; color : #FFFFFF; }
a.nav:hover { text-decoration: underline; }
/* titles for the topics: could specify viewed link colour too */
.topictitle { font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link { text-decoration: none; color : #FFFFFF; }
a.topictitle:visited { text-decoration: none; color : #ffffff; }
a.topictitle:hover { text-decoration: underline; color : #DD6900; }
/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : 11px; color : #ffffff;}
/* Location, number of posts, post date etc */
.postdetails { font-size : 10px; color : #ffffff; }
/* The content of the posts (body of text) */
.postbody { font-size : 12px;}
a.postlink:link { text-decoration: none; color : #FFFFFF }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}
/* Quote & Code blocks */
.code {
font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
.quote {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
/* Copyright and bottom info */
.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
a.copyright { color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: underline;}
/* Form elements */
input,textarea, select {
color : #000000;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
border-color : #000000;
background-color:#FFFFFF;
}
/* The text input fields background colour */
input.post, textarea.post, select {
background-color : #FFFFFF;
}
input { text-indent : 2px; }
/* The buttons used for bbCode styling in message post */
input.button {
background-color : #4e4e4e;
color : #000000;
font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}
/* The main submit button option */
input.mainoption {
background-color : #FAFAFA;
font-weight : bold;
}
/* None-bold submit button */
input.liteoption {
background-color : #FAFAFA;
font-weight : normal;
}
/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know

*/
.helpline { background-color: #DEE3E7; border-style: none; }