okej, ale teraz cały ten h2, jets na stronie za bardzo w prawo
- User
okej, ale teraz cały ten h2, jets na stronie za bardzo w prawo
Assistant
Aby wyśrodkować nagłówek h2, możemy dodać odpowiednie klasy Tailwind CSS. Oto poprawiona wersja:
<h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4 text-center mx-auto max-w-3xl"> Premium PDF Resources for Your <span class="word-rotation"> <span>Success</span> <span>Productivity</span> <span>Growth</span> </span> </h2>Dodałem następujące klasy:
text-center- wyśrodkowuje tekstmx-auto- dodaje automatyczne marginesy po bokachmax-w-3xl- ogranicza maksymalną szerokość (możesz dostosować wartość według potrzeb)
CSS dla animacji pozostaje bez zmian. Te modyfikacje powinny wycentrować cały nagłówek na stronie.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.