Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE DREAMWEAVER:HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Re: Floating Div inside Div

COW Forums : Adobe Dreamweaver

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread



cowcowcowcowcow
Fernando MolRe: Floating Div inside Div
by on Dec 12, 2009 at 12:19:36 am

Look at this layout:

<h1 class="clearfloat">first two columns</h1>
<div class="column"><p>one</p><p>two</p></div>
<div class="column"><p>first</p><p>second</p></div>

<h1 class="clearfloat">second two columns</h1>
<div class="column"><p>one</p><p>two</p></div>
<div class="column"><p>first</p><p>second</p></div>


Using this CSS should give you a two column layout.

<style type="text/css">
<!--
.clearfloat {
clear:both;
}
.column {
float: left;
width: 200px;
}
-->
</style>


*Always share a link to your site and rate the posts. This is a free service for you and for us.


Posts IndexRead Thread
Reply   Like  
+1
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]