Quantcast
Channel: TYPO3 Fragen und Probleme — TYPO3 Forum
Viewing all articles
Browse latest Browse all 480

TS & CSS (andere link farbe)

$
0
0
hallo,

gibt es eine möglichkeit, "links" in einem div eine andere farbe zuzuweisen?
normal würde man ja in einem html template einfach dem "link" eine klasse zuweisen, aber ich hab das template per TS gemacht.


hier mein ts code:

[TYPOSCRIPT]
# Default PAGE object:
page = PAGE
page {

stylesheet = style*.css

10 = HMENU
10 {
wrap = <div id="usermenu_container"> | </div>
special = list
special.value = 32 ,33 ,16 ,21

1 = TMENU
1 {
NO = 1
NO {
allWrap = |*|  
CUR = 1
CUR {
allWrap = <li class="aktiv"><strong>|</strong></li>
doNotLinkIt = 1
}
}
}
}


20 = IMAGE
20 {
file = header_01*.png
altText = Logo
titleText = Dies ist die Logo Grafik
wrap = <div id="header_container"> | </div>
}

30 < styles.content.get
30.wrap = <div id="content_container"> | </div>

40 = HMENU
40 {
wrap = <div id="footer_container"><div class="foobar"></div> | </div>
special = list
special.value = 17,18,19,20

1 = TMENU
1 {
NO = 1
NO {
allWrap = |*|  |*|  |*|&nsbsp; 
CUR = 1
CUR {
allWrap = <li class="active"> | </li>
doNotLinkIt = 1
}
}
}
}
}


// cooluro aktivieren
//config.ts_cooluri_enable = 1
//config.redirectOldLinksToNew = 1[/TYPOSCRIPT]


und hier mein css
* {
	margin: 0;
}

html, body {
	height: 40%;
}

a:link {
	text-decoration: none;
	color: #000000
}

a:visited {
  color: #000000;
  }

#usermenu_container {
	border: 1px solid black;
	text-align: right;
	background-color: #626262;
	height: 2em;
}

#header_container {
	border: 1px solid blue;
	width: 60%;
	margin-right: 20%;
	margin-left: 20%;
  }
  
#content_container {
	border: 1px solid green;
	width: 60%;
	margin-right: 20%;
	margin-left: 20%;
	min-height: 40%;
	margin: 0 auto -4em;
	height: auto !important;
	height: 100%;
	padding-bottom: 4em;
}

#footer_container {
	border: 1px solid red;
	text-align: center;
	vertical-align: bottom;
	height: 4em;
	background-color: #626262;
	clear: both;
	margin: 0 auto -4em;
}

.foobar {
	border: 1px solid purple;
	clear: both;
	height: 1.2em;
}



wie kann ich jetzt den "links" in den menus eine andere farbe zuweisen, als normale links?!


gruss malte

Viewing all articles
Browse latest Browse all 480

Trending Articles