AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

CSS-Problem

Ein Thema von tn249 · begonnen am 20. Feb 2005 · letzter Beitrag vom 20. Feb 2005
Antwort Antwort
Benutzerbild von tn249
tn249

Registriert seit: 18. Jan 2004
Ort: München
164 Beiträge
 
Delphi 2005 Personal
 
#1

CSS-Problem

  Alt 20. Feb 2005, 00:20
Hi,

habe ne externe css-datei, in der für verschiedene bereiche der hp eigene typen deklariert sind

Delphi-Quellcode:
[...]
#MyMainContent
  {
    background-color:#FFFFFF;
    border:2px solid #000000;
    margin-bottom:10px;
    margin-left:10px;
    margin-right:10px;
    margin-top:10px;
    text-align:center;
    vertical-align:top;
  }

[...]
jetzt würde ich gerne die verschiedenen link zustände farblich abändern, aber weder per html lokal;
link=#0000cc vlink=#551a8b alink=#ff0000 noch global per css;
Delphi-Quellcode:
a:link
  {
    color:#EE0000; text-decoration:none; font-weight:bold;
  }
könnt ihr mir verraten, wie ich das in die obere klasse einbaun kann???

google und selfhtml haben mir nicht weitergeholfen

MfG
tn249
this post is printed on 100% recycled electrons
  Mit Zitat antworten Zitat
Benutzerbild von MagicAndre1981
MagicAndre1981

Registriert seit: 4. Jun 2004
Ort: Nordhausen
2.214 Beiträge
 
Delphi 7 Enterprise
 
#2

Re: CSS-Problem

  Alt 20. Feb 2005, 01:07
Hi,

probiere es mal hiermit:

Code:
<span class="meineCSSKlasse">
mein Text
</span>
Gute Nacht.
André
André
  Mit Zitat antworten Zitat
Benutzerbild von Pr0g
Pr0g

Registriert seit: 21. Mai 2004
809 Beiträge
 
Delphi 7 Personal
 
#3

Re: CSS-Problem

  Alt 20. Feb 2005, 01:13
Du kannst eine Linkdefinition nur auf die Id beziehen:
Code:
#MyMainContent /* alles in #MyMainContent */
  {
    background-color:#FFFFFF;
    border:2px solid #000000;
    margin-bottom:10px;
    margin-left:10px;
    margin-right:10px;
    margin-top:10px;
    text-align:center;
    vertical-align:top;
  }
 
#MyMainContent a:link /* nur Links in #MyMainContent */
  {
    color:#EE0000; text-decoration:none; font-weight:bold;
  }
MfG Pr0g
  Mit Zitat antworten Zitat
Benutzerbild von tn249
tn249

Registriert seit: 18. Jan 2004
Ort: München
164 Beiträge
 
Delphi 2005 Personal
 
#4

Re: CSS-Problem

  Alt 20. Feb 2005, 13:06
Zitat von Pr0g:
Du kannst eine Linkdefinition nur auf die Id beziehen:
Code:
#MyMainContent /* alles in #MyMainContent */
  {
    background-color:#FFFFFF;
    border:2px solid #000000;
    margin-bottom:10px;
    margin-left:10px;
    margin-right:10px;
    margin-top:10px;
    text-align:center;
    vertical-align:top;
  }
 
#MyMainContent a:link /* nur Links in #MyMainContent */
  {
    color:#EE0000; text-decoration:none; font-weight:bold;
  }
MfG Pr0g
das ist genau das was ich gesucht habe

vielen dank

MfG
tn249
this post is printed on 100% recycled electrons
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:49 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz