Html 页脚中带有div标记的Float-drop

Html 页脚中带有div标记的Float-drop,html,css,Html,Css,我试图在另外两个div(即3列)之后,在页脚的右侧浮动一个div,并希望它们水平排列,但我右侧浮动的div一直下降到左侧2的下方。有人能帮忙吗 这是密码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"

我试图在另外两个div(即3列)之后,在页脚的右侧浮动一个div,并希望它们水平排列,但我右侧浮动的div一直下降到左侧2的下方。有人能帮忙吗

这是密码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>K Blondel Design :: Carpentry &amp; Funiture Design :: Brighton</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="oneColFixCtr.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Abel|Cutive+Mono|Nothing+You+Could+Do' rel='stylesheet' type='text/css'>
</head>

<body>

<div class="container">
<div class="subcontainer">


<div class="header">

<div id="mainNav">

  <ul id="mainNav">
  <li><a href="#" id="homelink" target="_self">Home</a></li>
  <li><a href="#" id="aboutuslink" target="_self">About Us</a></li>
  <li><a href="#" id="ourworklink" target="_self">Our Work </a></li>
  <li><a href="#" id="contactuslink" target="_self">Contact Us </a></li>
  </ul>
</div>
 <div class="contact">
E : click here
  <br />
  T : 07585 607521 
</div>
</div>


<div class="lineborder">
</div>

      <div class="sidebar-logo"><img src="Images/k-blondel-design-logo.png" width="64" height="108" alt="K Blondel Design logo" />
    </div>

      <div id="contentright">

      <div class="galleryimg"><div class="photo"><img src="Images/winebar-furniture-01.jpg" width="145" height="200" alt="Winchester winebar" /></div></div>

      <div class="galleryimg"><div class="photo"><img src="Images/wooden-outdoor-seating.jpg" width="145" height="200" alt="Winchester winebar" /></div></div>

      <div class="galleryimg"><div class="photo"><img src="Images/wooden-shelving.jpg" width="145" height="200" alt="Winchester winebar" /></div></div>

      <div class="galleryimg"><div class="photo"><img src="Images/wooden-winerack.jpg" width="145" height="200" alt="Winchester winebar" /></div></div>


      </div> 


  <div id="content">
    <h1>Instructions    </h1>
    <p>At K Blondel Design we aim to fill the gap between the over exuberant furniture maker and the general carpenter. Trained in the art of creating affordable and elegant solutions to 3D problems.</p>
    <p>As a small business we are able to deliver a personal one to one design service, talking through various design and material possibilities and arriving at an affordable, bespoke and stylish solution.</p>
    <p>From design through to construction and installation we specialise in storage solutions, furniture and interiors for both the domestic and commercial markets. </p>
    <p>Based in Brighton we have 20 years' design and commercial experience and an ever-growing client list spanning Sussex, Hampshire, London and Kent.</p>

    <p>
      <!-- end .content --></p>
  </div>


     <div class="lineborder"></div>

    <div id="footer">


    <div class="footercolleft">
      <a href="#">Carpentry</a><br/>
        <a href="#">Furniture Design</a><br/>
        <a href="#">Interior Design &amp; Decoration</a>
</div>
    <div class="footercolright">
      <a href="#">Storage Solutions</a><br/>
        <a href="#">Decking &amp; Wooden Flooring</a><br/>
        <a href="#">Shop Fitting / Commercial Interiors</a>
</div>

   <div class="footercoladdress">
      Copyright © 2014 Kevin Blondel Design<br />1 Park Terrace, Brighton BN1 0GT
</div> 
</div>
  <!-- end .subcontainer --></div>



  <!-- end .container --></div>
</body>
</html>

K.布隆德尔设计:木工;功能设计:布莱顿
E:点击这里
电话:07585607521 说明书 在K Blondel Design,我们的目标是填补过度繁荣的家具制造商和普通木匠之间的差距。在为3D问题创建价格合理且优雅的解决方案方面接受过培训

作为一家小型企业,我们能够提供个人一对一的设计服务,讨论各种设计和材料的可能性,并达成一个价格合理、定制和时尚的解决方案

从设计到施工和安装,我们专注于国内和商业市场的存储解决方案、家具和内饰

我们在布莱顿拥有20年的设计和商业经验,客户名单不断扩大,覆盖苏塞克斯、汉普郡、伦敦和肯特郡





版权所有©2014 Kevin Blondel Design
布莱顿公园露台1号BN1 0GT
这是css

@charset "UTF-8";

