October 22, 2024
Chicago 12, Melborne City, USA
HTML

Creating a table using html. How to make the cells not move out?

I need to make a table like this in HTML. Tried to do a normal layout, but any time I try to fix something, the table moves away….. <style> table { border-collapse: collapse; width: 100%; } td, th { border: 1px solid black; padding: 8px; text-align: left; } </style> <table> <tbody> <tr> <td colspan="2" rowspan="2"></td>

Read More
HTML

MouseEvent behaves strangely when developer tool window is closed

I am developing a flask application with html and javascript for web interface. The application behaves strangely in Mouse events when developer tool is open the mouse press event happens at the position clicked but when closed the response is at a point different than the one clicked. I have removed console.log statements,still the behaviour

Read More
HTML

Is there a way to use css to style html elements to display full width across the page without putting text content into the elements?

I am wanting to display a page with no content that just visually displays the basic structure of a html page using semantic tags without actually putting in any text content (yet). The effect I’m looking for is a page that looks like this: Here is the html that I have written so far: <!DOCTYPE

Read More
HTML

taking up more space than it's children need

The structure looks like this <div class="logo-container"> <a href="" class="logo-link flex-row"> <img src="{{url_for('static', filename="logo.svg")}}" alt="logo.svg could not be loaded..."> <div class="adlam-display-regular">text</div> </a> </div> However, the .logo-link <a> is taking up way more space than it needs to… The text inside of it only takes up this much space: I’d like it for the link, or

Read More
HTML

Customizing Input Type Date Popup to Match Dark Theme

I’m currently developing a dark-themed website and have run into an issue with the <input type="date"> element. When I click on the date input, the date picker popup appears in a light theme, which disrupts the overall aesthetic of my site. I’ve tried several approaches, including CSS overrides. However, I still haven’t found a satisfactory

Read More
HTML

Is there a good way to have a navigation bar on a static site?

To have the same navigation bar on every page you can: use something like PHP or SHTML use a static site generator manually copy the navigation to every page use client-side JavaScript Are there any other ways? You need to sign in to view this answers

Read More
HTML

How to webscrape elements using beautifulsoup properly?

I am not from web scaping or website/html background and new to this field. Trying out scraping elements from this link that contains containers/cards. I have tried below code and find a little success but not sure how to do it properly to get just informative content without getting html/css elements in the results. from

Read More
HTML

Radio button not staying checked when I click another components

I wrote the code HTML like this: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"> <input class="add_task_radio" type="radio" name="prior" id="prior-2" value="2"> <label class="add_task_radio_icon" name="prior" for="prior-2" tabindex="1"> <i class="bi bi-check-circle text-light yellow"></i> <i class="bi bi-circle text-light yellow"></i> </label> <input class="add_task_radio" type="radio" name="prior" id="prior-2" value="2"> <label class="add_task_radio_icon" name="prior" for="prior-2" tabindex="1"> <i class="bi bi-check-circle text-light yellow"></i> <i class="bi bi-circle text-light yellow"></i> </label> <input

Read More
HTML

Navbar is hiding text when jumping to page content

I am currently working on a project to learn and am very new to this. I ran into this issue: When I use to jump to a header of the page, the title of that header is blocked by the navbar. In this example, when I click ‘Texas’, the title is hidden. How can I

Read More
HTML

File uploader works on computer but not mobile

I have coded into my website a file uploader and it works perfectly when used on the computer and a file is uploaded. But when i access the website on my iPhone i am not able to upload anything. The ability to pick what to upload appears but it doesn’t upload anything. Once the file

Read More