A couple of questions:
First of all, I would like to say this is an awesome book, I love it and I recommended it to all my friends. I have read up to page 119 and I have a couple of questions.
First Question:
On page 117
the last two rules are:
li a:active{
background-color: lightgray;
color: black;
}
li a:hover, li a:focus{
background-color: gray;
color: white;
}
because of the order on which they are the style for the :active pseudo class will actually never show because the :hover will overrule it, is it suppose to be?:
li a:hover, li a:focus{
background-color: gray;
color: white;
}
li a:active{
background-color: lightgray;
color: black;
}
Second Question:
On page 117, there is this rule:
li {
border: 1px solid black;
padding: 5px;
margin: 2px;
float: left;
}
the part I am wondering about is "float: left".
It seems to have almost the same effect as:
"display: inline"
would u mind explaining the difference between them? Maybe once I continue reading my question will be answered, but if u could spare a couple of minutes I would really appreciate it.
Thanks so much
Christian
__________________
Christian
|