robsite

Sasha (Select All)

Per CSS3 ::selection-Pseudoelement-Selektor:

p::selection {
  color: #fff;
  background: #fff;
  text-shadow: #000 0px 0px 4px;
}
p::-moz-selection {
  color: #fff;
  background: #fff;
}

Pseudoelement-Selektoren beginnen in CSS3 mit zwei Doppelpunkten um sie leichter von Pseudoklassen-Selektoren unterscheiden zu können.

Pseudoklassen sind Eigenschaften, die sich nicht direkt aus dem HTML ergeben. Elemente, die den gleichen Namen, Inhalt und die gleichen Attribute enthalten, können trotzdem unterschiedliche Pseudoklassen haben, wie z.B. :hover und :first-child.
Pseudoelemente sind Elemente, die so nicht einzeln und auswählbar im HTML stehen, wie ::selection, ::first-letter, ::before und ::after.

Firefox/Gecko und Opera verstehen bei ::selection nur background und color, während WebKit auch noch text-shadow, -webkit-text-stroke und -webkit-text-fill-color unterstützt.

MobileSafari ignoriert ::selection allerdings komplett.
· css, nsfw ·

Die perfekte E-Mail Regex

/^([w!#$%&'*+-/=?^`{|}~]+.)*[w!#$%&'*+-/=?^`{|}~]+@((((([a-z0-9]{1}[a-z0-9-]{0,62}[a-z0-9]{1})|[a-z]).)+[a-z]{2,6})|(d{1,3}.){3}d{1,3}(:d{1,5})?)$/i


Oder einfach /^.+@.+..+$/i und Pech für den, der was falsches eingibt.

· programming ·

Republicans' new website not exactly what they hoped it would be

Lest you think Republicans are just discovering the Internet, Rep. Cathy McMorris Rodgers (Wash.) let it be known that "House Republicans have tweeted five times as many as the House Democrats. Leader Boehner has almost five times as many Facebook fans as Speaker Pelosi." Boehner grinned and gave a double thumbs-up.

Rep. Mike Pence (Ind.) contributed to the discussion by twice giving out the wrong address for the new site.

Gute Ideen:

The women of the GOP should post tasteful pictures of their feet if they want my vote.

Since there so many hungry people in the world i think we shuld make them to eat the other poor people wen they die of hunger. This way theere wouldn't be any more world hunger.

Somebody stole my bike even though I had a bike lock on it... Guess I should have spent the extra $7 for the deluxe one with the thicker chain. Dangit.

I would like to see a river of fire built between the US and Mexico. I would also like level 12 mages to guard the border just in case.

· :D, politik ·
Mastodon