Jump to content
  • 0

Как выровнять текст внутри div


fowl
 Share

Question

В коде ниже у меня не получается выровнять текст по левому краю, липнет к правому. Подскажите, как это сделать?

	<!--noindex-->
					<div style="background-color: #f8f8f8; margin: 10px 0 10px 0; text-align:left; " ><div style="  float: left; padding: 10px;"><img src="/wp-content/uploads/2018/02/1-2.png" />		</div>
						
                     <!--в div-е ниже нужно выровнять текст по левому краю--> 
                      <div style="  float: right; padding: 10px 20px 10px 10px; text-align:left; ">
						<p><a href="/testy" rel="nofollow">Хорошо ли вы знаете свои уши?</a></p>
						</div>		                     
						<div style=" clear: left;"></div>
					</div>
					<!--/noindex-->

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

https://jsfiddle.net/w7f88ypm/3/ 
Для наглядности ответа Switch74

И впредь, лучше все примеры кода выкладывайте через этот онлайн компилятор. Так всем удобнее будет.

Edited by Super_Saimon
Link to comment
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
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