text stringlengths 0 106k |
|---|
</head> |
<body> |
<div class="container d-flex flex-column align-items-center vh-100"> |
<div class="input-container"> |
<label for="prompt" class="form-label">Prompt</label> |
<textarea id="prompt" class="form-control mb-3" rows="1" placeholder="Type a prompt..."></textarea> |
</div> |
<div class="input-container"> |
<label for="negative-prompt" class="form-label">Negative Prompt</label> |
<textarea id="negative-prompt" class="form-control mb-3" rows="1" placeholder="Type a negative prompt..."></textarea> |
</div> |
<div class="input-container"> |
<label for="provider" class="form-label">Provider</label> |
<select id="provider" class="form-control mb-3"></select> |
</div> |
<div class="input-container"> |
<label for="model" class="form-label">Model</label> |
<select id="model" class="form-control mb-3"></select> |
</div> |
<div class="input-container"> |
<label for="style" class="form-label">Style</label> |
<select id="style" class="form-control mb-3"></select> |
</div> |
<div class="input-container"> |
<label for="ratio" class="form-label">Aspect Ratio</label> |
<select id="ratio" class="form-control mb-3"></select> |
</div> |
<button class="btn btn-primary mt-auto">Submit</button> |
</div> |
<!--Bootstrap JS--> |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> |
<!--Custom JS--> |
<script src="script.js"></script> |
</body> |
</html> |
I wnt a input field with label Number of Images, but i want it to have up and down buttons at the right, to increase or decrese value(1 to 4) |
[AI]: You can achieve this by using an `input` field of type `number`. Here is the HTML code to add this field to your form: |
```html |
<div class="input-container"> |
<label for="num-images" class="form-label">Number of Images</label> |
<input type="number" id="num-images" class="form-control mb-3" min="1" max="4" value="1"> |
</div> |
``` |
This code creates a new input field with up and down buttons at the right. The `min` and `max` attributes define the minimum and maximum values that can be selected. The `value` attribute sets the initial value of the field. It will look and feel like your other form fields due to the `form-control` class. |
[USER]: <!DOCTYPE html> |
<html lang="en"> |
<head> |
<meta charset="UTF-8"> |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
<title>AI Image Generator</title> |
<!--Bootstrap CSS--> |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> |
<!--Custom CSS--> |
<link rel="stylesheet" href="style.css"> |
</head> |
<body> |
<div class="container d-flex flex-column align-items-center vh-100"> |
<div class="input-container"> |
<label for="prompt" class="form-label">Prompt</label> |
<textarea id="prompt" class="form-control mb-3" rows="1" placeholder="Type a prompt..."></textarea> |
</div> |
<div class="input-container"> |
<label for="negative-prompt" class="form-label">Negative Prompt</label> |
<textarea id="negative-prompt" class="form-control mb-3" rows="1" placeholder="Type a negative prompt..."></textarea> |
</div> |
<div class="input-container"> |
<label for="provider" class="form-label">Provider</label> |
<select id="provider" class="form-control mb-3"></select> |
</div> |
<div class="input-container"> |
<label for="model" class="form-label">Model</label> |
<select id="model" class="form-control mb-3"></select> |
</div> |
<div class="input-container"> |
<label for="style" class="form-label">Style</label> |
<select id="style" class="form-control mb-3"></select> |
</div> |
<div class="input-container"> |
<label for="ratio" class="form-label">Aspect Ratio</label> |
<select id="ratio" class="form-control mb-3"></select> |
<div class="input-container"> |
<label for="num-images" class="form-label">Number of Images</label> |
<input type="number" id="num-images" class="form-control mb-3" min="1" max="4" value="4"> |
</div> |
</div> |
<button class="btn btn-primary mt-auto">Submit</button> |
</div> |
<!--Bootstrap JS--> |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> |
<!--Custom JS--> |
<script src="script.js"></script> |
</body> |
</html> |
body { |
background: #f8f9fa; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.