Jump to content
  • 0

Маштабирование макета


Евгений_SB
 Share

Question

Ребят помогите разобраться, не пойму где ошибка,есть макет в котором верхнее меню ведет себя как надо при сужении окна браузера а текстовый блок уезжает за его границы,никак не могу найти ошибку в коде

код html

<div class="slide-title">
				<div class="info">
					<h1>our strong <br> organaisation</h1>
					<span>Lorem ipsum dolor sit amet, consectetur adipis cing elit, sed do eiusmod tempor incididunt  ut labore et. ectetur adig ipis cing elit, sed do eiusmod tempor incididunt.</span>
					<button>Contact us</button>
				</div>

код css

.slide-title {
	display: block;
	position: relative;
	max-width: 1250px;
	margin: 0 auto;
	top: 100px;
	
}

.info {
	display: block;
	position: relative;
	float: left;
	max-width: 500px;
}
.info h1 {
	display: block;
	position: relative;
	max-width: 500px;
	min-width: 70px;
	
	color: #1c1c1c;
	text-transform: uppercase;
	font: bold 55px 'OpenSans-Bold', sans-serif;
		
}

.info span {
	display: block;
	position: relative;
	float: none;
	max-width: 500px;
	top: 40px;
	color: #6f6d6d;
	font: bold 12px 'OpenSans-Bold', sans-serif;
}

 

рис 1.png

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
Answer this question...

×   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.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy