Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MikeP

Members
  • Joined

  • Last visited

  1. MikeP changed their profile photo
  2. MikeP posted a topic in Frontend
    Hey Guys, I'm building a website right now but I'm a bit stuck. I have a drop down selector at the top and I want the currency on the website to change per the visitors selection at the top. So if they choose USD, the currency throughout the site/page changes to content provided for USD etc, if that makes sense? Any help would be appreciated. Thanks, Mike
  3. I'm just concerned about the extension, not so much the code. I know that any kind of coding is done in html unless variables are passed in php etc. Obviously apart from ASP etc. Just really trying to make my site stand out to the search engines so just checking, double and triple checking before I lock on something.
  4. Are there any issues in using php rather than html? I always thought search engines penalised php files. Thanks.
  5. I'm just worried about SEO and page speed is all. For some reason recently, I've got very interested in page speed and SEO etc so... Thanks.
  6. Looks good but then requires extra code and CSS, which I'm trying to cut down on haha. Which would you say is best? HTML version or PHP version? Right now, I'm spoofing php and .html's with the .htaccess, don't see why people say it's bad... Thanks.
  7. The following works a treat; <div id="menu"> <ul> <li><a href="index1.html" <?php if ($thisPage=="home") echo " class=\"current\""; ?>>Home</a></li> <li><a href="cloud-shared-hosting.html" <?php if ($thisPage=="shared") echo " class=\"current\""; ?>>Cloud Shared</a></li> <li><a href="cloud-reseller-hosting.html" <?php if ($thisPage=="reseller") echo " class=\"current\""; ?>>Cloud Reseller</a></li> <li><a href="cloud-virtual-private-servers.html" <?php if ($thisPage=="vps") echo " class=\"current\""; ?>>Cloud VPS</a></li> <li><a href="dedicated-servers.html" <?php if ($thisPage=="dedicated") echo " class=\"current\""; ?>>Dedicated</a></li> <li><a href="about-us.html" <?php if ($thisPage=="about") echo " class=\"current\""; ?>>About Us</a></li> <li style="margin-right:0;"><a href="contact-us.html" <?php if ($thisPage=="contact") echo " class=\"current\""; ?>>Contact Us</a></li> </ul> </div>
  8. As you can see here, direct for the pages source; <div id="menu"> <ul> <li><a href="index1.html">Home</a></li> <li id="current"><a href="cloud-shared-hosting.html">Cloud Shared</a></li> <li><a href="cloud-reseller-hosting.html">Cloud Reseller</a></li> <li><a href="cloud-virtual-private-servers.html">Cloud VPS</a></li> <li><a href="dedicated-servers.html">Dedicated</a></li> <li><a href="about-us.html">About Us</a></li> <li style="margin-right:0;"><a href="contact-us.html">Contact Us</a></li> </ul> </div> So it's showing to pick up the current class, it just isn't...
  9. OK so the menu works, but the class isn't... It's not showing the current class on the active page... Any ideas? Thanks.
  10. Great, thanks very much. Can that "<?php $thisPage="Contact us"; ?>" be put in a .html file or does it have to be .php? Thanks.
  11. That's helpful so far, but what logic? haha I'm not sure of the code as to how I'd accomplish such a thing... Thanks.
  12. The main file is .html and coded in html, the include file would be whatever it needs to be... So the code above would be put in the include file and then the include file would be included in the place of the code in the main page. If that makes sense.
  13. Hello, I'm really struggling to figure something out and I'd greatly appreciate it if someone can help me. I'm wanting to include the following code so that the menu stays the same consistently across all pages; <div id="menu"> <ul> <li><a href="index1.html" class="current">Home</a></li> <li><a href="cloud-shared-hosting.html">Cloud Shared</a></li> <li><a href="cloud-reseller-hosting.html">Cloud Reseller</a></li> <li><a href="cloud-virtual-private-servers.html">Cloud VPS</a></li> <li><a href="dedicated-servers.html">Dedicated</a></li> <li><a href="about-us.html">About Us</a></li> <li style="margin-right:0;"><a href="contact-us.html">Contact Us</a></li> </ul> </div> As you can see, there is a class on the Home (index1.html) line of code. If I just put this in the include file, it would then make all pages look like they're using the Home menu with the current class. The current class just makes it bold out like seen on many websites. How can I get this class="current" to switch to the active page? I hope this makes sense... I want the include file for consistency but I also want the active page to show the current class. Thanks.
  14. I don't have enough experience to build my own website/portfolio so I'm stuck to using a CMS. Can anyone recommend a CMS for this use, preferably free, and a theme to go with it? Thanks in advance!
  15. OK, I've managed to get them next to each other using a parent table with two cells. I've given the code for you to see. <table width="100%" cellpadding="5" cellspacing="0"> <tr> <td><table width="100%" cellpadding="5" cellspacing="0"> <tr> <td><div class="cltitle"> </div></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </td> <td> <table width="100%" cellpadding="5" cellspacing="0"> <tr> <td><div class="cltitle"> </div></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table></td> </tr> </table> Right now, I need to be able to size the tables correctly and make a space between them but I'm not sure how... I need table one on the left of the page and table two on the right side of the page. The cells are currently oversized and the two different contents in table two are too far away from each other. Can anyone help?
  16. It's just how the content was provided to me. It's not my own. I can paste the code how it is if that will help anyone with how I can move them next to each other.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.