Jump to content

Ingolme

Moderator
  • Posts

    14,890
  • Joined

  • Last visited

  • Days Won

    174

Everything posted by Ingolme

  1. Presentational attributes were deprecated in HTML 4.01 (They were valid in HTML 3.2)I don't think there ever was a "color" attribute. No color attribute appears in the list of attributes here: http://w3schools.com/tags/tag_hr.asp All presentational attributes are removed in HTML 5. Here's the page the the <hr> element in HTML 5, the color attribute is not present: http://w3schools.com/html5/tag_hr.asp
  2. I had no trouble installing Notepad++ on Windows 7. Be sure to download the windows installer file and not any of the source code ones.
  3. This thread is a year old. I don't think the person who made the thread is reading anymore.
  4. Technically, Javascript should not have access to anything pertaining to another domain, so it shouldn't work. It's possble that the Safari developers enabled some cross-domain features that they thought were safe.
  5. Things won't get done until you do them, so get to it!

  6. I don't completely understand what you need done with your HTML and CSS. You need to know that everything in the left or right column goes into one single container. Once the container is positioned properly, everything inside it will be positioned as well without the need of any position styling at all. To move a column to the left, you use "float: left", assign a width to it and then assign a left margin to the center column equal to that width. The reason a left margin is applied is because if the center column exceeds the height of the left column then its content will start going below. The same procedure goes for a right column but with the values changed for the right. The center column's HTML must go after all the columns which are floated. When you want to put a box below any floated columns, you just need to add "clear: both" to the CSS of that element. You can even have a new set of columns below the cleared box.
  7. If you want more than one box in any of the columns, put the boxes inside one of the column elements. To put something below all the columns, just add "clear: both" to the CSS of that element. <div id="left"> <div class="box">Left column box 1</div> <div class="box">Left column box 2</div> <div class="box">Left column box 3</div></div><div id="right"> <div class="box">Right column box 1</div> <div class="box">Right column box 2</div></div><div id="center"> Center content</div><div id="footer"> This goes below all the columns</div> #left { float: left; width: 160px;}#right { float: right; width: 200px;}#center { margin-left: 160px; margin-right: 200px;}#footer { clear: both;}/* Colors */#center { background-color: red; }#footer { background-color: green; }.box { background-color: blue; }
  8. If the download.php file is in the exact same directory as the files, then you don't need to put the folder. Put download.php outside the folder. This way people can't use the file to download itself and see its source code.
  9. You just have to change 'downloads/' for the path to your downloads directory relative to the PHP file in the following lines: if(!file_exists('downloads/' . $file) {......echo file_get_contents('downloads/' . $file);
  10. Try to understand the PHP code. It's not very difficult to understand. I even put comments in it.
  11. Please modify the download.php file to point to the directory you wish to load the files from.
  12. If you do it with PHP, you'll have to always link to the same PHP file and tell it which file to server. <a href="download.php?file=file.jpg">File</a> download.php: <?php// Make sure only files in this directory are accessible by removing slashes$file = str_replace('/','',$_GET['file']);$file = str_replace('\\','',$file);// If the file doesn't exist, show an error message and leaveif(!file_exists('downloads/' . $file) { header("HTTP/1.0 404 Not Found"); echo 'The selected file doesn\'t exist'; exit;}// Tell the browser to download the fileheader('Content-type: application/octet-stream');header('Content-Disposition: attachment');// Output the file dataecho file_get_contents('downloads/' . $file);?>
  13. You have to make the server server them with a content disposition header. This would require a .htaccess file. 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> Add extensions to the <FilesMatch> expression separated by bars\.(ext1|ext2|ext3|ext4)$
  14. If an element is floated to the left you can't expect it to be in the center. First, remove all the style attributes and move the CSS to the stylesheet. The margin-right: 600px rule is actually messing things up. To center a block element, give it a specific width and then set the margin to "auto"
  15. Make your text editor save the page in UTF-8
  16. BBcode parseing is pretty much more complex than that because you have to deal with nested or unmatched tags.
  17. This thread is five years old! Let it rest.
  18. It depends on the employer.Being honest, if I was an employer I would not give much validity to the certificates, judging by the people of this forum who considered getting one.The ceritificate may show that you memorized some syntax, but doesn't prove that somebody is able to actually solve problems on their own, which is what most of the people seem to be lacking.
  19. It means that your computer does not have the fonts that were used in the PDF. There are two possible solutions: Find and install the fonts onto your computer. Let the program replace the fonts and have it display a little differently than it originally was.
  20. W3Schools is a good place to get started, though there are a couple of bad practises in the examples. People who get further into web development end up finding out the rest on their own. W3Schools is popular because they make their tutorials simple and easy to understand.If it's not on the W3Schools site, the forums are probably the best place to learn.
  21. Hey, this thread is four years old. There really was no need to answer it.
  22. I don't think Internet Explorer uses the attribute correctly, but type should solve the problem: <a type="application/octet-stream" href="clip.mp3">Download here</a>
  23. I recommend against editors with design view. The reason? Even if your page looks good in design view it could look terrible in real browsers.It's best if you download a few browsers and always look at your pages in a real browser.If you don't think that design view is that problematic, count on my word: we've had a lot of people coming here asking why their sites don't work when dreamweaver shows it working correctly.
×
×
  • Create New...