I'm watching a tutorial, where the teacher at a certain point, minute 28 , sets the style of the elements of a ul
to create a horizontal navigation bar , and do so using either float:left
or display:inline
. The problem is that I had yesterday seen that the methods I quoted above are two different methods for getting the horizontal bar, but then why does it use the two contemporaneously?
.mainheader nav ul li{
float:left; /* li are set to the left of their "brothers"*/
display:inline;
}