Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 10/28/2020 in Posts

  1. Create a custom.css file. place your css code in there, and place link to that! below w3.css link, is the best option. Anything that exists in w3.ccs will be overridden by the same css in custom.css file, CSS = cascading style sheet. If you two identical selectors .selector { color: red;} .selector { color: blue;} The last one will always take precedence over previous. The same will happen if these were placed separately in css files, the selector in the css file link below previous will take precedence.
    1 point
  2. .w3-display-container { overflow: hidden; } .w3-display-container img { max-width: 100%; max-height: 100%; height: 100%; width: 100%; object-fit: cover; } But! your img containers are not! fixed width! or height!
    1 point
  3. The W3c god says your html, css is invalid and not to to his standards, so unless you produce valid coding, he says to cast your code out! until properly validated. For who is to say that, this! is the reason you are troubled by failure. Sayeth W3c the true lord of all things web, please read link https://www.w3.org/standards/webdesign/htmlcss
    1 point
  4. I suggest using the object-fit Property https://www.w3schools.com/css/css3_object-fit.asp div{width:390px;height:280px; overflow:hidden; /*background-color: #ccc; */} div img {max-width: 100%;max-height:100%; height:100%;width: 100%; object-fit: cover; } https://www.w3schools.com/code/tryit.asp?filename=GKO6RUZSK2W5
    1 point
  5. is that's what do you mean https://www.w3schools.com/html/tryit.asp?filename=tryhtml_images_background7
    1 point
  6. 1 point
  7. Hi Hema, Ah thank you so much! This is EXACTLY what I was looking for. I really appreciate your time, helpfulness and speed of response to help me today. Thank you. Kind regards, Mike
    1 point
  8. Because i still didn't get what do you mean well, could you take a look at the link below, and tell me whether is has what you're looking for or not https://www.w3schools.com/html/html_images_picture.asp
    1 point
  9. You can use it like this: window.open('https://www.w3schools.com', '_blank');
    1 point
  10. The more general solution would be to have a string containing the name of the method and use the square brackets notation to access it. var methodName = "toUpperCase"; var str = "Hello World!"; var result = str[methodName](); This solution only works with methods that don't take arguments, of course.
    1 point
  11. Use window.open() to open a URL in a new tab.
    1 point
  12. Kindly send an email to lava_0208@hotmail.com
    1 point
  13. Self Employed or working for someone else?
    1 point
  14. Hi All! I'm the coding projects manager at [link removed] and I'm very thrilled with W3Schools' latest developments. These signed-in learning paths and forums are great! I'm from New York, and Ruby on Rails is what I/we code with the most. But I'm excited to be learning more here at W3Schools. If any of you are interested, we have a bustling and supportive coding community at [link removed] --- we are the world's first not-for-profit social media community, where we help our members worldwide DIVE for their big BREAKs in life. I hope you'll come check it out--not only are we always
    1 point
×
×
  • Create New...