natalieG Posted July 23, 2006 Share Posted July 23, 2006 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> Link to comment https://forums.phpfreaks.com/topic/15393-css-class-problem/ Share on other sites More sharing options...
wildteen88 Posted July 23, 2006 Share Posted July 23, 2006 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 */ Link to comment https://forums.phpfreaks.com/topic/15393-css-class-problem/#findComment-62398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.