Jump to content

Max Castril

  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Max Castril

  • Rank

Recent Profile Visitors

919 profile views
  1. Max Castril

    How to identify mobile devices

    Hi everyone Nowadays, when one calls a website on a mobile device, the server will load an alternative web page. E.g. if one calls www.examplewebsite.com on a mobile, then the page that one will see is something like www.m.examplewebsite.com. How does HTML identify the type of device, beit PC, laptop, iphone, tablet etc. ?? I have read the w3schools pages on the subject and followed their advice, but am interested in at least modifying my CSS specifically ofor a mobile device. Thanks in anticipation. Max
  2. Max Castril

    Resizing Images Relative To Their Original Size...

    Thanks, dsonesuk. I will work on your advice. The FastStone looks really good - I will probably just use that in future instead of MS Paint. I think the imagick is a bit beyond my powers of understanding, to be honest. Thanks Max
  3. Max Castril

    Resizing Images Relative To Their Original Size...

    Hi there I have a website ( www.beautifulcastril.com ) which has approx 1,400 images of the area. I have just included a 'view images' section which displays thumbnails whch you can then click on to see the full sized image. The images from which I am producing the thumbnails are 512 x 384px and the large images are 1600 x 1200px. As I am displaying the images at a width of 150px, I would like to use php to reduce the 512px images to 150px before download to reduce server load and screenfll time. I have looked through the code from justsomeguy but it seems awfully complex (to a simple soul like me!). Is there no php instruction such as 'resize('myimage.jpg',150) ?? I don't need to test for the existence of a file as I have just found it with glob(). I have trawled through the imagick manual but just get more and more baffled, apart from the fact that it seems that my server (1and1.es) doesn't support imagick. I can always trawl through 1,400 images and load them individually into MS Paint, resize them, save them on the PC and then upload them via FileZilla but it will take hours and is not very elegant. All advice will be much appreciated. Regards from a very sunny Spain. Max all_images.php
  4. Max Castril

    Viewer statistics

    Hi all, Some forum type websites show how many people are viewing at any one time - can you do that in php or do you have to use JavaScript? HOW??? Any advice would be gratefully accepted. Max
  5. Max Castril

    Favourite html editors...

    Isn't using Dreamweaver cheating? I like SciTe.
  6. Max Castril


    Hi Just a question to satisfy my curiosity. I have a favicon which is 16 x 16px. I link it in the <head> section like this: <link rel="shortcut icon" href="http://www.beautifulcastril.com/BC/favicon.GIF" type="image/icon" /> <link rel="icon" href="http://www.beautifulcastril.com/BC/favicon.ico" type="image/vnd.microsoft.icon" /> and have the favicon saved twice, as .GIF and .ico in the correct directory as above. Now, when I load a new page the icon doesn't appear but if I refresh the screen about 5 times it eventually does. I'm using Google Chrome as a browser. The odd thing is that if I click on 'view page source' then the code listing immediately gets the favicon! Could it be that the two <link>s are inhibiting the favicon in some way? Regards Max
  7. Max Castril

    <div id = "hello">

    Many thanks for everyone's help.
  8. Max Castril

    <div id = "hello">

    I just want to apply some CSS to certain anchors and nothing else. I suppose I could use <a style = "width:.....etc.... ...or would <a class = "area1" href.....etc> ?????
  9. Max Castril

    <div id = "hello">

    Thanks again dsoneuk. Seems a strange rule to have, to me. It works live as well. I have utterly NO IDEA how to resolve this.
  10. Max Castril

    <div id = "hello">

    Interesting problem with the W3 schools checker 'Nu Html Checker'. I am using a CSS file that I have written which includes a reference 'area1'. I am calling it on many occasions e.g. <a href="mountains.php" id = "area1">Mountains</a> as I only want 'Mountains' to be affected by this particular CSS. When I run Nu Htnl Checker, I get this: Error: Duplicate ID area1. From line 330, column 148; to line 330, column 185 ></td><td><a href="mountains.php" id = "area1">Mounta Surely I can use a piece of CSS more than once in an html document??
  11. Max Castril

    HTML <img width "">

    Thanks, dsonesuk - Seems to have sorted that one!
  12. Max Castril

    HTML <img width "">

    Hi, I am using 'Nu HTML Checker' and it is throwing up the error "Bad value 100% for attribute width on element img: Expected a digit but saw % instead.". Also, the W3 Schools html references says that img width should only be pixels but how can you then scale an image depending on screen size? Using percentages for image width seems to work in Chrome. Have they really not allowed for assigning a percentage to img width??
  13. Max Castril

    Slideshows in CSS3

    That is strange Ingolme. If I click on http://www.w3schools.com/howto/howto_js_slideshow.asp and then go down to the first "Try it yourself" (under the "add javascript" and above "Automatic slideshow") then it shows ?s instead of arrows. I now have it working in my program as I have changed the characters as seen in my post above. Thanks for your help on this everyone.
  14. Max Castril

    Slideshows in CSS3

    Ok, thanks. Found it here: <a class="prev" onclick="plusSlides(-1)">?</a> <a class="next" onclick="plusSlides(1)">?</a> ....which I changed to: <a class="prev" onclick="plusSlides(-1)">Prev</a> <a class="next" onclick="plusSlides(1)">Next</a> Seems an odd character to put in a demo though. This also works:... <a class="prev" onclick="plusSlides(-1)">❮</a> <a class="next" onclick="plusSlides(1)"❱</a> Max
  15. Max Castril

    Slideshows in CSS3

    Thanks for that dsonesuk. Interestingly, if you look at http://www.w3schools.com/howto/howto_js_slideshow.asp you will find that the code doesn't include a reference to the W3 CSS file. However, in Chrome and Oracle I get question marks instead of left/right arrows. The CSS doesn't seem to describe the arrows: /* Next & previous buttons */ .prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0; } If I could get the arrows to work, I feel that it would be a more elegant solution to the question. Thanks again for your comment.