Zum Inhalt springen

unterschiedliche Ansichten in der Navi

Erstellt am 31. Oktober 2008 · 4 Antworten · letzte Antwort am 2. November 2008

Tags: HTML & CSS, Frage

Bubumann38 ·

Hallo liebe Leute,

ich habe einige kleinere Unstimmigkeiten in der meiner Navigation. Sprich, die Typo3-Ausgabe wird nicht so dargestellt wie die HTML-Vorlage. So werden nicht alle Trennzeichen "|" ausgegeben und die Unternavi ist ab dem zweiten Menüpunkt "Energieforum Berlin" nicht mehr stimmig mit der Vorlage. Woran liegt das?

HTML-Vorlagedatei
Bild: s160150340.online.de/…/original-screen.JPG

Typo3-Ausgabe
Bild: s160150340.online.de/…/typo3-screen.JPG

Ebenso habe ich noch eine Frage zur Positionierung des Bildes im Text.
In der Vorlage soll das Bild linksbündig abschließend mit dem Logo im Kopf sein. In der typo3-Ausgabe ist es aber rechtsbündig angeordnet.

Ich danke Euch für Eur Unterstützung

norbert7 ·

Hallo,
ich denke mal ohne deine CSS Angaben und den Quellcode deines Templates, sowie dein Template-Setup wirds schwer da was drüber zu sagen warum sich die Ausgabe so verhält. 😉

Bubumann38 ·

Okay, ist natülich klar. Dann werde ich mal die entsprechenden Quelltexte hier posten:

TS-Script

# Default PAGE object:
page = PAGE
page.10 = TEMPLATE
page.10.template = FILE
page.10.template.file = fileadmin/ogb-relaunch/templates/index.html
page.includeCSS.file1 = fileadmin/ogb-relaunch/css/style.css

page.meta {
     keywords = TEXT
     keywords.data = DB:pages:23:keywords
     keywords.override {
          required = 1
          data = field:keywords
     }
 
     description = TEXT
     description.data = DB:pages:23:description
     description.override {
          required = 1
          data = field:description
     }
     language = de
     revisit-after = 10 days
     robots = index, follow
     date = 2008-02-09
     keyword = Veranstaltungsagenturen, Event, Eventagentur, Eventagenturen, Organisation, Organisationsbro, Organisationsbuero, Felix Eisenhardt,Location Service, Locationservice, Veranstaltungsorte Berlin,Projektmanagement, Veranstaltungsservice, Marketing
     description = Kunst- und inhalteorientierte Berliner Veranstaltungsagentur mit den Schwerpunkten Veranstaltungskonzeption und –produktion, PR-Aktionen, Business- und Improvisationstheater, Location Service ... 
     
     } 

config {
  doctype = xhtml_strict
  htmlTag_langKey = de_AT
  xhtml_cleaning = all
  locale_all = de_AT
  language = de
} 

page.headerData.100 = TEXT
page.headerData.100.value (
	<script type="text/javascript" src="fileadmin/ogb-relaunch/js/horizontal.js"></script>
)

page.headerData.99 = TEXT
page.headerData.99.value (
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="fileadmin/ogb-relaunch/css/style_ie7.css" />
<![endif]-->
)

page.headerData.98 = TEXT
page.headerData.98.value (
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="fileadmin/ogb-relaunch/css/style_ie6.css" />
<![endif]-->
)

page.10.workOnSubpart = DOKUMENT 
page.10.marks.CONTENT < styles.content.get

page.10.marks.MENU = HMENU
page.10.marks.MENU {
	special = directory
	special.value = 23
	1 = TMENU
	1 {
		expAll = 1
		wrap = <ul id="nav">|</ul>
		noBlur = 1
		NO = 1
		NO.wrapItemAndSub = <li>|</li>

		IFSUB = 1
		IFSUB.wrapItemAndSub = <li class="menuparent">|</li>
		ACTIFSUB < .IFSUB
	}
	2 < .1	
	2.wrap = <ul>|</ul>

	3 < .2
	4 < .2
}

CSS-Code

* { 	margin:0; padding:0; }

body{
 	margin: 0 auto; 
	text-align: center; 
	font: normal normal 101% Arial, Helvetica, sans-serif;
	background: #a7a8aa;
	color: #333;
}
#container {
	width: 800px; 
 	margin: 0px auto; 
	text-align: center; 
	padding: 0 15px;
}	

