Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

css problem

  • 10-09-2007 03:37PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 3,057 ✭✭✭kjt


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


  • Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 1,985 ✭✭✭big_moe


    forbairt wrote:
    font: should be font-family:


    that sorted it, cheers Forbairt.


  • Registered Users, Registered Users 2 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
Advertisement