Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

css problem

Options
  • 10-09-2007 4:37pm
    #1
    Registered Users Posts: 1,985 ✭✭✭


    body{
    background-color: #999999;
    font:Verdana;
    font-size:12px;
    color:#000000;
    
    }
    
    #apDiv1 {
    	position:absolute;
    	left:52px;
    	top:234px;
    	width:494px;
    	height:324px;
    	z-index:1;
    	font:Verdana;
    	font-size:12px;
    	color:#000000;
    	overflow: scroll;
    }
    
    .body-text {
    font:Verdana;
    font-size:12px;
    color:#000000;
    }
    

    can anybody see any problem with this as to why it wont display?? the html file wont read this when i look at the page in a browser. when in dreamweaver all the styles are like they should but in numerous browsers its the browsers default text??
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    </head>
    

    this is the header from the html file. the stylesheet is in the right folder, as proved because dreamweaver can "see" it.

    cheers
    moe


Comments

  • Registered Users Posts: 3,057 ✭✭✭kjt


    Is the css document in the same folder as the .htm file?


  • Registered Users Posts: 1,985 ✭✭✭big_moe


    big_moe wrote:
    the stylesheet is in the right folder, as proved because dreamweaver can "see" it.

    yup


  • Registered Users Posts: 3,594 ✭✭✭forbairt


    from the looks of it ...

    font: should be font-family:

    also ... you should close your link tag properly ... <link .... />


  • Registered Users Posts: 1,985 ✭✭✭big_moe


    forbairt wrote:
    font: should be font-family:


    that sorted it, cheers Forbairt.


  • Registered Users Posts: 3,594 ✭✭✭forbairt


    no problem old mistake I made once or twice as well that had me going crazy for a while :D

    you can however use
    body {
    font: 11px Verdana;
    }
    


  • Advertisement
Advertisement