Assignment No. 02
Semester: Fall 2017
Total Marks: 15
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
§ The assignment is submitted after due date.
§ The submitted assignment does not open or file is corrupt.
§ Solution is copied from any other source.
The objective of this assignment is to;
§ Learn and practice basic concepts styling using CSS.
§ Learn the basic concepts of Java Script and use of functions.
§ Learn to use different class of CSS.
§ Create interactive button.
Below are the two screenshots, the first one is taken before pressing the button and the second one is taken after pressing the button. You are required to design a page having such functionalities on single webpage.
The first box should have following things.
Border should be 2px solid black with outline color #4CAF50 solid 10px having text moving in the box from left to right.
The second box should have following things.
Background color should be light grey.
Width should be 300px with border size 25px solid green in color.
Padding and margin should be 25px.
After the button is pressed the box opens and there is written roll numbers which are decreasing there size in each line upto 6.
Use function to create the gradual decrease in size of Roll number using script code and call that function on button press to display the Roll numbers within the box.
You are required to submit your solution through LMS in a zip folder having two files in it
File saved with .html extension
Code file saved in notepad or word file