Web Analytics Made Easy -
StatCounter Footer in the middle of screen - CodingForum

Announcement

Collapse
No announcement yet.

Footer in the middle of screen

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Footer in the middle of screen

    I have set code for footer like:
    PHP Code:
    #footer {

      
    background:   repeat-x scroll center top #000000;
      
    width100%;
      
    height420px;
      
    text-alignleft;
      
    padding18px;
      
    color#555;
      
    line-height16px;
    }
    #footer div {
        
    position:relative;
        
    max-width1330px;
        
    min-width1000px;

    and its HTML:
    PHP Code:

    <div id="footer">

    <
    div align="center">
    </
    div>

    </
    div
    How to work this as footer content should be in the center but background colour (100 %) should be seen?
    I do not like to use Table...
    <table align="center">

  • #2
    Im having trouble understanding your problem? I am getting a black bg with my words coming up just fine using your code.
    .pLeAd InSaNiTy.

    Comment


    • #3
      If you want to center aligned text only.. use following
      Code:
      .class {
      text-align:center;
      }
      If you want to center aligned a DIV container, then use following

      Code:
      .class {
      width:1000px; /*width should be less than its parent element, onlt then it ll align conatiner in center...*/
      margin:0 auto; /*o is for top and bottom margin ... you can change it accordingly... */
      }

      Comment


      • #4
        the div align center shouldn't have any effect on the div footer
        Tattoo Design

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