473,323 Members | 1,589 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

div positioning--Am I in a tables mindset? What am I doing wrong?

Why am I having so much trouble positioning
divs? Am I in a tables mindset here?

Why doesn't content flow below or alongside where it is suppose to?

I created the example below to give you some
idea of what I mean. Please keep in mind, content is within the
specified width and may be images or text. For some reason
it just seems to have a mind of its own and always wants to
go to the next line and to the left.
#leftcol {width: 150px; float: left;}
#middlecol
#rightcol {width: 150px; float: right;}
#divLeftTopofStack
#divLeftMiddleofStack
#divLeftBottomofStack
#divMiddleTopLeft
#divMiddleTopRight
#divMiddleBottomLeft
#divMiddleBottomRight
..clear {clear: both;}
....etc

body

<div id="leftcol">
<div id="divLeftTopofStack">some content</div>
<div id="divLeftMiddleofStack">some content</div>
<div id="divLeftBottomofStack">some content</div>
<div>
<div class="clear"></div>
<div id=middlecol">
<div id="divMiddleTopLeft">some content</div>
<div id="divMiddleTopRight>some content</div></br>
<div id="divMiddleBottomLeft">some content</div>
<div id="divMiddleBottomRight">some content</div>
</div>

I think you get the idea
Jul 21 '05 #1
1 1833
no*********@nowhere.com wrote:
Why am I having so much trouble positioning
divs? Am I in a tables mindset here?

Why doesn't content flow below or alongside where it is suppose to?

I created the example below to give you some
idea of what I mean. Please keep in mind, content is within the
specified width and may be images or text. For some reason
it just seems to have a mind of its own and always wants to
go to the next line and to the left.
#leftcol {width: 150px; float: left;}
#middlecol
#rightcol {width: 150px; float: right;}
#divLeftTopofStack
#divLeftMiddleofStack
#divLeftBottomofStack
#divMiddleTopLeft
#divMiddleTopRight
#divMiddleBottomLeft
#divMiddleBottomRight
.clear {clear: both;}
...etc

body

<div id="leftcol">
<div id="divLeftTopofStack">some content</div>
<div id="divLeftMiddleofStack">some content</div>
<div id="divLeftBottomofStack">some content</div>
<div>
<div class="clear"></div>
<div id=middlecol">
<div id="divMiddleTopLeft">some content</div>
<div id="divMiddleTopRight>some content</div></br>
<div id="divMiddleBottomLeft">some content</div>
<div id="divMiddleBottomRight">some content</div>
</div>

I think you get the idea

at this moment you have 2 more open divs than closeing /divs
better you would privide an url !
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Graham Mattingley | last post by:
I am trying to count the records in a database, and make an array from the answer this is the code strQuery = "SELECT count(*) FROM resort where island_id= '"&island_drop&"' ;" Set...
2
by: vbMark | last post by:
When I call the below code what I get returned is the string "System.Data.DataRow" I don't understand how this works. What am I doing wrong? private string GetData(string strQuery) {...
2
by: Aaron Ackerman | last post by:
I cannot a row to this bound DataGrid to SAVE MY LIFE! I have tried everything and I am at a loss. The using goes into add mode with the add button adds his data then updates with the update...
1
by: Shapper | last post by:
Hello, I am trying to create a dataset by adding rows to it in a For loop: Dim dsNews As DataSet = New DataSet() Dim row As DataRow = dsNews.Tables(0).NewRow() dsNews.Tables.Add...
8
by: cjobes | last post by:
Hi all, The code below is part of a form where I would like the user to make selections from a table. The data is brought into the form from another form with: Public WriteOnly Property...
8
by: watkinsdev | last post by:
Hi, I have created a mesh class in visual studio 6.0 c++. I can create a device, render objects and can edit the objects by for instancnce selecting a cluster of vertices and processing the...
0
by: shapper | last post by:
Hello, I am creating a class with a control. I compiled the class and used it on an Asp.Net 2.0 web site page. I can see the begin and end tags of my control (<oland </ol>) but somehow the...
16
by: SirG | last post by:
I'm looking for an explanation of why one piece of code works and another does not. I have to warn you that this is the first piece of Javascript I've ever written, so if there is a better way or a...
10
by: DavidSeck.com | last post by:
Hi, I am working with the Facebook API right now, an I have kind of a problem, but I don't know what I am doing wrong. So I have a few arrays, f.ex.: User albums: array(2) {
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.