• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Custom css overrides bootstrap
Custom css overrides bootstrap
LeonHaker
Posts: 95
Reputation: 0

Message # 1 | 3:12 PM
i downloaded bootstrap files and i put this in site pages in head:

Code
<link type="text/css" rel="StyleSheet" href="$HOME_PAGE_LINK$/css/bootstrap.min.css" />


but as soon as i edit the css it overrides the bootstrap link with
Code
<link type="text/css" rel="StyleSheet" href="/_st/my.css" />


i didn't touch the style link
Code
<link rel="stylesheet" href="/.s/src/css/1322.css" type="text/css" media="all" />


the same is happening with bootstrap js, i add it and after changing style the script tag disappears.

Whats the problem with this?
Mar1aN
Posts: 192
Reputation: 3

Message # 2 | 3:20 PM
Try to put the link with bootstrap after the one with ucoz stylesheet.

Code

<link type="text/css" rel="StyleSheet" href="/_st/my.css" />
<link type="text/css" rel="StyleSheet" href="$HOME_PAGE_LINK$/css/bootstrap.min.css" />

LeonHaker
Posts: 95
Reputation: 0

Message # 3 | 6:26 PM
I fixed it, i leaved the link that was magically added and then add css link to bootstrap

Added (2015-02-18, 6:26 PM)
---------------------------------------------
It is broken again, it just happens when i edit my stylesheet.

joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 4 | 8:29 PM
LeonHaker, yo don't want to use uCoz's general stylesheet? In this situation, try to use this code:

Code
<noscript><link type="text/css" rel="StyleSheet" href="/_st/my.css" /> </noscript>
<link type="text/css" rel="StyleSheet" href="$HOME_PAGE_LINK$/css/bootstrap.min.css" />

hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
LeonHaker
Posts: 95
Reputation: 0

Message # 5 | 1:42 PM
but the problem is that in my css file i have classes that overrides the bootstrap classes, so the bootstrap file need to go first.
Eriko
Pokémon Master
Posts: 962
Reputation: 34

Message # 6 | 7:56 AM
LeonHaker, put this at the start of your CSS file.

Code
@import url("/css/bootstrap.min.css");
LeonHaker
Posts: 95
Reputation: 0

Message # 7 | 1:14 PM
thanks
uCoz Community » For Webmasters » Custom Solutions » Custom css overrides bootstrap
  • Page 1 of 1
  • 1
Search: