ich habe mir zwei Dateien gebastelt. Eine theme.php und eine style.css.
Ist so auch alles ok, zumindest im Firefox. Starte ich den IE, verschiebt sich die Tabelle ein paar Zeilen nach unten. Ich möchte die Tabelle "ganz oben" haben, wie im Firefox. (margin-top)
Meine theme.php:
- Code: Alles auswählen
<DOCTYPE>
<?php
if (!defined('e107_INIT')) { exit; }
// $logo = "logo".rand(1, 4);
// [layout]
$layout = "_default";
$HEADER = "
<center>
<div>
<div>
<!-- <div> -->
<div>
{MENU=1}
</div>
</div>
</div>
<div>
<div>
<div>
{DYNAMIC_LOGO}
<div></div></div>
<div>
<center>{SITELINKS}</center>
</div>
</div>
<div>
<div>
";
$FOOTER = "
</div>
</div>
<br>
<div>{SITEDISCLAIMER}</div>
</div>
</div>
";
$NEWSSTYLE = "
<div>
<div>{STICKY_ICON} {NEWSTITLE}</div>
<div>{NEWSDATE}</div>
</div>
<div>
{NEWSICON} {NEWSBODY}
{EXTENDED}
</div>
<br>
<br>";
// <div>[ {NEWSAUTHOR} :: {NEWSCOMMENTS}{TRACKBACK} ]</div> --->>> zwischen <br> und <br>
define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", LAN_THEME_3);
define("COMMENTOFFSTRING", LAN_THEME_2);
define("PRE_EXTENDEDSTRING", "<br><br>[ ");
define("EXTENDEDSTRING", LAN_THEME_4);
define("POST_EXTENDEDSTRING", " ]<br>");
define("TRACKBACKSTRING", LAN_THEME_5);
define("TRACKBACKBEFORESTRING", " :: ");
// [linkstyle]
define('PRELINK', "");
define('POSTLINK', " |");
define('LINKSTART', "| ");
define('LINKSTART_HILITE', "| ");
define('LINKEND', "");
define('LINKDISPLAY', 1);
define('LINKALIGN', "left");
// [tablestyle]
function tablestyle($caption, $text, $mode)
{
echo "<div>{$caption}</div>\n{$text}\n<br><br>\n";
}
$COMMENTSTYLE = "
<div>{COMMENT} {COMMENTEDIT}<br><br>
<div>[ ".LAN_THEME_6." {USERNAME} :: {TIMEDATE} ]</div>
</div>
<br><br>
";
$CHATBOXSTYLE = "
<img>
<b>{USERNAME}</b>
<div>
{MESSAGE}
</div>
<br>
meine style.css:
- Code: Alles auswählen
/* info: default stylesheet file for 'CraHan' theme */
body {
background: #E5E5E5;
color: #000;
font-family: arial, "lucida grande", sans-serif;
text-align: center;
padding:0;
margin:0;
}
#wrapper {
margin: 10px;
width: 800px;
}
#menu {
float: right;
width: 181px;
text-align: right;
}
.content {
border: #444 2px solid;
padding: 15px;
font-size: 12px;
background: #fff;
color: #000;
text-align: left;
}
.fixfuckedie {
width: 100%;
padding:0;
margin:0;
}
#main {
/* width: 504px; */
width: 604px;
text-align: left;
}
#sitebanner {
border: #444 2px solid;
padding: 0px;
font-size: 12px;
background: #fff;
margin-bottom: 6px;
color: #000;
text-align: left;
}
#sitebanner img {
display: block;
border-bottom: #444 1px solid;
}
#navbar {
padding-right: 15px;
padding-left: 15px;
font-size: 13px;
padding-bottom: 7px;
padding-top: 7px;
}
#navbar a {
color: #99744F;
text-decoration: none;
}
#navbar a:active {
color: #99744F;
text-decoration: none;
}
#navbar a:visited {
color: #99744F;
text-decoration: none;
}
#navbar a:hover {
color: #99744F; text-decoration:
underline;
}
ul, ol {
margin-top: 0;
margin-bottom: 0;
}
.header {
padding-right: 0px;
padding-left: 0px;
font-weight: bold;
font-size: 12px;
padding-bottom: 3px;
margin: 0px 0px 10px;
color: #444;
padding-top: 0px;
border-bottom: #444 1px dashed;
}
h3 {
color: #444;
font-weight: bold;
margin-bottom: 2px;
}
.left {
float: left;
text-align: left;
}
.right {
text-align: right;
font-weight: normal;
}
.newssmalltext {
font: 10px tahoma, arial, helvetica, sans-serif;
color:#6C7F87;
}
img {
vertical-align: middle;
}
.linkspage_button{
vertical-align: middle;
border:0px;
}
hr {
border: 1px dotted #bbb;
height: 1px;
width: 92%;
text-align:center;
}
.smalltext {
font: 9px tahoma, arial, helvetica, sans-serif;
color:#5d6e75;
}
.bodytable {
padding: 2px;
font: 12px tahoma, arial, helvetica, sans-serif;
color: #444;
}
.button {
border: #000 1px solid;
color: #000;
font: 9px tahoma, arial, helvetica, sans-serif;
text-align:center;
background-image : url(images/button.png);
}
.button a {
color: #000;
}
.button a:hover {
color: #99744F;
}
a {
color: #99744F;
text-decoration: none;
}
a:active {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
color: #BA8D60;
text-decoration: underline;
}
.smallblacktext {
background: none;
font: 10px tahoma, arial, helvetica, sans-serif;
color:#000;
}
.indent{
padding: 10px 10px 10px 10px;
margin: 5px;
font: 9px tahoma, arial, sans-serif;
color: #838387;
border: 1px solid #000000;
}
.defaulttext {
background: none;
font: 12px tahoma, arial, helvetica, sans-serif;
color:#000;
}
td {
font: 12px tahoma, arial, helvetica, sans-serif;
color:#000000;
padding: 0px;
text-align:left;
}
blockquote {
font-family: tahoma, arial, helvetica, sans-serif;
color:#7e96ac;
border: 1px solid #d6d6d6;
}
.mediumtext {
font: 12px tahoma, arial, helvetica, sans-serif;
color:#000;
}
.tbox{
background-color: #ffffff;
border: #000000 1px solid;
color: #000000;
font: 10px tahoma, arial, helvetica, sans-serif;
}
.tbox.chatbox {
width: 80%;
margin-left: auto;
margin-right: auto;
}
.nextprev{
background-color: #ffffff;
border: #000 1px solid;
color: #000000;
font: 9px tahoma, arial, helvetica, sans-serif;
text-align:center;
padding : 2px;
text-align: right;
}
form {
margin: 2px 0px 0px 0px;
}
.spacer {
padding: 2px 0 2px 0;
}
.cspacer {
padding: 6px 0 6px 0;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.border {
border: #999 1px solid;
background-color: #F0F1F1;
padding: 2px;
}
p {
margin-top: 0px
}
.fborder {
border: #c1c1c1 0px solid;
}
.forumheader{
background-color: #ffffff;
font: 12px tahoma, arial, helvetica, sans-serif;
color:#000;
padding: 2px;
border: 0px solid #D8D8D8;
}
.forumheader2{
background-color: #EFEFEF;
font: 12px tahoma, arial, helvetica, sans-serif;
color:#000;
padding: 4px;
border: #C3BDBD 1px solid;
}
.forumheader3{
background-color: #ffffff;
font: 12px tahoma, arial, helvetica, sans-serif;
color:#000;
padding: 2px;
border: #D8D8D8 0px solid;
}
.forumborder{
border: #000080 1px solid;
}
.fcaption {
border: #f0f2f4 1px solid;
padding: 2px 0 2px 0;
background-color: #f9fafb;
font: 12px tahoma, arial, helvetica, sans-serif;
color:#616060;
}
.finfobar{
background-color: #CCC8C8;
color:#000;
padding: 4px;
border: 1px solid #C3BDBD;
font-style:normal;
font-variant:normal;
font-weight:normal;
font-size:12px;
font-family:tahoma, arial, helvetica, sans-serif
}
.helpbox {
color:#000;
font: 9px tahoma, arial, helvetica, sans-serif;
border: 0px none #FF4200;
background-color: transparent;
}
.nforumholder {
border: 1px solid #345487;
padding: 0px;
background-color: #fff;
}
.nforumcaption {
background-image: url(images/nforumcaption.png);
padding: 8px 4px 8px 4px;
font: 12px tahoma, arial, helvetica, sans-serif;
color: #fff;
}
.nforumcaption2 {
background-image: url(images/nforumcaption2.png);
padding: 8px 0px 8px 4px;
font: 10px tahoma, arial, helvetica, sans-serif;
color: #000;
font-weight: bold;
}
.nforumcaption3 {
border: 1px solid #fff;
padding: 4px;
background-color: #E4EAF2;
font: 12px tahoma, arial, helvetica, sans-serif;
}
.nforumthread {
border: 1px solid #fff;
padding: 4px;
background-color: #EEF2F7;
font: 10px tahoma, arial, helvetica, sans-serif;
}
.nforumthread2 {
border: 1px solid #fff;
padding: 4px;
background-color: #D1DCEB;
font: 10px tahoma, arial, helvetica, sans-serif;
}
.nforumreplycaption {
border: 1px solid #fff;
padding: 4px;
background-color: #E2EDF2;
font: 12px tahoma, arial, helvetica, sans-serif;
}
.nforumreply {
border: 1px solid #fff;
padding: 4px;
background-color: #EDF4F7;
font: 10px tahoma, arial, helvetica, sans-serif;
}
.nforumreply2 {
border: 1px solid #fff;
padding: 4px;
background-color: #CFE0EB;
font: 10px tahoma, arial, helvetica, sans-serif;
}
.nforumdisclaimer {
font: 9px tahoma, arial, helvetica, sans-serif;
color:#5d6e75;
}
.nforumview1 {
border: 1px solid #fff;
padding: 4px;
background-color: #E4EAF2;
font: 10px tahoma, arial, helvetica, sans-serif;
}
.nforumview2 {
border: 1px solid #fff;
padding: 4px;
background-color: #DFE6EF;
font: 10px tahoma, arial, helvetica, sans-serif;
}
.nforumview3 {
padding: 4px;
background-color: #BCD0ED;
font: 10px tahoma, arial, helvetica, sans-serif;
color: #263448;
}
.nforumview4 {
padding: 4px;
background-color: #E4EAF2;
font: 9px tahoma, arial, helvetica, sans-serif;
color: #3A4F6C;
}
a.forumlink{
color: #fff;
text-decoration: none;
}
a.forumlink:hover {
color: #bbb;
text-decoration: underline;
}
.treeclass1 {
background-color: #F4F7FA;
border: #5e5d63 1px solid;
color: #000000;
font: 9px tahoma, arial, helvetica, sans-serif;
padding: 2px 0px 2px 2px;
}
.treeclass2 {
background-color: #F4F7FA;
border: #000 1px solid;
color: #000000;
font: 9px tahoma, arial, helvetica, sans-serif;
padding: 2px 0px 2px 2px;
}
.treeclass3 {
background-color: #F4F7FA;
color: #000000;
font: 9px tahoma, arial, helvetica, sans-serif;
padding: 1px;
width: 100%;
}
#marqueecontainer{
position: relative;
height: 200px;
overflow: hidden;
}
Ich hoffe, dass jemand ein Tipp für mich hat, danke!
