css

  1. SpongeBOB

    CSS set Child DIV same width and height as parent ?

    Hi everyone, is it possible with CSS only, to set width & height of a child DIV from his parent div --> I got <div id="Flex" style="display:flex;flex-wrap:wrap;justify-content: space-around"> <div id="A"> <div id="B"><img></div> </div> </div> so A is a Flex items and get...
  2. L

    Carousel slider doesn't work

    Hello, I just followed a videotutorial on how to build a carousel slider. Once I was done i tried it out, but it didn't work. Nothing happens when I click on the words left/right. I looked trough the whole code, but couldn't find any mistakes. I thought that maybe someone here could look an...
  3. nil14

    css justify content issue

    hi everyone , I'm trying to create a portfolio website and I can't put space between the list in the picture , I tried everything but I don't know what did I do wrong . code : GitHub - naex96/portfolio-website
  4. fusion

    HTML CSS Flux. Trying to get 2 items per row

    Morning all, I have been struggling with getting my flex to show 2 items per row on a desktop scree. I have searched the internet and tried to use flex-basis: 1 with min-width: 0, flex-basis: 50% and so many other things I have found online but none of it has worked. Thanks in advancewd to...
  5. Y

    HTML & CSS Empty div has width and height in % but does not appear

    Hi All, I have just bumped into this case while i am doing a freecodecamp challenge. In the freecodecamp editor the div showed per given % but when i tried to do the same in VSC i did not get the same result, so i created a little example. Could you please tell me how it works as it works with...
  6. timeolethug

    PHP how to make a mysql database on replit?

    Hello everyone, with a friend we make a dynamic website and for collaborate, we make it on replit.com, because we don't find how to create a database in this website. Did you know how to make it? (sorry for the spelling, i'm french) Thank you and good evening.
  7. John Weiss

    HTML & CSS Clicking Hidden Radio Button

    Trying to click a hidden radio button, but it's making the image go all wonky. How to fix? Everything seems normal until you click. Then the image remains wonky even after you move the mouse pointer away. The img-clip div constrains the size of the image. The radio-button click area is meant to...
  8. Idle Commander - The Dev

    JavaScript Why is this not working [edit]

    I'm making an online free web game and I got to the point where I don't know how to fix a particular bug. What I'm confused about is that the thing I'm building works perfectly when you perform it the normal way but If you go on a quest in my game and fight a monster it breaks. If you want a...
  9. Idle Commander - The Dev

    JavaScript Why is this not working?

    I'm making an online free web game and I got to the point where I don't know how to fix a particular bug. What I'm confused about is that the thing I'm building works perfectly when you perform it the normal way but If you go on a quest in my game and fight a monster it breaks. If you want a...
  10. W

    CSSZengarden Sticky Earth Animation

    Hello everyone! I am having trouble with a webpage of mine I want to submit to www.CSSZengarden.com. I am trying to get the spinning earth's animation position to be sticky so that it scrolls up or down with the page. I had it at one point, however, in my attempt to figure out how I did it, I...
  11. Kiyoshi99

    JavaScript Simple CSS/JS Tabs

    Hi, Im trying to use the following simple Tabs: https://jsfiddle.net/yw32rLuf/ Unfortunately, these tabs do not work for me, since they crash sometimes. Is there another way to achieve Tabs like these? Fix my Code so that it does not crash? Or even rewrite it completely to achieve this...
  12. R

    How to animate an interactive mind map?

    Hey all Im a beginner with html/css but I am trying to create an interactive mind map and I'm not really sure where to begin with javascript for this something like the first link but the blue circles would only reveal on hover of the center orange circle. also Ideally some sort of animation...
  13. Idle Commander - The Dev

    JavaScript Why is my first test good then my second goes bonkers

    I have this battle game and the first time you click battle it goes really smooth and well and does everything needed but once I clicked the button again there is supposed to be a 3-4 second gap between all the attacks to each other but it does something like this (1 _ is a second an "at" is an...
  14. A

    HTML & CSS Set printer settings to print label

    Hi, Where i have mistake? I try set print friendly page to print label. It's work when i edit printer settings before print. How i can set this from this page? <style type="text/css"> body { margin: 0; padding: 0; background-color: #FAFAFA; font: 8pt "Arial"...
  15. S

    Applying change from Firefox inspector to css

    Sorry if this isn't the place for what is probably a very beginner question, but here goes: I'm trying to remove a sidebar panel from a (Confluence wiki) page but am struggling to find out how to apply a change I can make from Firefox Inspector to the css. This is the code I'd like to change...
  16. Idle Commander - The Dev

    JavaScript My code is not working

    Go to this link (there is too much code to paste). Gem Hunt 2 (inspect the page for HTML and css). and go to the quests tab and click on Fred the crafter speed through the obviously correct ones then when you get to “ALright I have unlocked it for you go craft a stoen furnace and come back.” and...
  17. OhNoItsA8

    JavaScript Smoother JS Sprite Movement

    I'm in the process of making a simple, 2D racing game. I have some code that works to move the car with the arrows, but it isn't very smooth. Once it gets to the end of the page, it scrolls as the car moves, and it's very shaky to the point where it hurts to watch. If you want to see what I...
  18. Idle Commander - The Dev

    Why is my background not fully covering my span?

    Why is my background not covering the whole span element? You can inspect the element here Gem Hunt 2. image1139×327 40.6 KB The span that covers the picture and text and the background are red and black gradients. The span has a class of tablinks. The circled thing is the background and it's...
  19. T

    HTML & CSS Text does not display correctly with my css code, it should show background under text

    Using the h1, h2, and h3 with the following info in css (a,b and c) (titlte1, title2 and title3). I am not sure if I have done it correct in css, need help to find out what I an doing wrong html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%...
Top Bottom