DIV must always define display and position or not or what is default

After searching a lot I cannot find the answer I am looking for. I am a TABLE user currently editing my old site to new tech but I have a question:

    <div style="background:#6666; 
here: we go; 
display:block; position:relative;> test </div>

Does I must set always to all divs the display and position attributes ?

If I don't set default attributes what will then be their default attributes for display and position?

Yeah it is a nice question, many tell you how to use those attributes but nobody tell you if you have to or not...

Any div guy


No they are not required. If you don't specify them, div tags will have the following default values for those CSS properties:

display: block
position: static



Need Your Help

Error : java.lang.Long cannot be cast to java.lang.Integer When running TFS-SDK in Java Web Application

java tomcat tfs nativelibrary

I am using TFS-SDK for my Java application. First I created a simple Java project to test it. So I downloaded the JAR from here. The code also I got the code from this blog. I am using Ubuntu. So i...