• 16-02-2022, 17:59:29
    #1
    Aşağıdaki kod parçacığını kullanarak sağ altta 200x200 sabit bir resim tutuyorum sayfamda. Ama resimin köşesinde X kapatma tulu olup basanın kapatabilmesini istiyorum yardımcı olur musunuz ?

    <style>
    #sabit
    {
    z-index:9999;
    position:fixed;
    _position:absolute;
    bottom:50px;
    right:0px;
    clip:rect(0 100 85 0);
    _top:expression(document.documentElement.scrollTop +document.documentElement.clientHeight-this.clientHeight);
    _left:expression(document.documentElement.scrollLe ft + document.documentElement.clientWidth - offsetWidth);
    }
    </style>
    
    
    
    <div id="sabit" >
    
    
    
    <a href=""><img src="resim.gif" alt="" border="0" width="200px" height="200px" /></a>
    
    </div>
  • 16-02-2022, 18:28:43
    #2
    border-radius ?
  • 19-02-2022, 17:33:55
    #3
    şu şekilde yapabilirsin temel olarak yaptın dilediğin gibi değişiklik yapabilirsin.
    <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
          #sabit {
            z-index: 9999;
            position: relative;
            right: 0px;
            clip: rect(0 100 85 0);
          }
          .xClosed {
            position: absolute;
            top: 0;
            left: 0;
            cursor: pointer;
            padding: 5px 7px;
            font-weight: bold;
            background-color: bisque;
            margin: 0;
            border-radius: 50%;
            text-align: center;
          }
        </style>
      </head>
      <body>
        <div id="sabit">
          <a
            href="https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/5eeea355389655.59822ff824b72.gif"
            ><img
              src="https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/5eeea355389655.59822ff824b72.gif"
              alt=""
              width="200px"
              height="200px"
          /></a>
          <p class="xClosed">X</p>
        </div>
        <script>
          let x = document.querySelector(".xClosed");
          x.onclick = (e) => {
            document.getElementById("sabit").style.display = "none";
          };
        </script>
      </body>
    </html>
    [COLOR=#D9DAE9][FONT=consolas]
    [/FONT][/COLOR]