#page { 
	text-align: left; 
	width: 800px; 
	float: left;
	background: white;
	padding-bottom: 50px;
 }
#header {
	background: url(../img/header.jpg) no-repeat;
	width: 800px;
	height: 210px;
	text-align: left; 
	margin-bottom: 6px;
}
#logo {
	float: right;
	width: 275px;   
	text-align: left;
	margin-right: -15px;
	height: 48px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	margin-bottom: 48px;
}

ul#service {
	/*height: 40px;*/
	padding-top:10px;
	text-align: right;
	list-style: none;
	margin: 0 24px 23px 0;
}
ul#service li {
	text-align: center;
	display: inline;
}
ul#service span, ul#navigation span {
	color: black;
	font-size: .7em;
	margin: 0;
}
#header ul#navigation span {
	float: left;
	margin-top: 3px;
}
ul#service li a:link, ul#service li a:visited, ul#service li a:hover, ul#service li a:active {
	font-size: .85em;
	padding:0 5px 5px 5px;
	color:black;
	text-decoration:none;
}
ul#service li a:hover, ul#service li a:active {
	text-decoration: underline;
}
ul#navigation, ul#navigation ul {
	list-style: none;
	/*width: auto;*/
	line-height: 1;
}
ul#navigation {
	width:515px;
	clear: right;
	height: 22px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	list-style: none;
	margin-left: -15px;
	padding: 3px 0 0 40px; /* left:40px */
	background: #a7a8aa url(../img/nav_back.gif) no-repeat right;
	filter:alpha(opacity=80); /* IE */
 	-moz-opacity:0.8; /* FF */
 	opacity: 0.8; /* Opera */
}
#navigation li, #service li {
	display: inline;
	color: black;
	font: normal normal 0.8em Arial, Helvetica, sans-serif;
}
#navigation li {
	float: left;
	width: 154px; 
	text-align: center;
	display: block;/* 10em */
	position: relative;
}

#navigation li ul { /* second-level lists */
/*	margin-top: 7px;
*/	padding: 20px 0 15px 13px;
	position: absolute;
	background: #E6E8EA url(../img/pfeil_navi.gif) no-repeat top left;
	filter:alpha(opacity=90); /* IE */
 	-moz-opacity:0.9; /* FF */
 	opacity: 0.9; /* Opera */
	width: 141px;
	left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
}

#navigation li:hover ul, #navigation li.sfhover ul { /* lists nested under hovered list items */
	left: 0;
}
#navigation li ul li {
	border: none;
	text-align: left;
	height: 20px;
}

#navigation li a, #navigation li a:link, #navigation li a:hover {
	font-weight: bold;
	display: block;
	color: black;
	text-decoration: none;	
	height: 23px;
}

#navigation li ul li a, #navigation li ul li a:link, 
#navigation li ul li a:hover {
	font: normal normal 1.3em arial, helvetica, sans-serif;
}
#navigation li ul li a:hover {
		color:#E2001A;
}
/* ------- Content Bereich   --------  */

#content, #contentBlock{
	background: white;
	margin: 38px 0 10px 25px;
	padding-bottom: 15px;
	width: 755px;
	float:left;
}

#contentBlock{
	margin: 18px 0 0 0;
	width: 800px;
	padding: 0;
}
#contentBlock #content {
	border-bottom: 1px solid #A7A8AA;
	margin: 20px 50px 10px 25px;
	
}

#bild {
	width: 260px;
	float:left;
	padding: 0; 
	margin: 60px 0 0 0;
}
#contentBlock #bild {
	margin: 22px 0 0 0;
}
.paging {
	padding-top: 5px;
	border-top: 1px solid #A7A8AA;
	margin-bottom:10px; 
}

ul.fuehrend {
	list-style-type:none;
}
.fuehrend li{
	margin:0 100px 10px 0px;
	padding-left: 10px;
	font: normal normal .75em Arial, Helvetica, sans-serif;
	background: url(../img/item_dark.gif) no-repeat 0 5px;
	line-height: 150%;
	
}
ul.unterListe { 
	margin: 0;
	list-style-type: none; 
	font: normal normal 1em Arial, Helvetica, sans-serif;
	
}
ul.unterListe li{
	padding-left: 10px;
	background: url(../img/item.gif) no-repeat 0 5px;
	color: #333;
	margin: 0 0 0 20px;	
	font: normal normal 1.30em Arial, Helvetica, sans-serif;
}



