Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:29 PM
F. Engel
Guest
 
Posts: n/a
Default why doesn't vertikal-align work with <h1> in css?

hello guys,
my problem is, that the haedline in my table-cell goes on the top and
not in the middle. in my css the vertikal-align: middle doesn't work
with <h1>. is this normal. what can i do? please help!

F. Engel
  #2  
Old July 20th, 2005, 05:29 PM
Anne van Kesteren
Guest
 
Posts: n/a
Default Re: why doesn't vertikal-align work with <h1> in css?

F. Engel wrote:
[color=blue]
> hello guys,
> my problem is, that the haedline in my table-cell goes on the top and
> not in the middle. in my css the vertikal-align: middle doesn't work
> with <h1>. is this normal. what can i do? please help!
>
> F. Engel[/color]
<style type="text/css">
@media screen{
h1{
line-height:4em;
vertical-align:middle;
font:2em Arial,Helvetica,sans-serif;
}
}
</style>

--
Anne van Kesteren
http://www.annevankesteren.nl/
  #3  
Old July 20th, 2005, 05:29 PM
Klaus Johannes Rusch
Guest
 
Posts: n/a
Default Re: why doesn't vertikal-align work with <h1> in css?

"F. Engel" wrote:
[color=blue]
> hello guys,
> my problem is, that the haedline in my table-cell goes on the top and
> not in the middle. in my css the vertikal-align: middle doesn't work
> with <h1>. is this normal. what can i do? please help![/color]

Could it be a spelling problem? vertikal should be vertical

--
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/


  #4  
Old July 20th, 2005, 05:29 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: why doesn't vertikal-align work with <h1> in css?

flori@comictrash.de (F. Engel) wrote:
[color=blue]
>my problem is, that the haedline in my table-cell goes on the top and
>not in the middle. in my css the vertikal-align: middle doesn't work
>with <h1>. is this normal. what can i do? please help![/color]

Does your CSS actually say vertikal-align? The correct property is
vertical-align.

Have you applied the property to the <h1> or to the <td>?
vertical-align only applies to inline elements or to table-cell
elements. <h1> is a block level element and so it does not apply.
Apply it to the <td> to affect the contents, including the <h1>.

However, what's a <h1> doing inside a table cell anyway? That's pretty
funny data. Sounds like your using a table for layout.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles