Jump to content

Archived

This topic is now archived and is closed to further replies.

natalieG

css class problem

Recommended Posts

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>

Share this post


Link to post
Share on other sites
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 */

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.