lab 3 : css for stylingselab.hanyang.ac.kr/courses/cse326/2016/labs/web_lab3.pdf · 2016-09-27 ·...
TRANSCRIPT
CSE3026: Software Engineering
Lab 3 : CSS for StylingScott Uk-Jin Lee
Software Engineering Lab Except where otherwise noted, the contents of this document are Copyright 2016 HyungLak Kim, , Scott Uk-Jin Lee. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission.
1
Lab 3 exercisesLab 3: CSS for Styling - create a style for your “About Me” HTML page
1. CSS Stylesheet 2. CSS Styles - Fonts 3. CSS Styles - Colors 4. CSS Styles - Text 5. CSS Styles - Table 6. CSS Styles - Advanced 7. Validate Your Style 8. Upload Your Files
2
Ex 1: CSS StylesheetImprove the appearance of your “aboutme.html”page.
• Create a stylesheet named “aboutme.css"
• Put AboutMe file inside the folder where your AboutMe page is
• Embbed your external stylesheet on your AboutMe page
3
Ex 1: exampleThis example is my styled page (scroll down to see the rest):
4
Ex 1: exampleThis example is my styled page (scroll down to see the rest):
5
Ex 2: CSS Styles - FontsChange colors of your “aboutme.html” page: • Set body font style - text in the body should be displayed in Helvetica, Verdana, or sans-serif font (in this order of precedence)
• Change the font size of the top level heading(‘h1’ tag) to 40 point • Reduce the font size of the text in definition lists(‘dl’ tag) to 70% • Make the definition terms(‘dt’ tag) in a definition list(‘dl’ tag) bold • Make the first character of the first word in a paragraph(‘p’tag) bold and change its font size to 150%
6
Ex 3: CSS Styles - ColorsChange colors of your “aboutme.html” page: • Set the color of the page to #939396 and background-color of the page to #1D2475(‘bady’ tag)
• Set the color of a link to #FF4F4F
• Set the color of the first and the second level heading to #F7931E
• Set the color of strongly emphasized texts and the definition terms in a definition list to #FFF86B
• Set the color of the quoted text (inline) to #D1DFEB
7
Ex 4: CSS Styles - TextChange text style of your “aboutme.html” page: • Align the texts in lists (both ordered and unordered) and blockquotes to the left
• Remove the text decorations for links (for visited links as well)
• Put underline to a link text when mouse is over it • Put green text shadow for the first level heading (3px to the right and top)
8
Ex 5: CSS Styles - TableChange table style of your “aboutme.html” page: • Draw a dotted border line for table and every cell in the table
• Merge the border line for table and cells
9
Ex 6: CSS Styles - AdvancedCreate advanced styling of your “aboutme.html” page: • Change the bullet style for unordered lists to square • Include a medium thick ridge outline with #F7931E color to images of my favorite things in the page
• Validation link images should not have outline (override style for validation link images)
• Download and add background images to your page - the background image should: http://selab.hanyang.ac.kr/courses/cse326/2016/download/cse326bg.jpg
• Be at the top right hand corner of your page not repeat • Be fixed and not scroll with the rest of the page (background image should always stay at the same position of the page when scrolled)
10
Ex 7: Validation your styleValidate the syntax of your CSS code: • open http://jigsaw.w3.org/css-validator/ • validate your page by either
“Validate by File Upload” and then browse to your “aboutme.css” file
“Validate by Direct Input” and then copy.paste your code into the text box
11
Ex 7: Validation your styleValidate the syntax of your CSS code
If there are any errors, fix them all try to get the green bar for 0 errors. Warnings are ok
if you do not understand the error messages, ask TA for help
12
Ex 8: Upload your page• Use git and upload your page to your program file • Put your files in a folder named lab3 within git hub folder
• Check the page by viewing it in the git.
13
If you finish them all…If you finish all the exercises:
1. you can add any other content you like to your page
2. check in with a TA to get credit for your work
3. submit your file to TA’s email(Hyunglak Kim: [email protected] or Gichan Lee: [email protected])(email title - [CSE3026]Lab03-2016xxxxYOURNAME_[Finish])
4. you may be able to be dismissed
If you don’t finish all the exercises on time: 1. go home and finish all the exercises
2. submit your result to TA’s email (Hyunglak Kim: [email protected] or Gichan Lee: [email protected]) until midnight and you can get some marks but not full marks (email title - [CSE3026]Lab03-2016xxxxYOURNAME_[Late!])
3. you can’t get any marks if you submit result after midnight.
Great Work!14