SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru coiL's Avatar
    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"

  2. #2
    Gone!
    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?

  3. #3
    SitePoint Guru coiL's Avatar
    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 think
    coiL
    "cradled in the learning curve"

  4. #4
    .net install meltdown
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •