format headline (General)

by Uli, Saturday, November 17, 2007, 13:59 (5995 days ago)

Hi,

i found out that the subject of a posting is formated with <h1>.
I would like to change this to a similiar format so that there is no break to the next line.

ex. title by author, date, time

instead of

title
by author, date, time

My attempt to substitute h1 by b in thread.tpl.inc was without effect.
Probably the style.css has to be modified.
Who can help?

cu, Uli

locked
4760 views
Avatar

format headline

by Alfie ⌂, Vienna, Austria, Sunday, November 18, 2007, 00:21 (5995 days ago) @ Uli
edited by Alfie, Sunday, November 18, 2007, 00:30

Hi Uli!

My attempt to substitute h1 by b in thread.tpl.inc was without effect.
Probably the style.css has to be modified.

Both

<h1></h1> and <p></p>

are block-elements, i.e., a new line is added by default in (X)HTML.

If you want to avoid the line-feed you will have to define both as an inline-element.

Whereas

<h1>foo</h1><p>bar</p>

gives:

foo
bar

Modifying the CSS to

<h1 style="display: inline;">foo</h1><p style="display: inline;"> bar</p>

will give:

foo bar

Try to add

.posting h1 {display: inline; }
.posting p  {display: inline; }

to style.css...

Since I guess from your name and another post that you are german-speaking, see also SELFHTML for further help.

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
4840 views

format headline - solved!

by Uli, Monday, November 19, 2007, 18:02 (5993 days ago) @ Alfie

Hi Alfie,

I have tried what you suggested.
Result: the body was inline too :-|
After a few attempts I decided to change the values of h1 to my needs in style.css.
Selfhtml is a well known and very good source, I agree.
Problem solved, thank you :ok:

Uli

locked
4540 views
Avatar

format headline - solved!

by Alfie ⌂, Vienna, Austria, Monday, November 19, 2007, 23:11 (5993 days ago) @ Uli

Hi Uli!

I have tried what you suggested.
Result: the body was inline too :-|

Fascinating! © Mr Spock ;-)

After a few attempts I decided to change the values of h1 to my needs in style.css.
Problem solved, thank you :ok:

  • How? - just for others who might need it...
  • You are welcome!

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
4765 views

format headline - solved!

by Uli, Tuesday, November 20, 2007, 12:50 (5992 days ago) @ Alfie

Hi Alfie,

I just changed h1 this way (changes red):

h1 { margin-top:0; font-size:.8em; font-weight: bold; }

This causes a line-feed, but the width of posting header is now tolerable to me. ;-)

cu, Uli

locked
4598 views

format headline - solved!

by Auge, Friday, November 30, 2007, 18:09 (5982 days ago) @ Uli

Hallo

h1 { margin-top:0; font-size:.8em; font-weight: bold; }

please suggest: There are browsers wich doesn't support this notation (i.e. earlier MSIEs) with the leading dot. If you want such small letters note a leading zero.

Tschö, Auge

locked
4594 views

RSS Feed of thread