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

Allow administrator to reset WooCommerce product stock in the frontend

I am adding a button on products in shop page only when admin is connected. This button when pressed will reset product stock to zero (0). Sometimes it can be easier to clean out of stock products from website using products images than searching them with their sku. I made this code based on @LoicTheAztec

Read More
HTML

getting data from google tabs to html page

i´m new to html and creating pages, so i need help. i have this google form, where i put ingedience and stuff ((makeing a web for moms recepies)) and then it goes to the google sheets. i need to pull that infomations and put them on the page separating sweet recepies from salty ((it’s already

Read More
HTML

How to make shadcn table scrollable?

I encountered a problem. On official shadcn site, table is a scrollable on a small screens: Shadcn site I added table in my project, and on small screen i dont have scroll-bar, and all my layout shifts: My site My code: import { ScrollArea } from "@/components/ui/scroll-area"; import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead,

Read More
HTML

How do I resize a page to fit an iframe?

So I’m trying to make a website with html/css. There’s sidebars on the website I want to remain universal across pages so I don’t need to update every page whenever I change the sidebars, so I used iframe to import the sidebars on the pages. However, when the sidebars are taller than the page itself

Read More
HTML

Why do entire html components that are larger than the dimensions of my mobile device show up in chrome dev tools?

I am previewing my react app on chrome dev tools. I set the Dimensions to be 400 x 900. However, I am seeing the entirety of a component that I have which is of dimensions 600 x 6000 which makes no sense to me at all. How exactly is my screen showing a component bigger

Read More
HTML

jQuery selector for content without specific classname

This is my html markup: <ul class="list-unstyled mb-2"> <li class="mr-2 d-inline-block"> <p class="m-0"><i class="fas fa-birthday-cake mr-2" aria-hidden="true"></i>Age 26-34</p> </li> <li class="mr-2"> <p class="text-truncate m-0"><i class="fas fa-map-marker-alt mr-2"></i>City</p> </li> <li class="mr-2"> <p class="text-truncate m-0"><i class="fas fa-calendar-alt mr-2"></i>29.10.2024 - 29.10.2024</p> </li> <li class="mr-2"> <p class="m-0"><i class="fas fa-money-bill-alt mr-2"></i>50 USD</p> </li> </ul> Problem is that I dont know

Read More
HTML

Some of the Image on my webpage are shrinking, but other are not shring even with same properties

<div id="bodyDiv"> <div class="userSection" > <div class="headerTitle"><p>Player please choose:</p></div> <div class="headerDiv"> <div class="headerSubDiv"><img class="userAddOn" src="https://images.pexels.com/photos/20414000/pexels-photo-20414000/free-photo-of-gentoo-penguin-on-snow.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"></div> <div class="headerSubDiv"><img class="userAddOn" src="https://images.pexels.com/photos/20414000/pexels-photo-20414000/free-photo-of-gentoo-penguin-on-snow.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"></div> <div class="headerSubDiv"><img class="userAddOn" src="https://images.pexels.com/photos/20414000/pexels-photo-20414000/free-photo-of-gentoo-penguin-on-snow.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"></div> </div> </div> <div class="computerSection" > <div class="headerTitle"><p>Computer's choice:</p></div> <div class=" headerSubDiv"><img class="computerImg" src="https://images.pexels.com/photos/20414000/pexels-photo-20414000/free-photo-of-gentoo-penguin-on-snow.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2" ></div> </div> </div> .userSection{ text-align: center; display: flex; flex-direction: column; border-right: solid; border-color: black; border-width: 2px; padding: 0px 100px;

Read More