The paragraph text stretches out the padding which doesn't look right. I'm trying to figure out how to keep the left and right margins of the paragraph text with the QR code image.
Gabriel Nassimbeni
@gabprojectsAll comments
- @breteoSubmitted over 1 year ago@gabprojectsPosted over 1 year ago
In my qr code, a padding on "imgBox" and a side margin on "p1" worked fine.
1 - @jessieguinnSubmitted over 1 year ago
Any advice on getting it centered in the middle of the page?
@gabprojectsPosted over 1 year agoI'll give you a general tip to help you:
Create an account on this site:
https://chat.openai.com/
Then start asking your questions to the AI
An example question and answer:
Question:
How can I center html elements in the center of the page?
AI Response:
To center HTML elements on a webpage, you can use CSS to apply different techniques depending on the context and the type of element you want to center. Here are a few common methods to center elements both horizontally and vertically:
Using Flexbox: Flexbox is a CSS layout model that simplifies centering elements both horizontally and vertically.
HTML:
<div class="container"> <div class="centered-element">
</div> </div><!-- Your content here -->
CSS:
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Adjust as needed */
}
0