Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3456344
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:43:29+00:00 2026-05-18T09:43:29+00:00

My css file present in css/style.css : body { background-color: #fff; margin: 40px; font-family:

  • 0

My css file present in css/style.css :

body {
 background-color: #fff;
 margin: 40px;
 font-family: 'Lucida Grande', Verdana, Sans-serif;
 font-size: 14px;
 color: #4F5155;
}

When I run the site in a browser, there is no styling to the controller page , and the path to the css file returns this:

<html>
<head>
<title>404 Page Not Found</title>
<style type="text/css">

body {
background-color:   #fff;
margin:             40px;
font-family:        Lucida Grande, Verdana, Sans-serif;
font-size:          12px;
color:              #000;
}
</style>
</head>
<body>
<div id="content">
    <h1>404 Page Not Found</h1>
    <p>The page you requested was not found.</p>    </div>
</body>
</html>

Any ideas on what’s going on here ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:43:30+00:00Added an answer on May 18, 2026 at 9:43 am

    Your stylesheet can’t be found, most likely because it isn’t on the path you think it is.

    Things to check:

    • What do you think your stylesheet’s path is (i.e. what did you type in the browser to get that 404 error?)

    • Where is the file in the filesystem in relation to your CodeIgniter root?

    • Are you using a .htaccess file? If so, what’s in it? The .htaccess redirection done in CodeIgniter can confuse you.

    The “standard” setup for CodeIgniter css files is this:

    • Save your css file in a “css” directory in the root of your CodeIgniter install, i.e. alongside the top-level index.php and .htaccss.

    • Make sure your .htaccess rewrite excludes the css directory, e.g.:
      RewriteCond $1 !^(index\.php|images|robots\.txt|css) <– note “css” is among the patterns to avoid rewrites for here. Otherwise CodeIgniter will think that “css” is a controller, not the actual directory on disk.

    • Include your CSS file in your HTML file using something like: <link rel="stylesheet" href='<?php echo base_url()?>css/style.css' type="text/css" media="screen, projection" />.

    • Obviously, make sure that your base_url is set correctly in your application’s config\config.php file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CSS rule like this: background: #fff url('/assets/img/file.png'); It is compiling to:
We include the CSS file via standard HTML STYLE tag. Then we need the
I have a CSS file, which contain the style information of my web. Some
1) If inside CSS file we specify the following style: td { text-align:center; }
present output output needed css file copied from firebug .menu-bar li ul a {
The problem is in my CSS file: * { font-size: 8px; float: left; }
how do i style the html contents inside a php include file, using css?
My CSS file is acutally a PHP file which is served with content-type text/css
I am making a CSS file for an XML document. I need to insert
In my main CSS file, I have my a:link selector set to display links

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.