body {
    font: 100%/1.4;
    background-color:#FFF;
    margin: 0;
    padding: 0;
    color: #000;
}

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
    padding: 0;
    margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;   /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
    padding-right: 10px;
    padding-left: 40px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
}

h1 {
    font-family: 'Abel', Arial, sans-serif;
    font-size:24px;
    font-weight: normal;    
}

h2 {
    font-family: 'Abel', Arial, sans-serif;
    font-size:18px;
}

p {
    font-family: 'Cutive Mono', Georgia, serif;
    font-size:13px;
    line-height:1.4em;
    font-weight:600;

}

#home #homelink,
#aboutus #aboutuslink,
#ourwork #ourworklink,
#contactus #contactuslink {
    font-family: 'Abel', Arial, sans-serif;
    color: #494949;
    font-size:17px;
    text-decoration:none;
    border-bottom: solid 6px #494949;
}

#mainNav {
    margin: 0;
    padding: 0;
    list-style: none;
}

#mainNav li {
    float: left;
    padding: 50px 14px 0 14px;
}

#mainNav a {
    font-family: 'Abel', Arial, sans-serif;
    color: #494949;
    font-size:17px;
    text-decoration:none;
    padding: 0 20px 0 20px;
}

#mainNav a:hover {
    color:#FFF;
    background-color: #494949;
}

img {
    border: none;
}

a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
    border: none;
}
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
    color: #494949;
    text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
    color: #494949;
    text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
    text-decoration: none;
}

/* ~~ this fixed width container surrounds all other elements ~~ */
.container {
    width: 1352px;
    background-image:url(Images/sktchbook-bgd.jpg);
    background-repeat:no-repeat;
    margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
}

.header {
    width: 950px;
    height: 72px;
    margin-left:90px;
    margin-right: 90px;
}

.header img{
    border:none;
}

.lineborder {
    width: 950px;
    background-color:#494949;
    height: 1px;
    margin-left:110px;
    margin-right:110px;
}

.contact {
    float: right;
    padding: 27px 0 0 0;
    font-family: 'Abel', Arial, sans-serif;
    color: #494949;
    font-size:17px;
}

.sidebar-logo {
    float: left;
    width: 70px;
}

.subcontainer {
    width: 1150px;
    min-height: 880px;
    margin: 0 auto;
 /* the auto value on the sides, coupled with the width, centers the layout */
}

/* ~~ This is the layout information. ~~ 

1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.

*/
#content {

    padding: 40px 0;
    width: 420px;
    margin-left:90px;
    margin-right:90px;
    min-height:475px;
}

#contentright {
    float: right;
    padding: 40px 0;
    width: 420px;
    margin-right:90px;

}

.galleryimg {
    display: inline-block;
    vertical-align: top;
    margin: 0 40px 30px 0;
}

.photo {
    -moz-box-shadow: 2px 2px 2px 0px #888;
-webkit-box-shadow: 2px 2px 2px 0px #888;
box-shadow: 2px 2px 2px 0px #888;
}

.photo img {
    border: 10px solid #fff;
    background-color: #fff;
    position: relative;
}

/* ~~ miscellaneous float/clear classes ~~ */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
    float: left;
    margin-right: 8px;
}
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the overflow:hidden on the .container is removed */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}

#footer {
    padding: 10px 0 0 20px;
    width: 950px;
    height: 150px;
    margin-left:90px;
    margin-right: 90px;
    font-family: 'Abel', Arial, sans-serif;
    color: #494949;
    font-size:14px;
    line-height: 1.5em;
}

#footer a {
    text-decoration:none;
    padding: 0 5px 0 5px;
}

#footer a:hover {
    color:#FFF;
    background-color: #494949;
}

.footercolleft {
    padding: 0;
    margin: 0;
    float: left;
    width: 200px;
    overflow:hidden;
}

.footercolright {
    padding: 0;
    width: 200px;
    overflow:hidden;
}

