Jump to content

footer border will not show up


lkbolt

Recommended Posts

use firebug,

 

besides that your footer has not width or height nor a clear:both;

 

do this:

 

#footer {
    background: none repeat scroll 0 0 #000000;
    border-top: 2px solid #FFFFFF;
    clear: both; /*added */
    color: white;
    height: 50px; /*added */
    text-align: center;
    width: 900px; /*added */
}

and remove your inline style, every time someone uses inline style a kitten dies

Separation of concerns.  Structure (your HTML) should be separate from its styling (your CSS) and from its behavior (your JavaScript).  It makes your life easier as your sites are layered by their composite functionality.  You can then change/update one part of it (say, your CSS) with minimal-to-no impact on the rest.

 

A lot of website development is about project structure.  The better organized you are and the more self-discipline you have, chances are your projects will be easier to create, modify, maintain, and manage.

 

@cssfreakie: You have a spelling error on your blog (at least, in terms of American spelling).  'Practise' should be 'practice'.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.