yjp2110
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    **MSTU 5003- Tinker Bootstrap Group 3** Yanjun Wang, Anqi Wang, Yifan Chen, Jinny Park :::success https://codepen.io/yjp2110/collab/wvjxvpe ::: ### FRAMEWORK: OVERARCHING **1. In the settings of the CSS Pane (click on the gear) there is a section called Add External CSS. Remove the resource (Bootstrap) line.** - **What happens to the page and why?** The elements are displayed in default styles. Because the classes in the html is linked to bootstrap CSS document in the link. After deleting it, the classes in html is not defined in CSS and the elements return to the default styles. - **You can add the resource back:** https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css **2.Enter the above resource directly into your browser URL input to go to the page and scan through the resource.** - **What is Bootstrap really?** It is a huge combination of CSS rules that developer can apply to their webpages. It provides a CSS framework. **3. I have a few CSS rules in the CSS pane. Comment them out.** - **What happens to the page and why?** The format/ style has chaged a little bit. However, the major noticeable change is that the picture and pargraphs now have less margin after I commenting out the css rules. - **What is the relation between my CSS and the External Resource?** Your CSS has overwritten the external resources when they are put into effect. - **How does my CSS "intersect" with the External Resource?** A guess is that the CSS rule intersects with the external resource in terms of margin and one padding issue. - **What do you think is the sequence of how the External Resource and my CSS are loaded?** External resources run first and then your CSS. - **What kinds of things could happen, if I am careless with my own CSS rules?** If there are some mistakes, we think the page will just go with the rules in the external resources. - **Are you stuck with all of Bootstrap's rules? How does our own CSS come into play if we don't like a particular Bootstrap rule?** First, we need to find the class that we dislike about in the bootstrap rules, then we add specific CSS rules ourselves to overwrite it. 4. **Compare this Tinker's custom CSS vs. last week's CSS.** - **What kind of specific rules did I have to make last week that I did not have to do this week to achieve a very similar result?** We don't need to write the attributes on our own. We can use the existing class in bootstrap. We don't need different selectors to target elements. Everything is defined by classes. - **What then is the _advantage_ of using a framework like Bootstrap?** Save time Better display img/icon resources - **What are some _disadvantages_ of using a framework like Bootstrap?** using unknown class without understanding the meaning no need to use for simple or highly customized webpage **5. Compare the HTML from this week's Tinker vs. last week's Tinker HTML. Anqi** - **I use a class called `.container` in both. Is this a special `class`? Are they the same thing?** I don't think they are the same thing. For class container from last week, the class container is for the whole body. However, for this week's tinker, class container works for different sections but not the whole body. - **There are many more `classes` used in this week's Tinker. Where do these classes come from?** We try to use those new classes to connect with the css rules provided from the framework. **6. Remove classes like `img-thumbnail` and some of the `danger`, `info`, etc. classes in the table and/or try adding them to other elements. Might work, might not. Anqi** - **How do these kinds of `classes` relate and rely on the bigger structure and `class` rules of a framework?** When I deleted the img-thumbnail class for the image of business cat, the image becomes bigger. Class can be a way to help the text to connect with the `class` css rules of a framwork. **7. Analyze the form and refer to https://getbootstrap.com/docs/5.2/forms. Try to convert this BASIC form to an **horizontal form** and/or an **inline form**. Some of the examples have extra attributes like `id`, `placeholder`.** To convert the basic form to an horizontal form, one should add `.row` class to apply the horizontal forms. And one can define the columns using `.col-form-label-sm` or `.col-form-label-lg` to the `<label>` - **Are the non-class attributes important in terms of getting Bootstrap to work? (How do you know?)** Non-class attributes are important in terms of getting boorstraps to work as it influenced by the code for the class attirbutes. Also non-class attributes determine the elements inside of the class attributes or outside of the class attributes. - **If you deviate from the specifications, particularly: 1) the classes used, 2) the hierarchy expected, how might that affect your result?** I tried to use different classes and change the hierarchy expected. An element need classes to display correctly and hierarchy is used to better organize the content. If I deviate from the classes, the element cannot be correctly displayed. But deviate from hierarchy by changing the order of hierarchy may influence the position of elements changed but the children remain the same display. **8. Manipulate the form to "exclude" certain classes as prescribed by the Bootstrap guide and examples.** - **How does not following the specifications affect the output?** Not following the specifications affects the output of creating errors or the specifications. For instance, to apply color yellow, different wording is used that is not yellow; "warning" refers to color yellow in bootstrap - **What are the key aspects you need to be paying attention to when learning and implementing these framework features?** One of the key ascpets we need to be paying attnetion to when learning and implementing these framework features is that the spelling and organization matter in allowing the framework features to be applied. - **What is the best way to learn how to use a new framework feature?** The best way to learn how to use a new framework feature is from deleting existing code to see the changes applied to the result. On the other hand, applying new code by looking at the cheatsheet allows you to learn to use the new framework feature. **9. Think about your experience building a page from scratch last week.** - **What is your attitude on using, learning new frameworks like this?** It makes the coding easier. It also makes buildig a website faster. ### GRID SYSTEM ```htmlmixed= <div class="container"> <div class="row"> <div class="col-__"> <!-- CONTENT --> </div> </div> </div> ``` **10. FIND the above pattern(s) within the HTML.** - **Move a `.row` to the outside of a container. What happens?** After moving "Delish! Meow meow meow meow" from the container, it takes up the whole space. - **Move a column outside a row but within a container. What happens?** Moving "Delish! Meow meow meow meow" out of the row made no change to the visual representation,probably because it is a column-12. When we did the same thing to the black business cat and the content "grumpy cat..." the CSS rules of Flex no longer apply as they went into different lines. - **What is the importance of using these three classes together `container`, `row`, `col-` and in the correct hierarchical sequence?** Only if they are used in the correct hierachical sequence, then the CSS rules from the external resouces would be applied in the correct manner. **11. Manipulate some of the content inside the columns to different parts of the page, keeping in mind whether the content is inside a `row`, or a `container`, or none.** - **What happens when content falls outside of the columns?** In some cases, the spacing/format might not change ( when we move the heading Cat Opinions). In other cases, the content would transform into its default setting (e.g. the image). **12. Manipulate the column classes to replace some `col-12` to `col-xl-4`. Then, drag your browser screen out to make it really large or really small. Or you can zoom in or zoom out of your browser to get the similar effect.** - **What does the `xs`, `sm`, `md`, `lg`, `xl`, `xxl` represent in the column `class` notation?** When we made the screen extremely large or small, they are the same. We think these terms are used for different screen sizes. **13. Manipulate the column classes to replace some `col-12` to `col-3`. This is partly dependent on how large your browser window is so you might have to play with the size or zoom in and out to see differences.** - **What does the `number` in the column name represent with respect to the GRID system?** Under the same notation of "md," we can see that the number is referred to the column space. One single line has 12 columns. If the number is 12 after the col, it means the content is going to take up 12 columns. **14.Carefully observe and compare this column class naming system (i.e. _opinion_) that Bootstrap has, with the column naming system of these _other_ GRID SYSTEMS:** - https://semantic-ui.com/collections/grid.html - Click on the `<>` on the page to see the actual code with `classes` - http://materializecss.com/grid.html - http://getskeleton.com/#grid **- What are the similarities and what are the differences?** Similarities: - All the column have a parent element with class "row" or "grid" indicating that the inside are columns. - All columns have a class that can control the width of the column Difference: - Different column class naming system have differnet number of columns per row. 16 or 12 - Some use multiple classes to difine a column. Boorstrap use one class. **- What is a Grid System _convention_ vs. _rule_? Can you give an example?** convention: All the column have a parent element with class "row" or "grid" indicating that the inside are columns. All columns have a class that can control the width of the column rule: the specific name of classes indicating it is a column/grid and columns' width **- What would happen to my columns if I remove Bootstrap from my page?** The columns messed up. They cannot be displayed in desired width. **- Is the class, `col-xs-6` for example, really that special?** Not really. It can be substituted by class="six column" in skeleton, class="six wide column" in semantic-ui, class="col s6" in materializecss. **15.Visit the following link:** [Grid System Explained](https://www.youtube.com/watch?v=Wqu-d_b3K-0) **- What is the advantage of using popular tools like Bootstrap?** It is much easier to find some video explainations about those tools. And it would have some practise exercise about how to use them. People can easily get familiar with those new tools. :::success **Did you know?** As a student, you have access to the full Lynda.com / LinkedInLearning library. These are fantastic resources if you want to actually see the details of specific feature implementation. Thing with these tutorials is that they tend to explain _how to do_ specific things, but don't quite address the issue of deeper understanding to explicitly address how concepts relate and tie together. That said, used in _conjunction_ with activities like the Tinkers, can be a very powerful combo. To access Lynda.com: - Log IN with your student account - https://www.linkedin.com/learning - See the Bootstrap Essentials VIDEO Tutorial - https://www.linkedin.com/learning/bootstrap-5-essential-training ::: **16.How does the combination of different ways of observing, manipulating, thinking, and applying code help learners to develop a comprehensive mental model of understanding?** After using those different ways to explore a tool, we can find out some relationships between different words here used in Bootstrap. By trying to add or delete something from the codepen, we may see things differently each time to figure out what each element stands for. ## COMPONENTS **17.Browse through the different [COMPONENTS](http://getbootstrap.com/components/) of the Bootstrap Framework and observe _the pattern_ of how the documentation is presented. Experiment with BUTTONS for a good** example: https://getbootstrap.com/docs/5.2/components/button-group/ **- When learning to use new components in a framework, what do you think is the best practice on how to learn about the feature?** Experiencing with Button figure, I realized that all code start with attribution of class. For instance, to make a group button, class is required to provide the devision: `<div class="btn-group">` On the other hand, if one does not want to group the buttons, they can write it as <botton type "whatever"> </botton> In writing a grouping code, first one defines `class="btn-group"` Then provide of the `role="tool bar"` then provide aria-lable <div class="btn-group" role="group" aria-label="Basic radio toggle button group"> Examples: <div class="btn-group" role= "tool bar" aria-lable="Large button group"> <a href="#" class="btn btn-success">Green</a> <a href="#" class="btn btn-danger">red</a> <a href="#" class="btn btn-primary">blue</a> <a href="#" class="btn btn-warning">Yellow</a> </div> <br></br> **18. In my table, I have "Extremely Deadly" as a label of sorts, that is bright red which is defined by the `.bg-danger` class. OVERRIDE this rule in your custom CSS pane to make `.bg-danger` a `pink` color using the following value: `pink !important`** ![](https://i.imgur.com/YzF8qOy.png) Overridding `.bg-danger` class with `pink !important` value changes the text extremely deadly into pink color from white. **- Try removing the `!important` and what happens? Why?** Removing `!important` did not make any changes.Becase there color is not specified in the previous properties. However, when I applied to .bg-danger as with background-color property, ![](https://i.imgur.com/epOEXhT.png) The color of the button itself changed. From here, when I delete `!important`, the color changes back to red as there's no override effect applied to that property. (image below) ![](https://i.imgur.com/lrQNdca.png) **- What affect might this have on other parts of my page?** It will not affect other parts of my page since I specified the CSS pane just for .bg-danger. If I had applied to badge in general, it might have affected the other parts. **19.Pick a few different components you find interesting. Try to implement them into your Tinker fork on Codepen.** - Share with your group what you found about the experience of learning to use new features and what your takeaway was. **Card component** We used the card class to rearrange te Gerumpy Cat row. Using class like "card-text" and "card-title" can quickly build a card-like object on webpage. ```html <div class="card" style="width: 18rem;"> <img src="https://jmk2142.github.io/mstu5003/week01/visualize/images/catZero.jpg" class="card-img-top" alt="cat"> <div class="card-body"> <h5 class="card-title">Grumpy Cat</h5> <p class="card-text">I'm unimpressed. Shut up and code.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> ``` ![](https://i.imgur.com/vDyr6q5.png) Dropdown: We created a dropdown and customized the class to set an offset and to forbid clicking outside to close. ```html <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" data-bs-offset="10,20" data-bs-auto-close="inside"> Cat Opinions </button> <ul class="dropdown-menu"> <li><a class="dropdown-item" href="#">Grumpy Cat</a></li> <li><a class="dropdown-item" href="#">Nyan Cat</a></li> <li><a class="dropdown-item" href="#">Business Cat</a></li> </ul> </div> ``` ![](https://i.imgur.com/OExHVLz.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully