Jump to content
  • 0

Верстка на div'ax, смещение оных


dotslide
 Share

Question

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />            <title>Панель администратора</title><link rel="stylesheet" type="text/css" href="style.css" /></head><body>  <div id="container">                        <div id="header">Ш</div>                        <div id="navigation">                          <a href="#" class="knopka" tabindex="0">кнопка</a>                          <a href="#" class="knopka" tabindex="0">кнопка</a></div>                        <div id="menu">М</div>                        <div id="content">К                        </div>                        <div id="clear">                        </div>                        <div id="footer">П                        </div>            </div></body></html>

Есть код, так же style.css:

body {      background: #f3f2f3;      color: #000000;      font-family: Trebuchet MS, Arial, Times New Roman;      font-size: 12px;} #container {      background: #FFFFFF;      margin: 30px auto;      width: 900px;      height: 1000px;}#header {      background: #838283;      height: 200px;      width: 900px;} #navigation {      background: #a2a2a2;      width: 900px;      height: 20px;}#menu {      background: #333333;      float: left;      width: 200px;      height: 600px;} #content {      background: #d2d0d2;      float: right;      width: 700px;      height: 600px;} #clear {      clear:both;} #footer {      background: #838283;      height: 180px;      width: 900px;}a.knopka {  color: #fff;   text-decoration: none;  user-select: none;  background: rgb(212,75,56);   position: relative;  float:left;  border: solid;  border-width: 1px 1px 1px 1px;  padding: .2em 1.5em;   outline: none; /* убирать контур в Mozilla */} a.knopka:hover { background: rgb(232,95,76); } a.knopka:active { background: rgb(152,15,0); } 

Суть в том, что если делаю border у кнопок, то все сдвигается ) Как мне припилить в этот менюбар кнопки, чтобы div не смещались, задавать margin, или как?)

Link to comment
Share on other sites

3 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