display h1 and p on same line

Discussion in 'Web Design, HTML And CSS' started by mcyi2mr3, Sep 13, 2006.

  1. mcyi2mr3

    mcyi2mr3 New Member

    Joined:
    Sep 13, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    hi all

    in a cell in my table i want to display a h1 and a p on the same line.

    how can this be achieved through style manipulation?

    regards

    marc
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    You have to use CSS...here's how to do it.

    HTML:
     <h1 style='display:inline'>hi</h1><p style='display:inline'>cool</p>
     
     
  3. ryan

    ryan New Member

    Joined:
    Aug 19, 2006
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    0
    or you could put the css in an external style sheey

    Code:
    H1 {
    display: inline;
    }
    
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice