gpt-4-0314· OpenAI
WildChat-4.8M (AI2)
Fivem Scripting I'm working on a NUI HTML <div id="inventory-window"> <table…
- User
Fivem Scripting I'm working on a NUI
HTML
I want to make it so its formatted so its got a light grey box around the rows and then inventory slot
- Assistant
To achieve this, you can modify the CSS of your existing code. First, you can add a light grey box around the rows by adding a new class for the table rows and defining the background color and border.
.inventory-row { background-color: #f2f2f2; border: 1px solid #cccccc; }Now, you can add this class to each row of items in your HTML code:
<tr class="inventory-itembar inventory-row">Next, you can style the inventory slots by adding the following CSS:
.inventoryslot { border: 1px solid #999999; padding: 10px; background-color: #ffffff; }This will give the inventory slots a light grey border and a white background.
After applying these changes, your inventory should be formatted according to your requirements.