Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 06:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[CSS] zwei :before Pseudoelemente verbinden

Discussion on [CSS] zwei :before Pseudoelemente verbinden within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1

 
Mr.Tr33's Avatar
 
elite*gold: 2778
Join Date: Feb 2012
Posts: 3,527
Received Thanks: 1,044
[CSS] zwei :before Pseudoelemente verbinden

Moin,
ich habe folgenden Code:
Code:
<style>
	.test:before{
		content: "";
		font-family: arial;
	}
	
	.abc:before{
		content: ">";
		position: relative;
	}
</style>
<div class="test abc">bla</div>
Ich möchte jetzt, dass der "Text", also >, von .abc die Schriftart Arial bekommt ohne dies extra da einzutragen weil dieser Style fest ist.

Kann man das irgend wie kombinieren ohne ein neuen Style zu erstellen?

MfG
Mr.Tr33


/Edit:
Ich bin doof ... das funktoniert problemlos, ich hatte nur ein Tippfehler in dem Klassennamen >.>
Mr.Tr33 is offline  
Old 01/15/2015, 12:45   #2
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Code:
<style>
	.test:before, .abc:before {
		content: "";
		font-family: arial;
	}
	
	.abc:before{
		content: ">";
		position: relative;
	}
</style>
<div class="test abc">bla</div>
Das CSS-Element im gleichen Block anhängen. Das darunter wird den oberen Eintrag überschreiben, wenn andere Stil-Anweisungen vorhanden sind.
Mikesch01 is offline  
Reply


Similar Threads Similar Threads
VK zwei CF acc
12/01/2010 - CrossFire Trading - 16 Replies
Vk /sell Female acc Thompson http://clan.z8games.com/charstat_cf.aspx?usn=7799 157&tb=w Male Xm8 adv acc http://clan.z8games.com/charstat_cf.aspx?usn=9471 907&tb=w
Zwei Fragen zu zwei Waffen.
11/07/2010 - WarRock - 7 Replies
Also meine erste Frage ist wie funktionieren die Binocular die Fernglässer? Meine zweite Frage ist wie Funktionier Javaline
ELV auf zwei Accounts?
03/03/2010 - World of Warcraft - 8 Replies
Hallo! Habe zwei Accounts für WoW. Einen auf Ebay gekauften und einen der schon immer mir gehört hat. Habe den von Ebay damals zu einem Bnet acc gemacht und statt dem namen vom ursprünglichen besitzer meinen eingetragen. Nun meine frage: kann ich auf beiden mit dem selben Konto ELV nutzen? Oder fliegt dann vllt. der gekaufte Acc auf und blizz sperrt auch den nicht gekauften?



All times are GMT +1. The time now is 06:31.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.