display:none doesn't hide the div content

Omya

New Member
it's supposed to be obvious, but in all major browsers, the div content is not hidden:\[code\]<!DOCTYPE html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Test</title><style> #confContent{ border:solid 1px #FF0000; width:700px; height:600px; background-color:#00CC00; left:50%; display:none; position:absolute; }</style></head><body> <div id="confContent"> <p style="color:#0000FF">Some content goes here</p> </div></body></html>\[/code\]Actually, all the prperties doesn't seems to work, the \[code\]div\[/code\] is not shifted to 30% left, doesn't have a background color, is not hidden and doesn't have a border. Please help. Thanx in advance.
 
Back
Top