Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to change color for all <p> that inside specific <div> using css ?

user-image
Question added by karem ibrahemm , ويب ديزاينر , فالكو
Date Posted: 2017/03/19

You can use following method.

div p{

 color:#000000;

}

ahmer ansari
by ahmer ansari , Head of Projects and Creative Services , Manhattan Communications

Give class name to that div and specify the color to the p tag within it. Or you can give class name to p tag

Umair Khan
by Umair Khan , Web Developer , Innovative Designers

For specific div use id of that div

#spcificDiv p{

  color:blue;

}

More Questions Like This