Login | Register | FAQ
Anonymous

make an HTML tag act a certain way inside a certain class

+ Post a reply

2 posts Page 1 of 1


make an HTML tag act a certain way inside a certain class

by krisb1220 » Thu Sep 29, 2016 2:22 am

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! :)
User avatar

krisb1220

  • Posts: 1
  • Joined: Thu Sep 29, 2016 2:17 am

Re: make an HTML tag act a certain way inside a certain clas

by Farhin Qureshi » Thu Jan 05, 2017 10:31 am

Hi,

Instead of using this code

#exampleclass {

a {
text-decoration:none;
}

}

You can use the following:
#exampleclass a
{
text-decoration:none;
}
User avatar

Farhin Qureshi

  • Posts: 24
  • Joined: Tue Jan 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ Post a reply

Page 1 of 1