Stylesheet not honored; directory access thwarted

R

RichardOnRails

Hi,

I intend to import CVS data from user-selected files a sub-directory
withing a Rails app. I wrote a toy app outside the scope of Rails
just to test this capability. The toy app is posted at http://www.pastie.org/308209.

The toy has a few blemishes:
1. I included CSS to center the link, but it's rendered left-
justified.
2. I expected the filenames in the imports sub-directory to be
displayed, but they were not.

Any ideas?

TIA,
Richard
 
H

Hassan Schroeder

The toy has a few blemishes:
1. I included CSS to center the link, but it's rendered left-
justified.

An anchor is not a block element, hence is only as wide as its content.
(Also, the 'position: relative' is meaningless in the example shown.)
2. I expected the filenames in the imports sub-directory to be
displayed, but they were not.

I'm guessing you think that a URL can contain wildcards; it can't.

If you use ` href="/imports/"` and your server allows directory listing,
you'll see the files listed.

HTH,

H*
 
R

RichardOnRails

An anchor is not a block element, hence is only as wide as its content.
(Also, the 'position: relative' is meaningless in the example shown.)


I'm guessing you think that a URL can contain wildcards; it can't.

If you use ` href="/imports/"` and your server allows directory listing,
you'll see the files listed.

HTH,

H*

Hi Hassan,

Excellent guidance!

I got centering of my link working both with in-line styling and
external CSS.
And I also got a directory listing from Firefox.

You're batting 1000. Thanks a lot!

Best wishes,
Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,197
Messages
2,571,038
Members
47,633
Latest member
BriannaLyk

Latest Threads

Top