CSS code not work

Questions and tutorials related to Cascading Style Sheets *all versions*

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 140
Joined: Thu Oct 13, 2011 10:32 pm
Location: Chandigarh, INDIA

Wed Jan 11, 2012 9:08 pm


the color that you have mentioned for paragraph it just enclosed with id first <p> tag and not implemented on another text within <p> tag. so use this way as below:

<style type="text/css">
<p id="top">
my color is here

User avatar
New php-forum User
New php-forum User
Posts: 65
Joined: Mon Jun 13, 2011 9:25 pm
Location: Pasig City, Philippines

Mon Jun 08, 2015 12:57 am

You can also use this code instead for declaring id in a <p></p> tag.Simply set the color of p is green.

p{ color:green; }

Post Reply