Git Product home page Git Product logo

Comments (4)

Mayank-Jain-1 avatar Mayank-Jain-1 commented on June 2, 2024 2

There are few problems using CDN bootstrap.

  1. If you have to use custom (your own css) in your html file you have to link it after the boostrap cdn.
  2. Then if you have same property confilicting with bootstrap class and custom css. you have to use !important at the end of css property
body{
background: red !important;
}

from tutoringtrainingstudents.

Mayank-Jain-1 avatar Mayank-Jain-1 commented on June 2, 2024 1

https://codepen.io/Mayank-Jain-1/pen/abjwemQ
just adding the class to the body is working fine for me

from tutoringtrainingstudents.

Jay-study-nildana avatar Jay-study-nildana commented on June 2, 2024

@SRP31d

two things I can suggest with my minimal knowledge of CSS.

  1. apply style directly to body.
<body style="background: blueviolet;" class="">
  1. or put this style in a class, like @Mayank-Jain-1 suggested, and do like this.

CSS class

.backgroundbody {
  background: blueviolet;
}

HTML

<body class="backgroundbody">

full solution here.

https://codepen.io/jay-pancodu/pen/jOpwgLa

Jay.

from tutoringtrainingstudents.

Jay-study-nildana avatar Jay-study-nildana commented on June 2, 2024

There are few problems using CDN bootstrap.

1. If you have to use custom (your own css) in your html file you have to link it after the boostrap cdn.

2. Then if you have same property confilicting with bootstrap class and custom css. you have to use  `!important` at the end of css property
body{
background: red !important;
}

one of the many reasons why I don't waste my time with CSS in freshers batch is because, we have students who are struggling to understand 'how to verify email account'

When such is the scenario, explaining to them about things like solving 'conflicting' css rules and what not, will only go above their head.

Of course, there is also my personal bias against any sort of time spent learning CSS.

Either way, feel free to help out students with your CSS knowledge. Something I myself have no intention to do :)

Ultimately my advice to freshers is the KISS policy.

  1. Use the standard bootstrap classes and don't do any customization.
  2. Use existing templates with minimal modifications.
  3. Eventually, once you have spent a few months working on front end development, please come back and go deeper into CSS if that is what your job demands.

If you know JavaScript, and are poor in CSS, you will still get a job.
if you know CSS, but never got the time to learn JavaScript, then, your chances are job are less.

from tutoringtrainingstudents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.