Problem with use h1 and h2 !?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with use h1 and h2 !?

Ali Sajjad Movahed
Hello
I have a problem with use 3 tag in 1 line
I can not put h1 and h2 tag in 1 line
is this not possible ?
when I put this in my site , this are in 2 line not in 1 line
why?
my code is this :

<a href="http://p30af.com/" target="_blank" title="دانلود
رایگان"><h1>دانلود برنامه</h1></a><h2>دانلود رایگان-آموزش</h2>
 please help me
tank you

--
http://p30af.com
Reply | Threaded
Open this post in threaded view
|

Re: Problem with use h1 and h2 !?

Jean Jordaan
On Wed, Feb 1, 2012 at 6:42 PM, Ali Sajjad Movahed <[hidden email]> wrote:
> I have a problem with use 3 tag in 1 line
> I can not put h1 and h2 tag in 1 line

You can, but you have to use CSS.

> when I put this in my site , this are in 2 line not in 1 line
> why?

Header elements are block-level elements. By default a header will always
appear on a line by itself. You have to use CSS to change the behaviour.

See the CSS `display` property:
http://www.w3schools.com/cssref/pr_class_display.asp

--
jean                                              . .. .... //\\\oo///\\