473,563 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
<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 1977
eWish
971 Recognized Expert Contributor
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 Recognized Expert Expert
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
1836
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, "C" : lambda x: "Ted", "D" : lambda x: do_something(x) }
1
6242
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 give me some advice?
1
1971
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 behave as described in the SVG 1.1 specification, I am wondering if I am doing something wrong. Bye, Flavio
1
2027
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 the XML processor handle this? Is it a fatal error? Clearly it cannot be processed as ISO-8859-1 because the content is scrambled. It appears the...
8
6987
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 outline, and when I pass the mouse over, the outline turns to red. #featured img { display: block; border: 1px solid #DCDFE8; padding: 1px;
1
3314
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 type named by type-name. The result shall only be used as the operand for the function call operator (), and the result of such a call has type void....
1
1763
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. here is the problem
70
6203
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 using the high-order bits returned by rand() instead of the low-order bits, avoiding using rand() for anything that wants decently random numbers, not...
3
4729
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 javascript, anyway? As such, isn't usint hte javascript pseudo-protocol redundant? ....or was it required on some archaic browser like Netscape...
3
4761
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 terminal which to an application looks and acts like a regular com port (tty device in Linux-ease). The purpose of such a thing is to allow an...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.