Jump to content

Funce

Moderator
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by Funce

  1. Hi there,

    Welcome to the forums!

    In future if you're going to posting code, you may want to use the Forum's code block feature. That allows us to read it easier.

    XcQfW3F.png

     

    Now onto your question, there isn't anything too tricky. I'll see if I can lead you to a solution.

    • In HTML5, <a> tags can hold any other element except another interactive tag like another <a> tag or <button>
    • <a> tags provide a click behaviour that navigates to the page noted in its own href attribute.

    Are you able to proceed?

  2. The 12 column grid is quite flexible.

    I'd recommend even columns, but you want 5, so perhaps you can try your 2-3-2-3-2 method.

    <div class="w3-row">
      <div class="w3-col s2"><img src="img_lights.jpg"></div>
      <div class="w3-col s3"><img src="img_nature.jpg"></div>
      <div class="w3-col s2"><img src="img_snowtops.jpg"></div>
      <div class="w3-col s3"><img src="img_lights.jpg"></div>
      <div class="w3-col s2"><img src="img_nature.jpg"></div>
    </div>

     

  3. Hi there,

    Welcome to the forums! You're code's run into a little problem, with the forum's in built formatter.

    Please make sure to use codeblocks for your code lest this continue to happen.

    XcQfW3F.png

     

    Now in regards to your problem, it lies in your tablinks. None of your items that you've created are getting selected to start off with. Here's the example code:

    <div class="tab">
      <button class="tablinks" onclick="openCity(event, 'London')" id="defaultOpen">London</button>
      <button class="tablinks" onclick="openCity(event, 'Paris')">Paris</button>
      <button class="tablinks" onclick="openCity(event, 'Tokyo')">Tokyo</button>
    </div>

    Are you able to work it out from here?

  4. Hi there,

    So first off, your results! You say they're incomplete and don't understand why, that's cool. But what are the results you wanted? What did you end up getting? What data is in your database? If you can mock up a database entry, and give us your expected output, and actual output, we might be able to get somewhere.

  5. I took a day to think on this, and I think there might be a larger design issue here. Regardless of what's wrong, I need to know what you've tried before. Provide the code that wasn't working if possible please. And try using a code block, so you don't run out of attachment space.

    XcQfW3F.png

  6. Hi there,

    Welcome to the forums!

    In the example you've placed here, the HTML document doesn't actually cover "the whole page" if you're referring to the browser window. The only part that fills up is the body.

    You might be able to apply some combination of these styles so that it does fill in the browser window.

    html {
       margin: 0px;
       height: 100%;
       width: 100%;
    }
    
    body {
       margin: 0px;
       min-height: 100%;
       width: 100%;
    }

     

  7. Hi there Melford,

    I've just had a look through, and I'm not completely sure what you'd like to do here. You'd like to change your item list with Item name, number etc and change into... what exactly? the promotional and seasonal? Do you want to recreate the table in that grid css format?

    What's been the issue so far? What have you tried?

  8. While you find a way to make an example out of your code, here are some tutorials you could follow for the effects you requrie.

    In the meantime you may want to have a look at the following tutorials:

    If you have any more questions, please let me know. In thread please.

    • Like 1
  9. Without the code I can't directly advise, however you should be able to use a click handler on those buttons, change the clicked button to blue (either apply class or direct style), and then display another one of those buttons where you'd like them to appear. The last one would be a lot more dependent on how it all works to begin with.

     

    • Like 1
  10. 16 hours ago, Ingolme said:

    Right, blame the fox.

    Oh no, Ingolme!!!

    7 hours ago, Steven1 said:

    I just tried in Chrome and it works but Firefox reports an error. This is weird that this is browser independent. Mind= blown.

    It seems to be an interesting behaviour of window.getComputedStyle() and getPropertyValue("text-decoration")

    Its important to note, that the exercise checks for the existence of none inside this property value.

    On Firefox, when you've defined the text-decoration as none it actually removes the text-decoration-line(default: underline) and text-decoration-style(solid) keywords from the text-decoration property value. So you're only left with the text-decoration-color. Hence the process fails.

    On Chrome, text-decoration is property that seems to be directly combined from text-decoration-linetext-decoration-style, and text-decoration-color. Hence none exists, the process succeeds, and the question is marked correct.

    If the question checked for text-decoration-line instead of generic text-decoration, this question would no longer be an issue.

    I agree, this is very interesting stuff!

    • Like 1
  11. You specify that last week it was happening, is it not happening any more?

    I haven't seen anything, which pages were you looking at?

    All of the ads on w3schools are GoogleAds. If you run into malicious advertising you'll need to report the ad itself in the top right hand corner of it. 

  12. You need to add some styling to the row class so that it has the spacing it requires.

    If you add margin-bottom: 5px to your declaration, it should space alright, and you can adjust that figure to your needs.

  13. This SQL is filtering by CustomerName of Around the horn, equivalenting to a CustomerID of 4. This is not the same as an employeeID.

    IF you look closely at the returned set, you'll find that the two records have an employeeID of 6 and 8 respectively.

    CustomerID CustomerName ContactName Address City PostalCode Country OrderID EmployeeID OrderDate ShipperID
    4 Around the Horn Thomas Hardy 120 Hanover Sq. London WA1 1DP UK 10355 6 1996-11-15 1
    4 Around the Horn Thomas Hardy 120 Hanover Sq. London WA1 1DP UK 10383 8 1996-12-16 3
  14. Hi there, welcome to the forums!

    As it stands, your question can't really help us determine what's wrong apart from downloading a random file.

    It would help if you did the following

    • Tell us in your post what you're trying to do.
      • Are you seeing an error? Or looking for one. What makes you think its an error, if you can't find it?
    • Tell us what you're expecting
    • Give us a snippet of code using the code block feature to show what's actually happening.

    XcQfW3F.png

×
×
  • Create New...