...

View Full Version : H2 header wont start on new line ???



jeddi
05-17-2012, 06:15 AM
Hi,

I am using the same css and same html on different pages
but on some the H2 header is on a separate line and centered and
on other pages in just continues on the same line as the H1 header. :eek::eek:

It is very frustrating and I can not see any reason for it :confused::confused:

This is 2 of the pages in question:
http://www.simpg.net/login_fm.php

http://www.simpg.net/forgot_fm.php

This is my CSS



h1{
color:#4B4B4B;
}

h2{
font-size:32px;
text-align:center;
font-weight: bold;
color:#4B4B4B;
}


The pages that do put the H2 header on a separate line are after the user
has logged in, so I can not put the link.

If you want to see one you can log in with

Client ID: dave
Access code: dav567

And the first page you see is proper display of H2 header.
When I look at source code for both, they are almost identical.

Can anyone see why my H2 headers are displayed like this ?

Thanks.



.

Peeyush
05-17-2012, 09:08 AM
view-source:http://www.simpg.net/index.php
line 112:

<H1 style="float:left; margin:0px 0 0 30px; font-size:40px; line-height:50px;"><i><span style="color:#981b15;">Simple Page:&nbsp;&nbsp;&nbsp;&nbsp;</span>Create Your Own Web Pages!</i></h1> why not in lowercase?

have you tried using <br> after line 113?

abduraooft
05-17-2012, 09:18 AM
There is an unnecessary float:left; applied on <h1>

jeddi
05-17-2012, 10:55 AM
Thanks very much :thumbsup:

Took out the float:left and correct that H1 to h1.

Yer- bad day, just have to be more careful :o



.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum