Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   CSS-Problem (https://www.delphipraxis.net/40727-css-problem.html)

tn249 20. Feb 2005 00:20


CSS-Problem
 
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;
Delphi-Quellcode:
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 :wall:

MfG
tn249

MagicAndre1981 20. Feb 2005 01:07

Re: CSS-Problem
 
Hi,

probiere es mal hiermit:

Code:
<span class="meineCSSKlasse">
mein Text
</span>
Gute Nacht.
André

Pr0g 20. Feb 2005 01:13

Re: CSS-Problem
 
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

tn249 20. Feb 2005 13:06

Re: CSS-Problem
 
Zitat:

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:26 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