I was trying to manipulate the content inside the <p>
tag. I want to target each element inside the paragraph. I have the following:
<p class="num">123456789</p>
This is number is generated through a form and I wanted to add padding to each number through css so, is it possible? I tried a few things myself but it did not help.
my CSS:
*p.num {padding-right:5px;}
p.num * {padding-right:5px;}
Another thing is I was also trying to manipulate the value of input my code is:
<input type="text" value="Name" placeholder="Name" />
I have used both value and placeholder because older IE does not support placeholder and that is why I wanted to target value so that I can disable it in new browsers. I have tried a few things on this one:
input[value="Name"] {font-size:0;}
input[value="Name"] {display:none;}
The first one zeroes out the placeholder as well and the second one hides the the input completely. So, I want to know if is there any possible CSS by which I can achieve this?