Welcome Guest, Not a member yet? Register   Sign In
How to attach a CSS style sheet
#1

[eluser]Unknown[/eluser]
Hi,
This is Ahsan. I am new in CI. I cannot attach my .css file with my view file. Could any one please give me step by step direction how can i do that.

I made my controller class as:

class Home extends CI_Controller {

function index(){
$this->load->view('home_view');
}
}

Thank you.
#2

[eluser]Php Coder[/eluser]
السلام عليكم اخ احسان

بمكانك استدعاء ملف الcss

باحدي هذة الطرق
1-
وضع ملف ال
css
في المجلد الرئيسي
واستدعاة بهذة الطريقة
Code:
<LINK rel="StyleSheet" href="<?=base_url()?>style.css" type="text/css" >
ضع هذا الكود في الصفحة التي تريد عمل لها view
============
مع الغاء index.php
من رابط الموقع بطريقة ال
htacsses
#3

[eluser]Unknown[/eluser]
Could you please write in English please.
#4

[eluser]Php Coder[/eluser]
Google translation of this because my English is weak
Hello brother Ahsan Ahmad

Where you call the css file

One of these roads
1 -
The file mode
css
In the main folder
And summoned him in this way
Code:
<LINK rel = "StyleSheet" href ="<?= base_url ()?> Style.css "type =" text / css ">

Put this code in the page that you want to view it
============
With the abolition index.php
Website of the way
htacsses




Theme © iAndrew 2016 - Forum software by © MyBB