Search
Other Articles Anywhere questions
Forum

How to manage responsive

TooNet Creation's Avatar TooNet Creation
Hi,

I'm using articles anywhere to display articles and works fine.

From computer look fine : prnt.sc/26d5ad2
But from mobile responsive does not work : prnt.sc/26d5alk

here is my code added inside the joomla article, what's wrong?

Many thanks
<style>
	.cols-3 {
		display: flex;
		flex-direction: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}

	@media (max-width: 767px) {
		.cols-3 {
			flex-direction: column !important;
		}
	}
</style>
<p>&nbsp;</p>
<p>{articles category="Agendas" ordering="commence-le ASC, title ASC" limit="3"}</p>
<p>{if first}</p>
<div class="cols-3">
	<p>{/if}</p>
	<div class="MY_CLASS panel">
		<p>[image-main-blog render_class="MY_CLASS"]</p>
		<h2 class="media-heading">[title]</h2>
		<p>[commence-le format="d-m-Y" render_class="MY_CLASS"]</p>
		<p>[readmore text="Voir" class="MY_CLASS"]</p>
	</div>
	<p>{if last}</p>
</div>
<p>{/if}</p>
<p>{/articles}</p>
<p>&nbsp;</p>
<p style="text-align: center;"><a href="MY_LINK" target="_self" class="MY_CLASS" dir="ltr">See all details</a></p>
Peter van Westen's Avatar Peter van Westen ADMIN
Articles Anywhere does not control how your template and CSS handle the display of elements.
That is down to, well, your template and CSS and classnames.

Check your HTML output if Articles Anywhere is outputting the data in the correct HTML syntax (correct HTML elements and such).
If so, then Articles Anywhere is doing what it should and can.

For questions about what HTML elements and CSS classes to use to achieve what you want, I recommend you ask your template developer.
Please post a rating at the Joomla! Extensions Directory
TooNet Creation's Avatar TooNet Creation
hi,

the problem is : the code provided on my last message works fine on my template but not when using articles anywhere.
so I can ask template developer, no problem, but this behavior is weird.
Peter van Westen's Avatar Peter van Westen ADMIN
Check your HTML output if Articles Anywhere is outputting the data in the correct HTML syntax (correct HTML elements and such).
Please post a rating at the Joomla! Extensions Directory
TooNet Creation's Avatar TooNet Creation
for info problem solved with this code :
@media screen and (max-width: 768px) and (min-width: 320px) {
.box-evenements-accueil {
    padding: 10px;
}
  .cols-3 {
    display: initial !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
}
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription