3
I need to call this sheet external style, but it does not load at all, I saw a similar question here, but I did not notice a conclusive answer, since I am using Codeigniter 3 below.
The error that appears is this:
Failed to load Resource: the server responded with a status of 404 (Not Found)
How could I solve this problem?
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8"/>
<title>RR Telecon</title>
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
<link href="<?php echo base_url(); ?>/assets/css/bootstrap-theme.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo base_url(); ?>/assets/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo base_url(); ?>/assets/css/bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo base_url(); ?>/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo base_url(); ?>assets/css/home.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<section class="reader">
teste
</section>
</body>
</html>
This is the link, but you didn’t resolve me no http://answall.com/questions/102191/como-inser-css-externo-no-codeigniter-3
– Aminadabe Silva
Open the
Inspector de elemento
from your browser, go toConsole
and refresh the page, see if an error appears. If it appears, post here to try to help you.– Alisson Acioli
Alisson Acioli updated the error that appears, is at the bottom of the question
– Aminadabe Silva
Actually it’s just the home.css that isn’t loading or are all?
– Marcelo Diniz
Everyone, it doesn’t load, it’s some rule in the new version of codeigniter I think, and from what I’ve read too, but I still can’t solve.
– Aminadabe Silva
try like this
<link href="<?php echo base_url('assets/css/bootstrap-theme.css'); ?>" rel="stylesheet" type="text/css"/>
– Saymon