Answer the question
In order to leave comments, you need to log in
How to make different pages on DLE?
Imagine that you have a page design.
- main page
- other pages
The difference is only in the header of the site.
1) On the main page , for example, a header 300px high with one background , logo, search form, profile.
2) On other pages , a header, for example , 100px high with a different background , logo, etc. is in place.
How to make everything work correctly? To change only the hat?
So far I only had an idea with the tag: available main. Are there any other options?
Answer the question
In order to leave comments, you need to log in
So far I only had an idea with the tag: available main. Are there any other options?
<header class="header[available="main"] header--main[/available]">header</header>
<style>
.header { height: 100px; }
.header--main { height: 300px; }
</style>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question