Welcome Guest, Not a member yet? Register   Sign In
CSS Problem Solved!!!!!!!!
#1

(This post was last modified: 06-29-2017, 11:43 AM by shaser.)

Hi guys im trying to add an external css file but don't work here is the code



Code:
<link rel = "stylesheet" href = "<?php echo base_url();?>application/css/generalstyle.css">
 
I loaded the helper
PHP Code:
$autoload['helper'] = array('html','url','form','date'); 

any ideas why don't work?
Thanks
Reply
#2

(06-01-2017, 11:07 AM)shaser Wrote: Hi guys im trying to add an external css file but don't work here is the code



Code:
<link rel = "stylesheet" href = "<?php echo base_url();?>application/css/generalstyle.css">
 
I loaded the helper
PHP Code:
$autoload['helper'] = array('html','url','form','date'); 

any ideas why don't work?
Thanks
Because of the htaccess file in the application folder. (see)

move the css folder above application

or

My Folder structure
- system
- application
- public
--assets
--- css
--- js
--- image
--index.php
Reply
#3

(This post was last modified: 06-01-2017, 11:22 AM by PaulD.)

It looks fine.

What appears in your HTML and where is your css actually located?

It is unusual to have a css folder inside the application folder, usually people put them in an assets folder.

PS Cross posted with above answer from Paradinight which explains why assest should not be in the application folder.
Reply
#4

my folder structure is

application
--css
--view
--controler
--mod

thanks
Reply
#5

(06-01-2017, 11:19 AM)PaulD Wrote: It looks fine.

What appears in your HTML and where is your css actually located?

It is unusual to have a css folder inside the application folder, usually people put them in an assets folder.

PS Cross posted with above answer from Paradinight which explains why assest should not be in the application folder.

my folder structure is

application
--css
--view
--controler
--mod

thanks
Reply
#6

As Paradinight suggested above, move your css folder out of the application folder.
Reply
#7

(06-01-2017, 11:17 AM)Paradinight Wrote:
(06-01-2017, 11:07 AM)shaser Wrote: Hi guys im trying to add an external css file but don't work here is the code



Code:
<link rel = "stylesheet" href = "<?php echo base_url();?>application/css/generalstyle.css">
 
I loaded the helper
PHP Code:
$autoload['helper'] = array('html','url','form','date'); 

any ideas why don't work?
Thanks
Because of the htaccess file in the application folder. (see)

move the css folder above application

or

My Folder structure
- system
- application
- public
--assets
--- css
--- js
--- image
--index.php

hi I take out htaccess and it is works. I will need that file?

Thanks
Reply
#8

Thanks Guys

Smile
Reply
#9

(06-01-2017, 11:32 AM)shaser Wrote: Thanks Guys

Smile

put the file back. the file protect your folders in application from direct access :|

put the css folder above the application or use the folder structure i showed to you
Reply
#10
Sad 
(This post was last modified: 06-01-2017, 11:55 AM by shaser.)

(06-01-2017, 11:41 AM)Paradinight Wrote:
(06-01-2017, 11:32 AM)shaser Wrote: Thanks Guys

Smile

put the file back. the file protect your folders in application from direct access :|

put the css folder above the application or use the folder structure i showed to you

it is above application folder this is the address ../application/css/file.css but if I put htaccess file back don't work.

Sad
Reply




Theme © iAndrew 2016 - Forum software by © MyBB