W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2012

Re: Problem with use h1 and h2 !?

From: Jean Jordaan <jean.jordaan@gmail.com>
Date: Thu, 2 Feb 2012 13:27:02 +0700
Message-ID: <CAJqnznBwFiXa0_bd1Kmf5mXjYMtWnnYxyrnDqH0S7PoTt=q7cQ@mail.gmail.com>
To: Ali Sajjad Movahed <p30af.com@gmail.com>
Cc: html-tidy@w3.org
On Wed, Feb 1, 2012 at 6:42 PM, Ali Sajjad Movahed <p30af.com@gmail.com> 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///\\
Received on Thursday, 2 February 2012 06:28:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:14:01 GMT