Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 20, 2013 02:24 PM by Afzaal.Ahmad.Zeeshan
Jan 20, 2013 11:24 AM|LINK
I have a <p> tag inside a div. I need to set a fixed size/width for this <p>, but each time I increase that fix value the <p> don't response to that fix value and keep writing on the div.
Jan 20, 2013 11:32 AM|LINK
Jan 20, 2013 12:47 PM|LINK
Pls show, how you placed your div and p tag. And how you need it to be...
Jan 20, 2013 02:24 PM|LINK
1. You need to check that the class or id you are using is the same of the <p> or if it is the class of div being used?
2. You need to check that the <p> is being nested inside the <div> Is it floating outside? If so than check that are you using float property?
3. You are saying that there is no effect on the width of <p> There will never be an effect on <p> You see that <p> Is inside the <div> so that means that the <p> No matter how wide will always stay inside the <div> I mean
// The p will automatically have a width of 50px and height of 40px. You cannot make the p exceed this limit.
// Secondly you can set the value for p lesser than div like
// The below code will be useless..
So that can be an issue. Try to have a look at it.
If problem persists please increase the width and height of div.