1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    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