DJR
KPCKevin Powell - Community
β’Created by DJR on 8/7/2024 in #os-and-tools
MySQL Workbench Alternatives
Thank you so much for that. π
12 replies
KPCKevin Powell - Community
β’Created by DJR on 8/7/2024 in #os-and-tools
MySQL Workbench Alternatives
Could you elaborate a little on what quirks it has?
12 replies
KPCKevin Powell - Community
β’Created by DJR on 8/7/2024 in #os-and-tools
MySQL Workbench Alternatives
Nope I haven't heard of it until now. I'll check it out. π
12 replies
KPCKevin Powell - Community
β’Created by zed7 on 10/28/2023 in #front-end
How to check the screen size laptop like 14inch
Hi @zed7,
The physical size of the display isn't what controls how things look on a webpage. You need to obtain the viewport width for this purpose. You can have a 14" laptop with a 1920 x 1080 resolution and a 24" monitor with the same resolution. Your webpage will look the same on both.
At the top of the screen you can see two numbers: 1024 and 814. This is the viewport in pixels, with the first number being width and the second being height. You will mostly be wanting the width, but there are instances where knowing the height can be important.
1366 x 768 is a very common laptop resolution, as is 1920 x 1080. You can edit the two numbers with these values to see how your design will appear at those resolutions (or any other). Also be sure to set the zoom level to 100%.
CSS media queries are used to control the appearance of a webpage based on a viewport width/height. Simply put your CSS inside a media query like this (the indentation is just for legibility):
For any viewport with a pixel width up to 1,919 pixels, the background color of the webpage will be blue. At 1,920 pixels, it becomes green.
2 replies
KPCKevin Powell - Community
β’Created by Ezsean on 7/13/2023 in #front-end
Grid Questions
1) I'm assuming you're referring to Bootstrap. The number 12 was chosen because it has the most amount of multiples compared with any other number around it. It's not strictly necessary, and it might not even fit your layout if the design is incompatible.
2) With
grid-template-columns
, you should ideally use fr
or %
. If you want a specified number of equal-width columns, you can also use repeat(n, 1fr)
, where n
is the number of columns and 1fr
is their equal width.
On a side note, fr
and %
are somewhat relatable units as they both work as fractions of a whole number. For example, for a 60/40 layout, you can do 60% 40%
or 3fr 2fr
.
Also, if you're going to use grid-gap
, you will want to use fr
to deal with the overflow.2 replies
KPCKevin Powell - Community
β’Created by keyohh on 7/10/2023 in #front-end
Trying to understand how i could have known this
arr.push()
works because you're associating the first parameter arr
with an array when you run the function with testArr
used as the substitute for the first parameter.6 replies
KPCKevin Powell - Community
β’Created by keyohh on 7/10/2023 in #front-end
Trying to understand how i could have known this
is there any way i could have known βarrβ was linked to βtestArrβ?The function accepts (and expects) two arguments,
arr
and item
.
When you call the function, you include both of these arguments. As the first argument given is the array testArr
, that will be used to substitute for arr
. 6
is substituted for item
.6 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
Goodnight!
38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
Nearly π But my body can't do it like it used to lmao
38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
I'm going to head off to bed now. Been awake for 21 hours so I'm surprised that I've been any help at all. π€£
38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
No problem, happy to help. π
38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
π
38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
You can play around with
max-width
on the .container
class if you want to achieve your design exactly. Otherwise it looks very close to it.38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
Oh I see, my bad. π
38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
Adding
width: 100%;
onto your .two-img
class should fix the image size issues.38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
It turns out that
justify-items
is the one you want.38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
justify-content/justify-items: center;
must be either justify-content: center;
or justify-items: center;
on your .container
and .content
classes.38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
Ah I see why
38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
Do you have an updated CodePen to share?
38 replies
KPCKevin Powell - Community
β’Created by snxxwyy on 7/8/2023 in #front-end
Grid layout combinations
The element will need to be of
display: grid
type. Since everything appears to be centered you could try applying it to the main container itself.38 replies