Answer the question
In order to leave comments, you need to log in
What is the difference between the process of layout under ModX and a site without CMS?
I apologize in advance for the stupid question. I'm just new to this stuff. I often see orders to make up some kind of menu element on the site under ModX or another CMS. How will this differ from simple layout?
Answer the question
In order to leave comments, you need to log in
In the case of MODX, nesting of the menu is important, and it is natural that it be a ul list.
The first element has the class first
, and the active element is active
.
Page content elements should be typed without classes, but through inheritance, i.e.:
.content img { float: left; margin-right: 1em }
.content blockquote { font-size: 2em }
<div class="partners">
<div><a href="#"><img src="i/partner1.png" alt="partner"></a></div>
<div><a href="#"><img src="i/partner2.png" alt="partner"></a></div>
<div><a href="#"><img src="i/partner3.png" alt="partner"></a></div>
<div><a href="#"><img src="i/partner4.png" alt="partner"></a></div>
<div><a href="#"><img src="i/partner5.png" alt="partner"></a></div>
</div>
<section class="partners">
<ul>
<li><a href="#"><img src="i/partner1.png" alt="partner"></a></li>
<li><a href="#"><img src="i/partner2.png" alt="partner"></a></li>
<li><a href="#"><img src="i/partner3.png" alt="partner"></a></li>
<li><a href="#"><img src="i/partner4.png" alt="partner"></a></li>
<li><a href="#"><img src="i/partner5.png" alt="partner"></a></li>
</ul>
</section>
Specifically, in the case of MODX, there are no restrictions.
MODX "hawks" any layout.
But if you make the menu purely on the ul > li > a
A active item, ul > li.acvie > a
you will get + into karma in the next life.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question