SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: <p> margin and images
-
Dec 5, 2001, 06:42 #1
- Join Date
- Sep 2001
- Location
- QLD, Australia
- Posts
- 666
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
<p> margin and images
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"
-
Dec 5, 2001, 07:50 #2
- Join Date
- Aug 2001
- Location
- Witty Location Parody
- Posts
- 3,889
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How exactly have you specified your CSS?
Could you post a snippet of example code, with before and after problems?
-
Dec 5, 2001, 09:01 #3
- Join Date
- Sep 2001
- Location
- QLD, Australia
- Posts
- 666
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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 thinkcoiL
"cradled in the learning curve"
-
Dec 5, 2001, 15:35 #4
- Join Date
- May 2001
- Location
- View Ridge
- Posts
- 692
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Coil,
Set the margin property(ies) of the <img>.
This will create some whitespace between the text and the img.
HTH
Bookmarks