2010-12-10, 04:34:17
(This post was last modified: 2010-12-10, 05:29:25 by corey11rios.)
Hello!
I have a problem.
I have to give the text on the page a padding of 10px.
On the head of the content part there is an image which should not get the padding.
So if I go in the editor, click source and delete the <p> and update then some text, the editor makes automatically a new <p> around it.
How to avoid that on images?
I had the idea to solve this problem with css, but it does not work:
Please help me
Thanks,
Martin
/edit:
Screenshot:
I have a problem.
I have to give the text on the page a padding of 10px.
On the head of the content part there is an image which should not get the padding.
So if I go in the editor, click source and delete the <p> and update then some text, the editor makes automatically a new <p> around it.
How to avoid that on images?
I had the idea to solve this problem with css, but it does not work:
Code:
#content p{
padding:10px;
}
#content p img{
padding:0px;
}
Please help me
Thanks,
Martin
/edit:
Screenshot: