Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arindam 11 posts 91 karma points
    May 15, 2017 @ 06:37
    Arindam
    0

    I am rendering menu using partials but my custom css isn't effected the menu . Its taking by default bootstrap css .

    Please help and all help will be highly appreciated .

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 15, 2017 @ 06:47
    Dennis Aaen
    0

    Hi Arindam,

    You you please make sure that your CSS file with the custom CSS are the one that are being load after the default bootstrap CSS.

    Hope this helps as a start.

    /Dennis

  • Arindam 11 posts 91 karma points
    May 15, 2017 @ 06:51
    Arindam
    0

    Hi ,Dennis Aaen

    I am providing the css order here

    <!-- Custom styles for this template -->
    <link href="~/css/bootstrap.min.css" rel="stylesheet">
    <link href="~/css/font-awesome.css" rel="stylesheet">
    <link href="~/css/carousel.css" rel="stylesheet">
    <link href="~/css/style.css" rel="stylesheet">
    <link rel="stylesheet" href="~/css/owl.carousel.min.css">
    <link rel="stylesheet" href="~/css/owl.theme.default.min.css">
    

    first one is bootstrap and style.css is our custom css

    Please help isnt work in this way .

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 15, 2017 @ 07:18
    Dennis Aaen
    0

    Hi Arindam,

    Okay then you should be sure that you are taget your custom CSS sectors with a higher specificity than the default Bootstrap once.

    Try to see this https://www.smashingmagazine.com/2007/07/css-specificity-things-you-should-know/#specificity-hierarchy

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft