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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    183
    Thanks
    68
    Thanked 2 Times in 2 Posts

    Basic website layout

    I am trying to make an outline of a basic website:

    1) I am using YUI CSS reset
    2) Then I want to have several divs:

    #wrapper
    #header
    #navigation
    #main
    #footer

    (all of them are contained in the #wrapper, #navigation is contained within the #header)

    Is it ok to layout it like that, it does not seem to work. I have background color assigned to the wrapper and when I try to change header to black, for some reason, it does not seem to work:

    Code:
    body {
    	background: url('../img/bodybg.gif') repeat; 
    	font: Arial, Verdana, sans-serif;
    }
    
    #wrap {
    	margin: 0 auto; width: 900px;
    	background-color: white; 
    	}
    	
    #header {
    	height: 75px;
    	background-clor: black;
    	font-color: white;
    }
    
    #main 
    
    #footer {
    	height: 100px;
    }
    The code does not validate either, I get the following errors:


    38 body Value Error : font Arial is not a font-size value : Arial,Verdana,sans-serif
    48 #header Property background-clor doesn't exist : black
    49 #header Property font-color doesn't exist : white

    I am also gonna be trying to use the same pages for the header and footer and just keep including the main content page as it changes. The best way to do this is with PHP, right?

    Thank you.
    Last edited by joliett89; 02-08-2012 at 01:23 PM. Reason: additional info

  • #2
    New Coder
    Join Date
    Aug 2008
    Posts
    29
    Thanks
    4
    Thanked 1 Time in 1 Post
    Hi,

    Check your spelling for the word color. If what you have posted is a copy and paste the word color for the header background is spelled wrong.

  • Users who have thanked j634 for this post:

    joliett89 (02-08-2012)

  • #3
    Regular Coder
    Join Date
    Jul 2011
    Posts
    183
    Thanks
    68
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by j634 View Post
    Hi,

    Check your spelling for the word color. If what you have posted is a copy and paste the word color for the header background is spelled wrong.
    Yeah, thats what it was Thanks


  •  

    Posting Permissions

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