www.webdeveloper.com
Results 1 to 2 of 2

Thread: default font size set in html or body tag in css?

Threaded View

  1. #1
    Join Date
    Jul 2006
    Posts
    110

    default font size set in html or body tag in css?

    After all these years I am back asking the proper method of specifying my font sizing in my css pages. Would this make sense to this..
    Code:
    html {
    	height:100%;
    	font-family: "Century Gothic", Arial, Helvetica, sans-serif;
    }
    
    body {
    	margin: 0px;
    	padding: 0;
    	background-image: none;
    	background-repeat:repeat;
    	background-color: #000;
    	font-family: "Century Gothic", Arial, Helvetica, sans-serif;
    	color:#000;
    	font-size: 62.5%;
    }
    
    #container{
    	width:872px;
    	margin:0 auto;
    	background-color: #fff;
    	border-right:3px solid #3160ac;
    	border-left:3px solid #3160ac;
    	font-size:1.4em;
    }
    h1 {
    	margin: 0;
    	font-family: "Papyrus", Arial, Helvetica, sans-serif;
    	font-size: 2.75em;
    	padding-top:20px;
    	margin-bottom:6px;
    	color:#3160ac;
    	font-weight:bold;
    }
    This link I'm using % and em http://lambs.awardspace.com/index-two.php and this one I've used px http://lambs.awardspace.com/index.php Does anyone see any differance or problems with one or the other?
    And I am also questioning using "Papyrus" (specified by the client but what would I use for the actual font-family here?
    Last edited by catfish; 03-01-2013 at 03:29 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles