Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   display h1 and p on same line (http://www.go4expert.com/forums/display-h1-p-line-t1391/)

mcyi2mr3 13Sep2006 22:48

display h1 and p on same line
 
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

pradeep 26Sep2006 13:42

Re: display h1 and p on same line
 
You have to use CSS...here's how to do it.

HTML Code:

<h1 style='display:inline'>hi</h1><p style='display:inline'>cool</p>

ryan 26Sep2006 20:49

Re: display h1 and p on same line
 
or you could put the css in an external style sheey

Code:

H1 {
display: inline;
}



All times are GMT +5.5. The time now is 18:01.