Tablet rotation distorts logo in header Topic is solved
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Tablet rotation distorts logo in header
I have recently migrated from 3 to 4. I like it. My template called Flex looks nice, but when I rotate to portrait mode on an iPad tablet, the header logo image gets distorted and it is stretched horizontally across to meet the hamburger menu. Same distortion on smartphone. I tested in Chrome and Safari. Same distortion of the brand logo graphic.
Last edited by toivo on Thu Jun 01, 2023 4:02 am, edited 1 time in total.
Reason: mod note: moved from 4.x General Questions
Reason: mod note: moved from 4.x General Questions
- Pavel-ww
- Joomla! Ace
- Posts: 1628
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Tablet rotation distorts logo in header
Hi. Explore this through the dev tools of your browser and make adjustments to CSS
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: Tablet rotation distorts logo in header
Hmmmm. I wish I wasn’t such a newbie so that I could dev the css. But I’m a newb.
- Pavel-ww
- Joomla! Ace
- Posts: 1628
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Tablet rotation distorts logo in header
Hi. In this case, always provide a link to your site. Nobody has a magic ball here to see your problemmikewitherell wrote: ↑Thu Jun 01, 2023 6:08 pmHmmmm. I wish I wasn’t such a newbie so that I could dev the css. But I’m a newb.
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: Tablet rotation distorts logo in header
trainingonsite.com
- Pavel-ww
- Joomla! Ace
- Posts: 1628
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Tablet rotation distorts logo in header
Try this code
Code: Select all
@media (max-width: 991.98px) {
#sp-logo .sp-default-logo,
#sp-logo .sp-retina-logo {
width: inherit;
}
}
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: Tablet rotation distorts logo in header
Thank you for the CSS code, Pavel.
Would you also give me a hint where to paste this code? I have never done that before.
Would you also give me a hint where to paste this code? I have never done that before.
- Pavel-ww
- Joomla! Ace
- Posts: 1628
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Tablet rotation distorts logo in header
Hi. Add it to custom.css file. Your template is based on Helix 3. Read Helix 3 documentation about custom.css filemikewitherell wrote: ↑Sun Jun 04, 2023 3:39 pmThank you for the CSS code, Pavel.
Would you also give me a hint where to paste this code? I have never done that before.
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: Tablet rotation distorts logo in header
Thank you Pavel! That works fine. I pasted your css code into the 3rd box labeled Custom CSS. I am new to J4 and had not seen that tab before. Easier than J3. Why the highly-specific number 991.98px?
- Pavel-ww
- Joomla! Ace
- Posts: 1628
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Tablet rotation distorts logo in header
Hi. For accurate operation on high -resolution devices. It is bootstrap 5 breakpoint. https://getbootstrap.com/docs/5.2/layout/breakpoints/
Your site uses bootstrap
-
- Joomla! Apprentice
- Posts: 22
- Joined: Mon Mar 14, 2022 4:52 pm
Re: Tablet rotation distorts logo in header
Fascinating! Thanks for the interesting reading and for the CSS code!
- Pavel-ww
- Joomla! Ace
- Posts: 1628
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Tablet rotation distorts logo in header
You are welcome