views:

50

answers:

2

Hello, I want to know how we can include CSS file in a website build using PHP for mobile application.

I have a site which is build using HTML,PHP, and CSS. Now I have to make that site properly aligned in mobile phones. I already can view the content on mobile, but the css which I have included in the site is not getting added, and so the text, font, everything is not properly visible on mobile. Infact in "page source", the css which is initially included cannot be seen. So is there any different way to include a css for mobile applications.

Can anyone help me with this.

A: 

In general you include stylesheets into HTML like this:

<link rel="stylesheet" type="text/css" href="path/to/style.css"> 
JochenJung
A: 

Not sure what you are asking but you can add a specific style sheet for handheld devices by using the following in your html <head> tag.

<link rel="stylesheet" type="text/css" media="handheld" href="handheld.css" />

You can get more information on:

Treffynnon