Jump to content
  • 0

верстка дивами


voin545
 Share

Question

столкнулся с проблемой что дивы выстраиваются в столбик подскажите как это исправить

так сейчас

http://savepic.su/1869221.htm

надо

http://savepic.su/1864101.htm

html

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="index.css">
<title>главная</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>

<div class="vse">
</div>
<div class="knopki">
<div class="asdf"> <a href="index.html">На главную</a></div>
<div class="asdf"> <a href="bet.html">Бетон</a></div>
<div class="asdf"> <a href="ft.html">Фотоальбом</a></div>
<div class="asdf"> <a href="pr.html">Прайс лист</a></div>
<div class="asdf"> <a href="dg.html">Договор</a></div>
<div class="asdf"> <a href="kt.html">Контакты</a></div>
</div>

css

.knopki
{
background-color: #66ccff;
height : 50px ;
width : 100% ;
margin-top: 30% ;
box-shadow: 0 0 5px 5px gray;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
opacity: 0.8;
}

.asdf
{
font-family: Comic Sans MS ;
text-decoration: none;
text-align: center;
margin: 5% ;
background-color : #0099ff ;
height: 100% ;
width: 10% ;
box-shadow: 0 0 5px 5px gray;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
opacity: 0.8;
}
.qwert
{
font-family: Comic Sans MS ;
text-decoration: none;
text-align: center;
margin: 20% ;
background-color : #0099ff ;
height: 100% ;
width: 10% ;
box-shadow: 0 0 5px 5px gray;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
opacity: 0.8;
}

Link to comment
Share on other sites

7 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