Jump to content

knystrom18

Members
  • Posts

    258
  • Joined

  • Last visited

Posts posted by knystrom18

  1. So, stylesheets normally exist in the head element, the style tag, or in an inline attribute (style="margin:0;). What about this?

    <div style="stylefile.css">

    I wrote a quick test page, and it validates to XHTML 1 Strict, but the stylesheet linked in the head element takes precedence, and I don't see any styling from the other. It seems like this should work because of the validation, but it doesn't (for me at least.) Is this slow browser implementation, or something else?

  2. I'd like to select text between tags without wraping that text in tags as well.Example:

    <div>  I'd like to select this sentence without wrapping something like a 'p' tag around it.</div>

    I've looked at:

    div > *

    and a few others, but can't seem find something that will work. Is this even possible? Thanks!

  3. Sorry, I'm hijacking this a bit... I'm managing a site with a lot of PDF files. Ideally, I'd like a single directory with meeting minute pdfs with two types of links that point to files in that directory. A "view" link, which would point directly to the file and open in the browser, and a "download" link, which would open a download dialog box. If there was the above .htaccess file in that dir. would the "view" links open a download dialog instead of the browser just opening the pdf? Would the php solution allow both links?

  4. Put the htaccess file in a folder called "downloads" or something, and put all your downloadable files in there.The .htaccess file
    <FilesMatch "\.(html|jpg|png|gif)$">  header set Content-Disposition attachment</FilesMatch>

    Is the whitespace between the two lines necessary? Also, I had no idea that .htaccess file rules were applied to the directory they reside in. If I were to put a bad line of code in the root directory of my site, that'd mess it up, but if I put a bad line of code in a .htaccess file in a sub-directory, it'd be fine?
  5. Hey!Name: KyleLocation: RvA (Locals get it.)Age: 19, 20 this Jan 2010Zodiac: AquariusInterests: Skateboarding, Web Development/Design, Xbox, Computers, Guitar, Music and The Final Frontier other than space.Looking forward to posting here!Cheers,- Kyle

×
×
  • Create New...