473,320 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

pseudo-element [first-letter] Reset and/or two different colors

<STYLE type="text/css">
P { font-size: 10pt; color:#000;}
P:first-letter { font-size: 150%; color:red; font-weight: bold; float: left }
</STYLE>

Later, I want the first letter to be color:green.

And still later, I don't want the first letter to be 150%. I want it to be reset to 10pt

If I add another <STYLE later in my html to change the color to green, all the first letters change to green - even those above the new <STYLE

I have searched the web and I can't find out how to reset the <p> back to what it would be if I hadn't used first-letter.

I am new to CSS (as you can tell from the question) and I don't care for the fact that it doesn't have a 'don't do that any more' tag. I expected </P:first-letter> to end the inheritance, but it didn't.
Nov 2 '07 #1
2 1969
eWish
971 Expert 512MB
Welcome to TSDN sehodge!!

Instead of applying the font size and color to every occurance of <p> you can do it for certian ocurances.

--Kevin
Nov 2 '07 #2
drhowarddrfine
7,435 Expert 4TB
I don't care for the fact that it doesn't have a 'don't do that any more' tag.
CSS is not a programming language. To modify behavior, a programming language is needed. Look into javascript
Nov 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: James Stroud | last post by:
Hello All, Because of my poorly designing a database, I have recently found it necessary to explore the wonders of the Python pseudo-switch: do_case = { "A" : lambda x: x, "B" : lambda x: x,...
1
by: imani_technology | last post by:
My new employer is CMM Level 3. As part of the CMM/Personal Software Process, I am required to create pseudo code for my stored procedure and UDF design. Has anyone done this? If so, can anyone...
1
by: FC | last post by:
Hello folks, anyone who knows if the hover pseudo class applies only to anchor (<A/>) elements or to basic shapes as well? In either case I could not find a way to get Adobe SVG Viewer 3.0 to...
1
by: Erik Wahlstrom | last post by:
I have an XML document that includeds a UTF-8 BOM (0xEF 0xBB 0xBF). The document is properly encoded as UTF-8. However the XMLDecl encoding pseudo attribute indicates 'ISO-8859-1'. So how SHOULD...
8
by: Kerberos | last post by:
As you might know, IE doesn't support the :hover pseudo-class on every tag (just the "a" tag AFAIK) Is there a simple JavaScript that would solve the problem? I have images that have a light blue...
1
by: Steven T. Hatton | last post by:
ISO/IEC 14882:2003: "5.2.4 Pseudo destructor call The use of a pseudo-destructor-name after a dot . or arrow -> operator represents the destructor for the non-class...
1
by: rudderstick | last post by:
Hi there all, I have an interesting problem.... I work for a company that develops software for the building industry and would like to distribute one of our software products via the web. ...
70
by: Ben Pfaff | last post by:
One issue that comes up fairly often around here is the poor quality of the pseudo-random number generators supplied with many C implementations. As a result, we have to recommend things like...
3
by: yawnmoth | last post by:
I've seen a few webpages that use the javascript pseudo-protocol with event handlers. eg. <input onkeyup="javascript: ..." /> Correct me if I'm wrong, but isn't onkeyup always supposed to be...
3
by: bytehunter | last post by:
Hello, I hope this is the best place to ask my question. I was wondering if there was such a thing as a pseudo terminal in Windows. For those unfamiliar, in Linux/Unix one can create a pseudo...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.