Homepage not responsive (Hydrogen Template) 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: 6
- Joined: Sat May 07, 2022 1:37 pm
Homepage not responsive (Hydrogen Template)
I've recently inherited ownership of a website and am having problems undoing years of tinkering, trying to fix an issue with the home page not being responsive on a mobile device. The home page consists of the header and footer which are reformatting ok, but the main content element (which is a list of 5 'featured' articles) is not.
My website is (cloaked url): https://tiny url.com/2x66n4e8
I've some experience with using the browser inspector but I can't seem to be able to find what is causing the default bootstrap/responsive code to be over-ridden. Can anyone suggest where to look for the over-rides, or what I can do to try and fix the issue please.
I was previously registered on here since 2010 but it's been so long since I asked for help I can't access my old account as I don't use the email I registered with originally, so I had to create a new one.
My website is (cloaked url): https://tiny url.com/2x66n4e8
I've some experience with using the browser inspector but I can't seem to be able to find what is causing the default bootstrap/responsive code to be over-ridden. Can anyone suggest where to look for the over-rides, or what I can do to try and fix the issue please.
I was previously registered on here since 2010 but it's been so long since I asked for help I can't access my old account as I don't use the email I registered with originally, so I had to create a new one.
You do not have the required permissions to view the files attached to this post.
- Webdongle
- Joomla! Master
- Posts: 44092
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Homepage not responsive (Hydrogen Template)
That link isn't working. Direct link please
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 6
- Joined: Sat May 07, 2022 1:37 pm
- Per Yngve Berg
- Joomla! Master
- Posts: 30930
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Homepage not responsive (Hydrogen Template)
You have tables that are not responsive. Replace with "div" elements and a grid.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Sat May 07, 2022 1:37 pm
Re: Homepage not responsive (Hydrogen Template)
I did that with the last table but it didn't make any difference. Also all the articles are left aligned when I am forcing them to be centered. Something is over-riding the article formatting.Per Yngve Berg wrote: ↑Sat May 07, 2022 5:43 pmYou have tables that are not responsive. Replace with "div" elements and a grid.
- Per Yngve Berg
- Joomla! Master
- Posts: 30930
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Homepage not responsive (Hydrogen Template)
The first table with the board members have a fixed width of 750px.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Sat May 07, 2022 1:37 pm
Re: Homepage not responsive (Hydrogen Template)
Thanks Per, I will fix that but I added some DIVs on the last table in a hope that I could scroll but it made no difference - here is my table code;
I ended up removing some columns so it displayed better.
Code: Select all
<html>
<h5>New and Renewed OC Members (4 wks)</h5>
<head>
<style>
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
border: 1px solid #ddd;
}
th, td {
text-align: left;
padding: 2px;
}
tr:nth-child(odd){background-color: #f2f2f2}
</style>
</head>
<body>
<div style="overflow-x:auto;">
<table>
<tr>
<th>Name</th>
<th>OC Region</th>
<th>Car</th>
</tr>
</table>
</div>
</body>
</html>
-
- Joomla! Apprentice
- Posts: 6
- Joined: Sat May 07, 2022 1:37 pm
Re: Homepage not responsive (Hydrogen Template)
OK, so after a bit more work, the articles / tables are now centering on the mobile view, but when I start increasing the browser size, the majority of them all suddenly left align?
- Webdongle
- Joomla! Master
- Posts: 44092
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Homepage not responsive (Hydrogen Template)
@media in a css file will show the css for different widths. A user.css should override the main css file if defined last in index.php. https://www.w3schools.com/css/css3_mediaqueries_ex.asp
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 6
- Joined: Sat May 07, 2022 1:37 pm
Re: Homepage not responsive (Hydrogen Template)
Awesome, all sorted!Webdongle wrote: ↑Sat May 07, 2022 6:58 pm@media in a css file will show the css for different widths. A user.css should override the main css file if defined last in index.php. https://www.w3schools.com/css/css3_mediaqueries_ex.asp
Thank you so much for the help you've given me today.
I really appreciate it!