Jump to content

Как выровнять заголовок для текста


Recommended Posts

Подскажите пожалуйста как выровнять заголовок для текста, вот пример как должно быть и как есть.

 

.offers {
	display: flex;

}


.offers h1 {

	margin-top: 74px ;
	font-size: 25px;
	text-transform: uppercase;
	line-height: 37px;

}

.offers p {
	font-family: Open Sans;
	font-size: 16px;
	line-height: 26px;
	text-align: justify;
}

 

 

<div class="abto">
			<h1>ABOUT THE EVENT</h1></div>

			<div class="offers">
			<h1>
				REBUILDING THE SOCIETY
			</h1>
				<p>
					Burning Man is a network of people inspired by the values reflected in the Ten Principles and united in the pursuit of a more creative and connected existence in the world. Throughout the year we work to build Black Rock City, home of the largest annual Burning Man gathering, and nurture the distinctive culture emerging from that experience. 
				</p>
					<h1>
						THIS DRIVES US
					</h1>
					<p>
						Burning Man Project will bring experiences to people in grand, awe-inspiring and joyful ways that lift the human spirit, address social problems, and inspire a sense of culture, community, and civic engagement. Burning Man provides infrastructural tools and frameworks to support local communities in applying the Ten Principles through six interconnected program areas, including Arts, Civic Involvement, Culture, Education, Philosophical Center, and Social Enterprise.
					</p>
					</div>
				</div>

 

do.png

posle.png

Link to post
Share on other sites
  • klierik changed the title to Как выровнять заголовок для текста
41 минуту назад, klierik сказал:

Здравствуйте.

Вам поможет https://webref.ru/css/flex-direction

С этим понял.

 

Теперь вопрос по картинке. как её по тексту выровнять? Не могу понять

.pic{
    display: box;
    margin-top: 84px;
    margin-right: 29px;
}

1182622d1601461828

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Member Statistics

    47,087
    Total Members
    1,451
    Most Online
    Mikhail30
    Newest Member
    Mikhail30
    Joined
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...