margin and templates

Discussion in 'HTML' started by Stijn Goris, Dec 26, 2003.

  1. Stijn Goris

    Stijn Goris Guest

    hi all,

    Is there a css function that defines a margin only applicable to text and
    not to images or other elements inside the that css tag?

    Can someone point me a good template tutorial.

    thanks all
    Stijn Goris, Dec 26, 2003
    #1
    1. Advertising

  2. Stijn Goris wrote:
    > ...
    > Is there a css function that defines a margin only applicable to text
    > and not to images or other elements inside the that css tag?


    assuming HTML
    <div>
    <p>...</p>
    <img ...>
    </div>

    one CSS solution would be:

    div p {margin:...em;}

    this suggests a margin for the paragraphs contained within divs.

    As always, a URL would be helpful.

    --
    William Tasso - http://WilliamTasso.com
    William Tasso, Dec 26, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JKop
    Replies:
    3
    Views:
    455
  2. recover
    Replies:
    2
    Views:
    790
    recover
    Jul 25, 2006
  3. Replies:
    5
    Views:
    909
    C A Upsdell
    Nov 25, 2008
  4. Cal Who
    Replies:
    1
    Views:
    421
    Alexey Smirnov
    May 16, 2010
  5. Cal Who
    Replies:
    4
    Views:
    568
    Cal Who
    May 17, 2010
Loading...

Share This Page