Jump to content
  • 0

Выравнивание картинок в строку


Hum9k
 Share

Question

Собственно решил выбрать верстку своим хобби.

Изучил основы, почитал разные сайты, решил пробовать и натолкнулся на проблему решение которой я не смог найти к сожалению(

Проблема очень простая, прошу не смеяться. Надо выстроить все 3 картинки в ряд, по горизонтали, незнаю как это сделать, они получаются одна на другой.

<html xmlns="http://www.w3.org/1999/xhtml">
<link rel="stylesheet" type="text/css" href="Style.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Название</title>
</head>
<body>
<div class="head">
<div class="tablehead1"> </div>
<div class="tablehead2"> </div>
<div class="tablehead3"> </div>
</div>
</body>
</html>

CSS

 
body {
background: #CF0
}

.tablehead1 {
background-image:url(images/head1.gif);
display:block;
margin: auto;
height: 25px;
width: 20px;
}

.tablehead2 {
background-image:url(images/head2.gif);
margin: auto;
height: 25px;
width: 500px;
}

.tablehead3 {
background-image:url(images/head3.gif);
height: 25px;
margin: auto;
display:block;
width: 20px;
}

Edited by Hum9k
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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