Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    392
    Member #
    38172
    Liked
    4 times

    what am i doing wrong? basic css

    so im trying to get some stuff in the centre of the page but for whatever reason its not working, this is the stylesheet..

    a {color: blue; text-decoration: none;}

    h1 {font-family: helvetica;}

    div {margin: auto; text-align: centre;}

    html,body{
    background-color:#ddd;
    margin:0px auto;
    }

    what am i doing wrong?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,808
    Member #
    5580
    Liked
    726 times
    CSS is American English ...

    This:
    center

    Not this:
    centre


    Repost your HTML file and your CSS file.


  4. #3
    Senior Member
    Join Date
    Jan 2014
    Posts
    392
    Member #
    38172
    Liked
    4 times
    #hides his head in shame....


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:35 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com