make an HTML tag act a certain way inside a certain class
2 posts Page 1 of 1
make an HTML tag act a certain way inside a certain class
Hello, I am a novice HTML and CSS "student"(no formal teaching, teaching myself) and I was wondering;Is there a way to make an HTML tag(such as <a>) act a certain way inside of a certain class class?
The only way I can think of to visualize this is like this:
- Code: Select all
#exampleclass {
a {
text-decoration:none;
}
}
I understand this may be impossible, but if it is possible I'm sure it would be a useful skill to learn as I'm slowly trying to piece together a sample website in order to learn! Thank you! :)
Re: make an HTML tag act a certain way inside a certain clas
Hi,Instead of using this code
#exampleclass {
a {
text-decoration:none;
}
}
You can use the following:
#exampleclass a
{
text-decoration:none;
}
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com
Page 1 of 1