Hi everyone,
I've been asking many questions . . . and have yet another one!
I've been trying to do something as simple as changing a link color in a class, but it's not working for me.
The CSS code is: - .sidebar {
-
position: absolute;
-
width: 165px;
-
top: 0px;
-
left: 5px;
-
border-right: 1px solid;
-
}
-
-
a.sidebar:link {color:white;}
-
-
a.sidebar:visited {color:white;}
Everywhere I look as I learn CSS, it appears this should work! I tried simply to have "a.sidebar {color: white}" to change all link attributes instead of specifying each individual one like link, visited, hover, active. But that wasn't working, so to be safe I just did the above code for testing purposes. But still nothing is working.
The section of the page code is, - <div class="sidebar">Test Test Test Test Test Some Text for Testing, and some more and more and more and more and more and more and more and are you <a href="workmenforChrist.org">Link</a> reading this and this and this and how about some of this, did you catch that and this and some more and some more text and test text?</div>
Shouldn't this work? Or am I supposed to put a class in the link tag itself as well? I tried doing something like that before and that still didn't work. So . . . what in the world am I missing?!
Thanks in advance for your help . . . I do appreciate it. And I really appreciate the patience of those who have been helping me in my other threads too!
~Michael
6 1345
Try this - .sidebar a:link, .sidebar a:visited{color:#ffffff;}
Try to find a good article describing how the Cascade works in 'Cascading Style Sheets'
First you want to go into your class .sidebar then you want your anchor links (a) inside the sidebar to be colored white, same with your visited.
Also try using the RGB code for the color it is good practice.
Hope this helps :)
Do it this way:
.sidebar a:link
Ah, thanks for the help!
I thought I saw something about that, and tried it also. But I realize what I did wrong . . . I tried putting it inside the brackets instead of on the outside.
Sheesh, it's always something simple with me haha . . .
Thanks again for the help, both of you!
Don't feel bad. When I was learning all this I did the same things. You get tense, in a hurry, and just don't notice things. Even now, I find it better to just step away from the computer and it'll come to me.
Same, I still mess up linking my style sheet and im like ..... why isn't anything working?!?!?!?! ??$#%!$!$! ... O ..... then I feel stupid
haha, thanks . . . At least I know I'm not the only one then. It seems every time I try to update/upgrade with using different code . . . not even the simplest of things work for me. Same with you also, it seemed, :)
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Emile van Sebille |
last post by:
QOTW: "I've tried many ways over the years to represent equations legibly
using Python and my experience that case sensitivity, while
certainly no panacea, helps." -- Tim Hochberg
"What's your pet deprecation candidate? I have always thought `backticks`
as repr has got to be the most useless feature around." -- Ville Vainio
Peter Hansen suggests "Imagine never having to think up variable names
more complicated than 'foo'."
|
by: John J Lee |
last post by:
QOTW: "I'd love it if we could come up with a different term for these
beasts than 'new style classes'." --Barry Warsaw
"Then let me suggest ectomorphic classes, as opposed to the previous
endomorphic classes. Roll-your-own classes can be called mesomorphic
classes. Extension classes can be called paleomorphic classes. Then
there's a precise term for each kind, and bystanders are automically
informed by the very terminology used that...
|
by: Cliff Wells |
last post by:
QOTW: "I find it hard to believe nobody has tried this yet, unless it's
the case that those who know how to do it also know that it's actually
not possible for some reason..." -- Peter Hansen
http://mail.python.org/pipermail/python-list/2004-November/249134.html
"Some people may actually want to drink poisoned kool-aid and join the
great wise extraterrestrials on their comet in the skies." -- Alex Martelli
responding to the idea that...
|
by: Will Hartung |
last post by:
I have this:
<a class="pink_link" href="faq.html#q1">Go to question 1</a>
And the CSS is simply:
..pink_link {color: #fa61b7; font-weight: bold;}
So, I'm curious why my links are blue and not pink. All of my other
"pink_links" are pink, but they don't link to anchors on the same page.
|
by: Fabrizio |
last post by:
Hi,
I'm trying to deal with ASP.NET and i would like to know
if there is any control or any method that allows me,
like in JAVA classes, to have, for example, scrolling
news with links to different web pages.
Is it possible?
Thanks,
Fabrizio
| |
by: Paul |
last post by:
Not sure if this is the right place for a CSS question but I saw some other
CSS posts so here goes a pretty basic question.
I want the color of an HTML link to be blue on one section of my HTML page
and green in another section of the same page.
I am familiar with CSS and I know that I can use the a:link property to set
one color for the _entire_ page.
But I am having problems setting the link color on specific links.
|
by: Roedy Green |
last post by:
I seem to recall reading about a feature so that you could apply
different styles to different kinds of link.
e.g. local and offsite or to automatically put a logo beside some
domain links.
I would like to add an icon to pdf links.
I'm after something of the form a:link("*.pdf) { properties ... }
|
by: GM |
last post by:
Hello,
I am using NDoc version 1.3.1 (MSDN documenter) to generate class
documentation for my class libraries. I am using the <exclude/tag on
the classes that should not be documented. The classes are being
excluded from the chm but this is resulting in broken links in
declarations of other classes that inherit from or use this class.
Is there any way to resolve this problem? I would like to retain the
exclude tag on the classes.
|
by: Hakan Fatih YILDIRIM |
last post by:
Hi List,
Ä° want make a windows app that will detect and click links on the
browser.For doing this i thought like this. grabbing the screen and
then detect the locations of the links(image proccessing) and then
move the cursor to the links.an then click..Do you have any better
way. i want to do it on the browser not with httprequest and
httpresponse classes.
|
by: Gabriel Genellina |
last post by:
QOTW: "However, inspection of a vast corpus of code might lead one to believe
that any commenting capability was completely unnecessary." - Jim B. Wilson
"The Python people also piped to say 'everything's just fine here', but
then they always do; I really must learn that language." - Tim Bray
A variation on a classic problem: 5 Queens control an 8x8 board
without attacking themselves...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |