Jump to content

ben03

Members
  • Content count

    84
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ben03

  • Rank
    Newbie

Contact Methods

  • Website URL
    http://www.jab-ride.co.uk
  • ICQ
    0

Profile Information

  • Interests
    Mountain Biking, Web design.
  1. Hide/Show if elements are checked in forms

    Ah great, I can see this now thanks dsonesuk for your help!
  2. Hi there, I am trying to only allow a 'next' button to show if a form element is selected. For some reason I am only succeeding to hide the button, and not reveal when the radio button is selected. I am sure it should be relatively simple... The code: .ampwizard .button {opacity: 0;} input[type="radio"]:checked .ampwizard .button{opacity: 1;} <div class="ampwizard"><input type="submit" class="button" name="install-next" value="Next" /></div> Help appreciated with thanks!
  3. Rule being ignored

    Hi there, My htaccess is ignoring one of the rules I have put in! I don't imagine I am blameless here, so am hoping someone can point out what I have done wrong and how to fix it. The lines in bold (forwarding the non www request to the address with the www) seems to be failing. I tried re-ordering the rules, but no joy as yet. If someone could help me as to what needs amending here I would be really appreciative. Thanks! <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^oldsite.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.oldsite.co.uk$ RewriteRule (.*)$ http://www.newsite.co.uk/$1 [R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC] RewriteCond %{HTTP_HOST} ^newsite.co.uk$ RewriteRule (.*) http://www.newsite.co.uk/$1 [R=301] Redirect 301 /oldpage http://www.newsite.co.uk
  4. 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
  5. 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
  6. 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
  7. 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.
  8. 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
  9. .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
  10. 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).
  11. 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!
  12. Aligning divs within parent div

    Thanks for the help with this
  13. 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!
  14. 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...
×