Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 28-01-07
morleymouse's Avatar
Super Member
 
Join Date: Aug 2003
Location: Costa Del Sheffield
Posts: 2,752
Thanks: 3
Thanked 10 Times in 6 Posts
morleymouse is an unknown quantity at this point
  display: block - CSS block positioning

im trying to position two div's side by side but the default is one ontop of the other, can get around it with tables but looking to go all new age CSS stylee

css...

#divstyle { display: block; }

html...

<div id="divstyle">thing</div>
<div id="divstyle">other thing</div>

On the page is shows as

thing
other thing

where I want...

thing other thing

any help much appreciated (I imagine its something really easy)
__________________
Dan Morley
Alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-01-07
Registered User
 
Join Date: Jun 2006
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
IntervisionMedia is an unknown quantity at this point
  Re: display: block - CSS block positioning

HTML Code:
<style type="text/css">
   #left { float:left; width:100px; margin-right:10px; border:1px solid #000000;}
   #right { float:left; width:100px; border:1px solid #000000; }
   .clear { clear:both; }
</style>

<div id="left">left</div>
<div id="right">right</div>
<div class="clear"></div>
Back to normal.
That will stack the div's side by side, on one line. Then because the div's are floated they need to be cleared before going back to normal layout. Hope it helps.

Matt.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 28-01-07
morleymouse's Avatar
Super Member
 
Join Date: Aug 2003
Location: Costa Del Sheffield
Posts: 2,752
Thanks: 3
Thanked 10 Times in 6 Posts
morleymouse is an unknown quantity at this point
  Re: display: block - CSS block positioning

float! thats the one cheers Matt
__________________
Dan Morley
Alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions on CSS page layouts accelerator Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 4 14-11-06 03:34 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7