when I put a <p> block of text</P> next to an image the css styles that I have specified don't work. (margin etc) Is there a trick to this?
Any help would be great.![]()
| SitePoint Sponsor |




when I put a <p> block of text</P> next to an image the css styles that I have specified don't work. (margin etc) Is there a trick to this?
Any help would be great.![]()
coiL
"cradled in the learning curve"





How exactly have you specified your CSS?
Could you post a snippet of example code, with before and after problems?




css in style sheet:
p {margin-left: 30pt;
margin-right: 30pt;}
part of code:
<img src="pic.jpg" align="left">
<p> blah blah long paragraph wriiten here</p>
The paragraph does not seem to have any margin though as the text starts right next to the image.
/edit fixed typos..I think![]()
coiL
"cradled in the learning curve"




Coil,
Set the margin property(ies) of the <img>.
This will create some whitespace between the text and the img.
HTH
Bookmarks