DIRECTIONS:Follow along as you begin making your class website which will showcase all that you have learned this semester. ❏
Launch NetBeans
● Double-click on the NetBeans desktop icon
❏
Open Project
● FILE Menu > Open Project… ● Navigate to COLESTOCK > WEBDEV > my-class-website ● Select ‘Open Project’
❏
Create File for Your Custom CSS
● From the Projects tab: Right-click on css folder > New > Cascading Style Sheet :
Name the file custom ; placing it in project’s css directory:
Select ‘Finish’ Page 1 of 8
❏
Remove Default Comments from Custom Style Sheet
● Select all the text in custom.css (CTRL+A) and remove it (backspace) Before :
After :
❏
Add Custom CSS to Page
● Include custom.css in the page by creating a element within the , placing it after skeleton.css :
❏
Override Baseline Skeleton Styles
● Add CSS rulesets that override the default (“baseline”) styles provided by the Skeleton boilerplate; place the following at the top of the custom.css file:
● Add utility CSS rulesets to custom.css below the baseline overrides:
/* Utilities */ .u-ct { text-align: center; }
❏
Run Project
● Do one of the following to run the My Class Website project: ○ Press F6 ○ RUN Menu > Run Project (My Class Website) ○ Press the Green Arrow in the Menu Bar ● If successful, you should see this page in Google Chrome:
Don’t forget to save frequently (CTRL+S) ❏
Style the Header
● Add the following CSS to the custom.css , after the Utilities, to style the page’s element:
● Save your project ● Return to your browser and refresh the page ● If successful, you should see this page in Google Chrome:
Page 5 of 8
Notice how <main> now has margin separating it from the navigation bar and how applying the container class has placed the content in the middle, in an area whose width will never exceed 960 pixels wide. ❏
Add Utility Classes to Footer
● Add the u-ct utility style class to :
I WEBDEV > my-class-website > public_html directory on the local (left) side (USB drive) ● Select all the files (CTRL+A) on the local (left) side in FileZilla and drag them into the public_html directory on the remote (right) side; this will overwrite/update the files currently there ● When prompted that ‘ the target file already exists ,’ check ‘ Always use this action ’ and ‘ Apply to current queue only ’; then select ‘ OK ’
❏
Test Website in Browser
● Test by visiting your website using Google Chrome: http://www.ahstech.net/~XXXXXXX/ (where the Xs represent your Student ID #)