Jump to content


Photo

css class problem


  • Please log in to reply
1 reply to this topic

#1 natalieG

natalieG
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 23 July 2006 - 03:27 PM

In the below html file, the optionclass positions the element fine,
but the varsclass does not.  ??

Thanks,

Natalie


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>Welcome to Adobe GoLive 6</title>
<style type="text/css" media="screen">
    <!--
    #optionclass{position:absolute;
    top:
    150px;
    left:200px   
    ;}//optionclass
   
    #varsclass{
      position:absolute;
      top:200px;
        left:200px;
        width:150px;
        height:50px;
        background-color:black;
        font-family:Arial,Helvetica;
      font-size:20;
        color:blue;
        }//varsclass
 
--></style>
</head>
<body bgcolor="#ffffff">
<div id=optionclass>This is option class</div>
<div id=varsclass>This is vars class</div>
</body>

</html>

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 23 July 2006 - 03:34 PM

Remove //optionclass and //varsclass they are invailid comments and cuaseing problems with the browser rendering your CSS. CSS comments are defined this way:
/* comment here */




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users