Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts

    H2 header wont start on new line ???

    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.

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

    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

    Code:
    	
    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.



    .
    Last edited by jeddi; 05-17-2012 at 07:22 AM.
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Posts
    104
    Thanks
    27
    Thanked 2 Times in 2 Posts
    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?

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    There is an unnecessary float:left; applied on <h1>
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts
    Thanks very much

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

    Yer- bad day, just have to be more careful



    .
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •