external css stylesheet doesnt work

Questions and tutorials related to Cascading Style Sheets *all versions*

Moderators: macek, egami, gesf

Post Reply
User avatar
freshnet
php-forum Active User
php-forum Active User
Posts: 343
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: external css stylesheet doesnt work

Post by freshnet » Fri Jul 27, 2012 5:36 am

The stylesheet shouldn't have anything to do with your php.ini file, but to test that, create a plain html file and try to use the external stylesheet. If it doesn't work, I'm guessing it's most likely a setting either in your browser or in IIS.

bliss
New php-forum User
New php-forum User
Posts: 24
Joined: Sun Jul 29, 2012 5:38 pm

Re: external css stylesheet doesnt work

Post by bliss » Sun Jul 29, 2012 5:48 pm

Doesn't this (between head tags) work?

Code: Select all

<link rel="stylesheet" type="text/css" href="link" />
Replace 'link' with the external sheet link.

johnmacd
New php-forum User
New php-forum User
Posts: 75
Joined: Wed Jun 12, 2013 9:30 pm
Contact:

Re: external css stylesheet doesnt work

Post by johnmacd » Fri Apr 08, 2016 4:30 am

Hi,

Try like this:
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest