CSS/HTML (non-JS) Carousel button issue

Discussion in 'HTML & Website Design' started by davidGates, Jun 20, 2024.

  1. #1
    I have been trying to create a non-JS (CSS/HTML) carousel but am having difficulty with button placement and getting the style uniform across browsers.

    The original code is here: https://codepen.io/maheshambure21/pen/qZZrxy

    I would like supplant with the following example which works in both Safari and Firefox:
    https://moderncss.dev/pure-css-custom-styled-radio-buttons/

    My code is here:
    https://codepen.io/Hedde2/pen/abrYyVZ
    you may need to adjust the height of the window to see the buttons

    Not only that but I would like the buttons to be a part of the carousel container so that it is easier to centralise the carousel in a desktop browser window.
     
    davidGates, Jun 20, 2024 IP
  2. davidGates

    davidGates Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    I also looked into hacking a swipe option (again, no Javascript) with the following example, but it was too complicated for me to reverse engineer:

    https://www.codepel.com/carousel/css-carousel-slider-without-javascript
     
    davidGates, Jun 20, 2024 IP
  3. Ashtyn Rogahn

    Ashtyn Rogahn Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    try to ask chatGPT
     
    Ashtyn Rogahn, Aug 23, 2024 IP