#content img, #bild img  {
	border: 1px solid #A7A8AA;
}
#bild img {
	margin-bottom:5px;
}
/* Detaillink im Bereich Referenzen */
.detail {
	width:80px;
	padding-right: 10px;
	background: url(../img/detaillink.gif) no-repeat right;
}
span, span a.detail {
	color:#E2001A;
	text-decoration:none;
}
.referenz {
	color:#E2001A;
	font-size: .75em;
	text-decoration: none;
}
span {
	margin-left:10px;
}

p.bodytext {
	width: 455px;
}


div.csc-textpic-imagewrap{
	float: right;
	text-align: left;
}




/* --------   Footer   --------  */

#footer {
	clear: left;
	height: 40px;
	padding: 5px 5px 5px 25px;
	font-size: 11px;
	text-align: left;
}
/* --------   Allgemeine Klassen   --------  */
.goRight {float:right;}
.goLeft {float:left;}


/* --------   Allgemeine Definitionen   --------  */


p {
	font: normal normal .75em Arial, Helvetica, sans-serif;
	padding: 0 0 18px 0;
	line-height: 150%;
}
h1, h2, h3, h4 {
	text-transform: lowercase;
	font-family: arial, helvetica, sans-serif;
}
h1, h3 {
	color: #333; 
	font-size: .8em;
	margin:0 0 20px 0;
}

h2 {
	font-size: .8em;
	margin:15px 0 20px 0;
	color: #000;

}
h3, h4 {
	font-size: .75em;
	margin-bottom: 0;
}
h4 {
	color: #a7a8aa;
}

hr {
	height:1px;
	width: 455px;
	color: #A7A8AA;
}
a:hover {
	text-decoration: underline;
}

/*]]>*/

/* --------   Formular   --------  */
 
fieldset {  border: none; }
label {
/* width: 100px;
*/ color: #333;
 font-size: .8em;
 width: 100px;
float: left;
margin-top: 6px;
}
 
input{
 width: 240px;
 border: 1px solid #8E8A89;
 padding: 2px;
 margin: 1px 0;
   color: #333;
}
 
input.csc-mailform-submit {
 padding: 2px;
 margin: 10px 0 0 100px;
 border: 1px solid #333;
 background: #A7A8AA;
 width: 247px;
 
}
 
textarea {
 width: 240px;
 border: 1px solid #8E8A89;
 padding: 2px;
}
 
.csc-mailform-field {
   padding: 4px 1px;
   display: block;
  clear:right;
}
.csc-mailform-field br { /* Ausblenden der <br>s für ungestylte Ansicht */
   display: none; }
 
.csc-mailform-field span {  margin: 0; width: 130px; float: left; }

HTML-Template

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title></title>
<link href="fileadmin/ogb-relaunch/css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="fileadmin/ogb-relaunch/css/style_print.css" type="text/css" media="print" />
<!--[if lte IE 7]>
<link href="fileadmin/ogb-relaunch/css/style_ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lte IE 6]>
<link href="fileadmin/ogb-relaunch/css/style_ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

<body>
<!-- ###DOKUMENT### beginn -->
<div id="container">
  <div id="header">
    <ul id="service">
      <span>|</span>
      <li><a href="index.php?id=44">home</a></li>
      <span>|</span>
      <li><a href="index.php?id=45">kontakt</a></li>
      <span>|</span>
      <li><a href="index.php?id=46">impressum</a></li>
      <span>|</span>
    </ul>
    <div id="logo"><img src="fileadmin/ogb-relaunch/img/logo.png" alt="Organisationbureau" width="263" height="48" /></div>
    
    <ul id="navigation">
      <span>|</span>
      ###MENU###
    </ul>
    
  </div>
  <div id="page">
    <div id="content">
      ###CONTENT###
    </div>
</div>
  <div id="footer">organisationsbureau berlin . im energieforum berlin . stralauer platz 34 . 10243 berlin</div>
</div>
<!-- ###DOKUMENT### end -->

</body>
</html>
Michaelh74 ·

Auf die Schnelle ne Vermutung.

Wie hast Du das Trennzeichen rein gemacht (|)?

Das ist in TS ja ein Option Split.

Das muss dann eher so rein & # 124; (natürlich ohne Leerzeichen).

Gruß
Michael