Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About ben03

  • Rank

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Interests
    Mountain Biking, Web design.
  1. htaccess rule not working

    Thank you justsomeguy. I am assuming it is the ',L' that needs removing from each of the brackets? That is the danger of taking different snippets from different tutorials I suppose. Thanks for the help
  2. htaccess rule not working

    Hi there, I am using a few of re-write rules, the last of which is not working. I assume it clashes with the others in some way? <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^oldurl.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.oldurl.co.uk$ RewriteRule (.*)$ http://www.newurl.co.uk/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] RewriteCond %{HTTP_HOST} ^newurl.co.uk$ RewriteRule (.*) http://www.newurl.co.uk/$1 [R=301,L] </IfModule> Any pointers here would be greatly appreciated! Thanks
  3. Hi there, I was following this a tutorial about adding a page fade-in once the page has loaded. It is set up so it works even if javascript is disabled, which is ideal. https://www.abeautifulsite.net/a-clean-fade-in-effect-for-webpages However i am trying to add another class the snippet to the script tag that appears immediately after the opening <body> tag: <script>document.body.className += ' fade-out'; $(".wrap").addClass(" fade-out");</script> However I am getting the following error: "Uncaught ReferenceError: $ is not defined". I am assuming this is because I am not calling in jquery in the header? But why then does it work fine without my additional snippet? Maybe I am taking the wrong approach here, let me know if this could work. Thanks
  4. Hi there, I'm not sure if I am missing something obvious here. I am using Hind Guntur font in a website https://fonts.google.com/specimen/Hind+Guntur however the spacing between words disappears in the browser. Why is this? I noticed this also happened with the ttf when using it in photoshop.
  5. Hi there, I was trying to research on Google, but without the correct terminology I wasn't winning, so perhaps you guys can help point me in the right direction: I am hoping to set up a button that my users can click when they've added a new post to my site that would post a link on the websites Facebook page. Pointers would be greatly appreciated! Thanks
  6. .htaccess redirect

    Hi there, Just about to do some redirects and wanted to make sure I was doing it correctly... the old hosting domain old-domain.com, is going to be forwarding to the new hosting domain, new-domain.com. Would I write the rule as follows: Redirect 301 /page-name/ http://www.newdomain.com/page-name or would I have to include the old domain in front of the page name as well? Redirect 301 http://www.old-domain.com/page-name/ http://www.new-domain.com/page-name Thanks
  7. Placeholder for unloaded images

    Would this then display too large on anything smaller than desktop? Also am not sure I can do that as using a CMS (Drupal).
  8. Placeholder for unloaded images

    Hi there, I am hoping to achieve something like on the bbc website, where all images have a grey area of the correct dimensions so the page holds its structure before the images are loaded and doesn't 'pop' into shape. I would've thought this was fairly straightforward but when working responsively you can't simply set the width and height of the frame like you used to! How would I go about this? Thanks!
  9. Aligning divs within parent div

    Thanks for the help with this
  10. Aligning divs within parent div

    Ok no that didn't work. Maybe I will have to assign widths and then percentages on smaller browsers. I tried giving both 'display:inline-block' but it was having none of it. If anyone can think of a better solution, let me know. Thanks for the help though!
  11. Aligning divs within parent div

    Ah sweet thanks for this. I won't be able to use the witch values used here but perhaps only giving the right div a float will do the job... Will give it a go...
  12. Aligning divs within parent div

    Hi, Am sure this should be relatively straight forward, but have looked at it too long... I am trying to get 2 divs to sit next to each other within a parent container. The second div drops to the line below currently. I don't want to set a width on the parent container as the site is responsive. How would I achieve this correctly? Thanks in advance!
  13. Hi there, I'm dealing with some short pages and the footer needs to be able to extend to the base of the browser to look a bit tidier. I thought of using an :after with the same background: footer:after{position: absolute; bottom: -1000px; left: 0px; width: 100%; height: 1000px; content: ""; background:rgba(0,0,0,0.6); } This works for left and right of a div, but not below as page keeps scrolling to the 100px height! How can 'hide' the overflow of this after so it doesn;t keep trying to scroll its height? Hope that makes sense. Thanks
  14. Falling at the first hurdle

    ok I think I've found the issue. Thanks for your help niche