.footercoladdress {
    float:right;
    padding: 0 5px 0 5px;
    text-align: right;
    width:250px;
}
@charset“UTF-8”;
身体{
字体:100%/1.4;
背景色:#FFF;
保证金:0;
填充:0;
颜色:#000;
}
/*~~元素/标记选择器~~*/
ul、ol、dl{/*由于浏览器之间的差异,最好的做法是在列表上设置零填充和边距。为了保持一致性,您可以在此处指定所需的数量,也可以在列表项(LI、DT、DD)中指定所包含的数量。请记住,除非您编写了更具体的选择器,否则您在此处执行的操作将级联到.nav列表*/
填充:0;
保证金:0;
}
h1,h2,h3,h4,h5,h6,p{
页边距顶部:0;/*删除顶部页边距可以避免页边距可以从其包含的div中溢出的问题。剩余的底部页边距将使其远离后面的任何元素*/
右边填充:10px;
左填充:40px;/*将填充添加到div中元素的侧面,而不是div本身,可以消除任何框模型数学。带侧面填充的嵌套div也可以用作替代方法*/
}
h1{
字体系列:“Abel”,Arial,无衬线;
字体大小:24px;
字体大小:正常;
}
氢{
字体系列:“Abel”,Arial,无衬线;
字号:18px;
}
p{
字体系列:“Cutive Mono”,佐治亚州,衬线;
字体大小:13px;
线高:1.4em;
字号:600;
}
#主页#主页链接,
#aboutus#AboutLink,
#我们的工作#我们的工作链接,
#contactus#contactuslink{
字体系列:“Abel”,Arial,无衬线;
颜色:#494949;
字号:17px;
文字装饰:无;
边框底部:实心6px#4949;
}
#主导航{
保证金:0;
填充:0;
列表样式:无;
}
#李美娜{
浮动:左;
填充:50px 14px 0 14px;
}
#主导航a{
字体系列:“Abel”,Arial,无衬线;
颜色:#494949;
字号:17px;
文字装饰:无;
填充:0 20px 0 20px;
}
#主导航a:悬停{
颜色:#FFF;
背景色:#494949;
}
img{
边界:无;
}
img{/*当图像被链接包围时,此选择器将删除某些浏览器中显示的图像周围的默认蓝色边框*/
边界:无;
}
/*~~站点链接的样式必须保持此顺序-包括创建悬停效果的选择器组。~~*/
a:链接{
颜色:#494949;
文本装饰:下划线;/*除非您将链接的样式设置为非常独特,否则最好提供下划线,以便快速进行视觉识别*/
}
a:参观了{
颜色:#494949;
文字装饰:下划线;
}
a:hover,a:active,a:focus{/*这组选择器将为键盘导航器提供与使用鼠标的人相同的悬停体验*/
文字装饰:无;
}
/*~~这个固定宽度的容器包围了所有其他元素~~*/
.集装箱{
宽度:1352px;
背景图片:url(Images/sktchbookbgd.jpg);
背景重复:无重复;
边距:0自动;/*侧面的自动值与宽度一起使布局居中*/
}
.标题{
宽度:950px;
高度:72px;
左边距:90像素;
右边距:90像素;
}
.标题img{
边界:无;
}
.lineborder{
宽度:950px;
背景色:#494949;
高度:1px;
左边距:110像素;
右边距:110px;
}
.联系方式{
浮动:对;
填充:27px0;
字体系列:“Abel”,Arial,无衬线;
颜色:#494949;
字号:17px;
}
.侧边栏标志{
浮动:左;
宽度:70px;
}
.分包商{
宽度:1150px;
最小高度:880px;
保证金:0自动;
/*侧面的“自动”值与宽度一起使布局居中*/
}
/*~~这是布局信息。~~
1) 填充仅放置在div的顶部和/或底部。此div中的元素在其侧面具有填充。这可以避免任何“盒子模型数学”。请记住,如果向div本身添加任何边距或边框,它将添加到定义的宽度中,以创建*总*宽度。您也可以选择删除div中元素上的填充,并在其中放置第二个div,该div没有设计所需的宽度和填充。
*/
#内容{
填充:40px0;
宽度:420px;
左边距:90像素;
右边距:90像素;
最小高度:475px;
}
#内容权{
浮动:对;
填充:40px0;
宽度:420px;
右边距:90像素;
}
galleryimg先生{
显示:内联块;
垂直对齐:顶部;
利润率:0.40px 30 px 0;
}
.照片{
-moz盒阴影:2px2px0px#888;
-网络工具包盒阴影:2px2px0px#888;
沙盒
<div id="footer">
    <div class="footercolleft">
        <a href="#">Carpentry</a><br/>
        <a href="#">Furniture Design</a><br/>
        <a href="#">Interior Design &amp; Decoration</a>
    </div>
    <div class="footercoladdress">
        Copyright © 2014 Kevin Blondel Design<br />1 Park Terrace, Brighton BN1 0GT
    </div> 
    <div class="footercolright">
        <a href="#">Storage Solutions</a><br/>
        <a href="#">Decking &amp; Wooden Flooring</a><br/>
        <a href="#">Shop Fitting / Commercial Interiors</a>
    </div>   
</div>