SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not quite a linebreak

    Is there a way to use CSS to just create a linebreak like <br>, but about half the height?

    EDIT: Problem solved with a div
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,540
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    You just set the margins on whatever element you want to the apprpriate height.
    Code:
    p{margin:2px 0;paddung:0;}
    If you want one element to follow another at a set distance then set the margin-top of the element below and the margin-bottom of the element on top. (Of course padding has to be accounted for also).

    There should be few cases when a break is actually needed as existing elements can usually be used.

    Paul

  3. #3
    Ribbit... Eric.Coleman's Avatar
    Join Date
    Jun 2001
    Location
    In your basement
    Posts
    1,268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sweeet Dude...

    Quote Originally Posted by Paul O'B
    Hi,
    Code:
    p{margin:2px 0;paddung:0;}

    Sweet.... paddung...

    i don't have any dung that I need to pad though....


    Eric Coleman
    We're consentratin' on fallin' apart
    We were contenders, now throwin' the fight
    I just wanna believe, I just wanna believe in us

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,540
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    lol could be useful though


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
  •