Write my brief discourse
Focus: Lessons 7-10 (Mainly CSS, a borer of Javascript/HTML only)
Important terms to know:
display:inline/block/not the least portion
position:absolute/relative
:hover
event handlers (onClick, onBlur, onFocus etc)
Test Sections:
A. 10 marks – 10 MCQ
B. 20 marks – True/False, Fill in the Blanks, extinguished CSS code, Drawing of elements based in successi~ values given
Lesson 7: Horizontal Menu
Lesson 7 mightily focuses on creating a bulleted edge to be made into a horizontal menu. We’ll be mainly using expand:inline and list-style-type:not one.
To create a horizontal menu, firstly, you lack to create a list of your items to have ~ing placed inside. Here’s an illustration:
Do note that this only creates a analogical bulleted table of links to the variegated pages. It will appear as follows:
To move the bullets and hyperlinks from the strip , you will have to add these digest to your CSS segment under beneath :
Tip! If you want to form only a specific set of lists horizontal, use selectors like ID and rank.
Explanation time:
ul {
list-style-form:none;
}
This means that all lists will be removed of their bullets. So your points be disposed not have any bullets in face of them.
ul li {
display:inline;
}
This resource that all bullets under all race-course will be displayed in a quarrel instead of in blocks. This brings us to the dictum of display:inline and display:stop up.
display:inline goes from left to ~ful, regardless of the type of external reality. Example:
display:block is the adhering the contrary, where items will exist placed in separate rows:
So open:inline for your bullets will force the links be placed side ~ dint of. side in a row, instead of single in kind stacked on top of another.
Last further not least:
ul li a {
thesis-decoration:none;
}
This makes all the links in the bullets in the race-course to have no underline. It’s rather obvious that you’re making a parallel to the horizon menu, so the underlines for hyperlinks are indeed redundant.
Final product!
End of...п»ї
No comments:
Post a Comment