473,396 Members | 1,714 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,396 software developers and data experts.

Some CSS question

Hi,
I have a style sheet file, which contains one class to define color of
<a href=""> in the page
A:link
{
color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
}
What I need is to make some of the links in the page to have a different
color, other than defined in CSS file. What I did is to create another class
A.OtherLink
{
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
}
And I put code like <a class="OtherLink" href=""> or <a
class="A.OtherLink" href="">, none of them worked. New class cannot
overwrite global settings.

Anybody has some ideas?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
Nov 18 '05 #1
1 1086

you aren't overriding the global class, try a.otherLink:Link or change your
global class from A:Link to simply A

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Hardy Wang" <ha*******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hi,
I have a style sheet file, which contains one class to define color of
<a href=""> in the page
A:link
{
color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
}
What I need is to make some of the links in the page to have a different color, other than defined in CSS file. What I did is to create another class A.OtherLink
{
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
}
And I put code like <a class="OtherLink" href=""> or <a
class="A.OtherLink" href="">, none of them worked. New class cannot
overwrite global settings.

Anybody has some ideas?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Stanley J Mroczek | last post by:
I Set the EditCommandColumn to Visible=False to stop people who are not allowed to make any changes to a record. How can set it to Visible=true for some users? Please answer in VB Thanks Stan
12
by: Vibhajha | last post by:
Hi friends, My sister is in great problem , she has this exam of C++ and she is stuck up with some questions, if friends like this group provides some help to her, she will be very grateful....
9
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
18
by: free2cric | last post by:
Hi, I attanded an interview on C++ Question asked were and my answers to them.. 1. In a CPP program what does memory leak occure? -- i said.. In a constructor , the pointer variables were...
7
by: kamkwokho | last post by:
Could any answer following questions as many as you can. ii) Write a C shell script convertmin which will read in a number, thought of as representing minutes, and print out the number of...
193
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I...
0
by: valmir cinquini | last post by:
i'm developing a faq session of our website and I'm facing some problems handling xml files and DataSet relations First off all, here's the structure of my xml file: <?xml version="1.0"?>...
24
by: Kevin | last post by:
Hey guys. I'm looking to get together some VB programmers on Yahoo messenger. I sit at a computer and program all day. I have about 3 or 4 people already, but it would be really cool to have a...
3
by: tamerania2004 | last post by:
help me to answer some q in c# plzzzzzzzzzzzzzz link :cry: :cry: :cry: :cry: http://www.sendspace.com/file/gd1o99 ---------------------------------- http://community.ihostasp.net
2
by: David | last post by:
Hi list. I have 2 questions about the Pythonicity of some algorithms. One question is about generator usage, the other is about producer and consumer threads GENERATOR QUESTION Usually for...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.