Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About ishan_shah

  • Rank
  • Birthday 11/07/1995

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  • Interests
    HTML, CSS, JavaScript, C#

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, You should try the following CSS. I hope it will work for you. tr:before { content: "Text"; font-size: 0.5em; display: inline-block; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); }
  2. Hello @briansirbu, You should start with HTML then CSS after that you can go with the JavaScript and other required stuff for your site. You can refer to this link: https://www.w3schools.com/
  3. Hello @surajt, You can simply use the table. You can place both the images into two columns. This could be the easiest solution. Although you can set its height and width in such a manner that it could place horizontally in the same line. As <img> is an inline element.
  4. Hello @caleb1, You should use the pseudo-class to be more effective and attractive UI effects. kindly refer to the following link for more reference and understanding. https://www.w3schools.com/css/css_pseudo_classes.asp
  5. Hi @vitalnet, I have tried to code as per your requirement. Kindly check the same. Hope it will work for you. <html lang="en"> <head> <title>Bootstrap 4 Tooltip Persists, Looks Terrible</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h3>Bootstrap 4 Tooltip Persists, Looks Terrible</h3> <br> "Other button disabled" scenario works fine. <br> First, hover over buttons. Look at tooltips while hovering. <br> Then, click button A to disable button B. Works fine: <br> - Button B is disabled, and no tooltip. <br> - Tooltip still works correctly on button A. <br> <br> <button type="button" id="button_a" class="btn btn-primary" data-toggle="tooltip" data-trigger="hover" title="Disables Button B" onclick='change_button ("button_b", true);'> Button A </button> <button type="button" id="button_b" class="btn btn-primary" data-toggle="tooltip" data-trigger="hover" title="Disabled by Button A"> Button B </button> <br> <br> <hr> <br> "Same button disabled" scenario fails. <br> First, hover over Button C. Look at the tooltip. <br> Then, click button C to disable button C. Messes up: <br> - Button C is disabled, so that part is OK. <br> - But Button C tooltip persists, looks terrible. <br> <br> <button type="button" id="button_c" class="btn btn-primary" data-toggle="tooltip" data-trigger="hover" title="Disables Button C" onclick='change_button ("button_c", true);'> Button C </button> <button type="button" id="button_d" class="btn btn-primary" data-toggle="tooltip" data-trigger="hover" title="Enables Button C" onclick='change_button ("button_c", false);'> Button D </button> <br> <br> <hr> <br> So if a button is disabled while the cursor is hovering over it, the tooltip persists. <strong> Could you please explain how to make tooltip go away when Button C is disabled? </strong> I would prefer if tooltip went away when Button C disabled, since that is default behavior of bootstrap disabled buttons. And disabled button may later get enabled again, so I do not want to delete title attribute. Basically I want bootstrap to behave the same way as when Button B is disabled. I have looked around and cannot find how to fix this problem, and have tried various things, with no success. There are real instances where a button carries out an action, and then the button needs to be disabled, so I appreciate the help. Thanks </div> <script> $(document).ready(function () { $('[data-toggle="tooltip"]').tooltip(); }); function change_button(button_id, bool_val) { if (button_id === 'button_c') { $('[data-toggle="tooltip"]').tooltip('hide'); } var button_obj = document.getElementById(button_id); button_obj.disabled = bool_val; } </script> </body> </html>
  6. Hello @leela52452, dir attribute is used to set the direction of the text within an element in an HTML document. If you set it as an RTL then it will display HTML from right to left. It generally used when language is like Arabic etc. dir attribute is not a compulsory attribute so you can also skip this.
  7. Hello @Pygmalion, I prefer bootstrap. Because Bootstrap is the best framework for all kinds of modifications to existing dynamic code. Following is the link to learn bootstrap from basic to advance. Refer the same for the basic ideas. Bootstrap 4 Tutorial
  8. ishan_shah

    Universal selector

    Hello @smus, Simply you can use the element name separated by a comma as a selector in CSS. Following is the example of multiple tags as a single selector. E.x. h1, h2, h3 { color:orange; }
  9. GET method is used to retrieve the data from the database while to insert data into the database, the POST method is used.
  10. Hello @Yoni, You should use the latest version of Angular as it supports the latest features and new functionalities. Using AngularJs is not a good way to build a new application.
  11. Hi, You can use the <figcaption> tag to fulfill your requirements. For further reference, you can use the following link: https://www.w3schools.com/tags/tag_figcaption.asp
  12. Hello @BigDemond, Generally, when you use Bootstrap you should avoid the use of semantic elements. Bootstrap allows you to use its default class to implement the functionality you want. So, as per my opinion, you should avoid the use of semantic HTML.
  13. Hi @ughhope, I have tried to code as per your requirement. I think you should try this once. <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .container { position: relative; width: 50%; } .image { display: block; width: 100%; height: auto; } .overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: .5s ease; background-color: #008CBA; } .container:hover .overlay { opacity: 1; } .text { color: white; font-size: 20px; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); text-align: center; } </style> </head> <body> <h2>Fade in Overlay</h2> <p>Hover over the image to see the effect.</p> <div class="container"> <img src="https://www.roadtestreviews.com/wp-content/uploads/2014/11/mustang-batcave-017.jpg" alt="Avatar" class="image"> <a href="https://www.google.com/" class="overlay"></a> </div> </body> </html> I hope it will work as per your requirements. I have also added an anchor tag for your second query.
  14. Hello @smeeks87, I have tried your code and also I have made some changes in your code in <style>. I am attaching the file after solving your issue. Kindly check it. Thank You. 2123815979_holman-bmw-ft-lauderdale-accordion-x7-page_v3nocarousel (1).html
  15. Hi @Slevin, According to me you should try following code. It will work as per your requirement. You just have to add following item into your CSS. justify-items: center;
  • Create New...