Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. O

    Flexbox layout question

    There may be some intricate way of doing this, but why waste time looking for it? If the four objects are the only thing on the row use two columns instead, otherwise, the wrapper is the way to go, Why complicate things?
  2. O

    OnClick On Text words Change Image

    Notice that we are getting errors on posts more and more. It has been hard to even log in recently.
  3. O

    OnClick On Text words Change Image

    JavaScript var elements = document.getElementsByClassName("image"); for (i=0; i<elements.length; i++){ elements.addEventListener("click", function () { var attr = this.getAttribute("id"); switch (attr) { case "card": document.getElementById("imageOne").src...
  4. O

    OnClick On Text words Change Image

    <div > <img id ="imageOne" src ="10.jpg"> <p> <span id="card"class="image">Cardiff </span> <span id="man" class="image">Manchester </span> <span id="both"class="image">Both </span> </p> </div>
  5. O

    OnClick On Text words Change Image

    There have been times and will be again when I write out solutions and not code, but you all have to agree that one line of code is better than a thousand words. So here is 52,000 words in a simple code fragment. And if you have questions which I know you will have, ask me here and I'll explain.
  6. O

    navigation color confusion

    When I hover over the menu items they change color and stay that color until I move off of them., so I cannot verify your problem. As for the mobile menu, I see nothing wrong. What is the problem there - {please state it in different terms.
  7. O

    flex-wrap not working on Squarespace site

    Hi missleattak, You should use the </> icon to enter the code. You should ask squarespace what they changed that broke your site. Your code should work btw. So give us a link to the site so we can look at the entire code, unless you want to post it here and save us time.
  8. O

    Column 6

    Your columns have this “valign:center;" in CSS and this does not exist. Think you want text-align:center;. Your use of /> and &nbsp tells me you're using old coding. Most importantly when I loaded your code into VSCoder I got a warrning message that illigal endig were being used. and I had a...
  9. O

    How to align table with other table components on same page

    In the BODY, have your logo div first then make two columns, side by side. Place the <div class="ao-text-header">Account Overview has a new look</div> You can view your retirement accounts below, or go back to the classic experience. </div> In the left column followed by the Welcome div and...
  10. O

    PHP Redirect On Database Connect Fail

    You might try the "set_error_handler" Or use the try - catch method. Never done them myself because I only had one DB and loss of it IS a fatal error and things should be shut down (in my case anyway).
  11. O

    How to align table with other table components on same page

    No. Why put this in that DIV? <div class="ao-text-header">Account Overview has a new look</div> You can view your retirement accounts below, or go back to the classic experience.
  12. O

    Help needed. How to make a fixed element not exted past the body max width

    My screen is over 2000px and I see nothing happening that looks bad when I stretch your page to those limits. The side column remains the same size and firmly up against the right side of the page. What do you see happening?
  13. O

    How to align table with other table components on same page

    The area you're asking about is in the DIV for the logo. Try separating these two things. I'd do this for you, but I do not understand the reasoning you are using.
  14. O

    Creating a Quiz/Trivia page

    I would use multiple selects in HTML to find the preferred quiz. And a database (mySql) to store the questions and answers for the different categories, PHP to mix them up, and maybe pick out just a couple of them. The job of JS would be to link the two together, paste the quiz to the HTML page...
  15. O

    JavaScript [SOLVED] Can anyone help me figure out why these specific EventListeners aren't working?

    For anyone else reading this, my comments dealt with the sloppy way the OP was coding. Using bad attributes (<p align="middle"...) and not correcting them leads me to think the programmer doesn't care. Wanting people to search hundreds of places because they use inline styling is also asking...
  16. O

    JavaScript [SOLVED] Can anyone help me figure out why these specific EventListeners aren't working?

    Before doing anything after coding, you should verify your code The W3C Markup Validation Service ie: "align" is not an attribute. Please stop using inline CSS, it just confuses the problem. Something is limiting the page height. Without going too deep into things, you have two listeners...
  17. O

    Answered Converting String to Number in JavaScript: Need Clarification and Code Example

    I have always used Number(). To convert a strig to a number and have never had any problrms.
  18. O

    JavaScript rename folders automatically when the pdf's inside have been seen

    How are you determining that the pdf was opened? Importantly, this line: if all_files_seen(files_in_folder): I don't see where all_files_seen is evaluated.
  19. O

    Using CSS classes in table

    Use text-align: center; on the <td> where the nested table appears.
  20. O

    Diving In with a Question about the <img>Tag

    Welcome :blush: :thumbsup:
Back
Top Bottom