Saturday 29 September 2018

Css help please..IM NEEWW

**Award StylesGo to the Award Styles section. In this section, you will create styles for the list of awards won by Pandaisia Chocolates. Information boxes for the awards are placed within the div element with ID #awardList. Create a style rule for this element that places it using relative positioning, sets its height to 650 pixels, and automatically displays scrollbars for any overflow content.Every information box in the #awardList element is stored in a div element belonging to the awards class. Create a style rule that places these elements with absolute positioning and sets their width to 30%.Position the AwardsPosition the individual awards within the #awardList box by creating style rules for the div elements with id values ranging from #award1 to #award5 at the following (top, left) coordinates:#award1: (80px, 5%)#award2: (280px, 60%)#award3: (400px, 20%)#award4: (630px, 45%)#award5: (750px, 5%)(Hint: In the pc_specials.html file, the five awards have been placed in a div element belonging to the awards class with id values ranging from #award1 to #award5).****Here is my Code**​/* Award Styles */div#awardList {position: relative;height: 650px;overflow: auto;}​div#awardslist[class^="awards"]>ul{position: absolute;width: 30%}​div.awards>div#award1 {top: 80px;left: 5%;}​div.awards>div#award2 {top: 280px;left: 60%;}​div.awards>div#award3 {top: 400px;left: 20%;}​div.awards>div#award4 {top: 630px;left: 45%;}​div.awards>div#award5 {top: 750px;left: 5%;}

Submitted September 30, 2018 at 03:31AM by fredfred18

No comments:

Post a Comment