How to create responsible web for Samsung S24+ when the innerWidth is same regardless of orientation #41117
Replies: 1 comment 1 reply
-
Hello @MartinKosicky If you want a specific rendering for this device, you could adjust by having orientation media queries (for portrait or landscape): @media (orientation: landscape) {
.my-class {
/* Custom styles for landscape mode */
}
}
@media (orientation: portrait) {
.my-class {
/* Custom styles for portrait mode */
}
} or add custom breakpoints, something like: @media (max-width: 1002px) {
.my-class {
/* Override styles for narrow landscape widths */
}
} |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Describe the issue
I have a samsung s24+. The innerWidth X innerHeight is on portrait 1017x1871. When i rotate to landscape the resolution is 1002x409. All my rules always hit the col-lg.
So the question is , is bootstrap built to work for mobiles or I am missing something
Reduced test cases
this is all
What operating system(s) are you seeing the problem on?
Android
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.3
Beta Was this translation helpful? Give feedback.
All reactions