Ftp

Joined
Nov 6, 2006
Messages
44
Reaction score
0
Points
6
Location
Northamptonshire
Your Mac's Specs
macbook 2.0 ghz core duo 2. 2gb ram ddr2, 60gb hard drive, superdrive. ipod video 30gb. Iphone
I have cpanel on my host and recently made a public ftp folder in which I put some folder of my work which i want users to download. but I want to know how to apply my css style onto the index page of the folder which shows the files. Its not very user friendly.
 
Joined
Oct 22, 2006
Messages
64
Reaction score
2
Points
8
I have cpanel on my host and recently made a public ftp folder in which I put some folder of my work which i want users to download. but I want to know how to apply my css style onto the index page of the folder which shows the files. Its not very user friendly.

You cannot use css to change the background of FTP folders. When people download from FTP folders the contents of the folder has a background, which cannot be changed. So, CSS only works with HTML files, it does not work with the appearance of an FTP folder.

Edit: However, if the pace you want CSS to effect is an html page, then in the header of that file type in <style type="text/css">@import url(filename.css);</style>. If your want that code to be internal to the page, then just enter the attributes inside the style tags, but it must begin with <style type="text/css">, anyway.
 

Del


Joined
Dec 24, 2006
Messages
901
Reaction score
15
Points
18
Location
N. Ireland
Your Mac's Specs
Mac Pro 2xQuad core 2.8GHZ
Edit: However, if the pace you want CSS to effect is an html page, then in the header of that file type in <style="text/css">@import url(filename.css);</style>. If your want that code to be internal to the page, then just enter the attributes inside the style tags, but it must begin with style type="text/css">, anyway.

An alternative way is

Code:
<link rel="stylesheet" type="text/css" href="styles.css" media="screen,projection" />
 
Joined
Oct 22, 2006
Messages
64
Reaction score
2
Points
8
An alternative way is

Code:
<link rel="stylesheet" type="text/css" href="styles.css" media="screen,projection" />

True, this may work, but the way I told him allows more than one stylesheet to be embedded in the page, all under one set of style tags. Go ahead and choose which way you do it, but it really depends on if you're going to add more stylesheets or not to the HTML page.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top