Login | Iscriviti | FAQ
Anonymous

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

+ Rispondi al messaggio

2 messaggi Pagina 1 di 1


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

da krisb1220 » gio set 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:

Codice: Seleziona tutto
#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! :)
Avatar utente

krisb1220

  • Messaggi: 1
  • Iscritto il: gio set 29, 2016 2:17 am

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

da Farhin Qureshi » gio gen 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;
}
Avatar utente

Farhin Qureshi

  • Messaggi: 45
  • Iscritto il: mar gen 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ Rispondi al messaggio

Pagina 1 di 1