Hi all,
I've got a tricky CSS problem that I could use some help with. What
I'm trying to do is to set up a column-based layout, with each column
holding a number of <divblocks. These div blocks can contain user
content, so it's not possible to know their height.
So far this is easy enough to achieve using absolutely positioned or
floated divs for the columns. The problem is that I want the div boxes
in the columns to be able to span 2 or more columns, without
overlapping boxes in other columns. Essentially I want to be able to
expand a div in column 1 and have it "push" the divs in column 2 out
of the way. Unfortunately, if I've used absolutely positioned divs to
model the columns, the content of those columns is removed from the
page flow, so the content will overlap. Can anyone think of a way to
do this?
Many thanks,
Adam 4 1942
In article
<69************ *************** *******@l42g200 0hsc.googlegrou ps.com>,
Adam <ad************ @gmail.comwrote :
Hi all,
I've got a tricky CSS problem that I could use some help with. What
I'm trying to do is to set up a column-based layout, with each column
holding a number of <divblocks. These div blocks can contain user
content, so it's not possible to know their height.
So far this is easy enough to achieve using absolutely positioned or
floated divs for the columns. The problem is that I want the div boxes
in the columns to be able to span 2 or more columns, without
overlapping boxes in other columns. Essentially I want to be able to
expand a div in column 1 and have it "push" the divs in column 2 out
of the way. Unfortunately, if I've used absolutely positioned divs to
model the columns, the content of those columns is removed from the
page flow, so the content will overlap. Can anyone think of a way to
do this?
The webpage is ticking along fine for a few days, there are three
columns and all the text in each col is happily there. Then suddenly, a
wide pic is introduced and the content of col 1 needs to be wider than
usual. OK, if it is a float, it will be wider and the col to the right
(unless abs positioned) will also be pushed right. What exactly is the
problem?
--
dorayme
On 4 May, 23:24, dorayme <doraymeRidT... @optusnet.com.a uwrote:
In article
<6975fbbe-7372-4064-866e-0116aa456...@l4 2g2000hsc.googl egroups.com>,
Adam <adampennycu... @gmail.comwrote :
Hi all,
I've got a tricky CSS problem that I could use some help with. What
I'm trying to do is to set up a column-based layout, with each column
holding a number of <divblocks. These div blocks can contain user
content, so it's not possible to know their height.
So far this is easy enough to achieve using absolutely positioned or
floated divs for the columns. The problem is that I want the div boxes
in the columns to be able to span 2 or more columns, without
overlapping boxes in other columns. Essentially I want to be able to
expand a div in column 1 and have it "push" the divs in column 2 out
of the way. Unfortunately, if I've used absolutely positioned divs to
model the columns, the content of those columns is removed from the
page flow, so the content will overlap. Can anyone think of a way to
do this?
The webpage is ticking along fine for a few days, there are three
columns and all the text in each col is happily there. Then suddenly, a
wide pic is introduced and the content of col 1 needs to be wider than
usual. OK, if it is a float, it will be wider and the col to the right
(unless abs positioned) will also be pushed right. What exactly is the
problem?
--
dorayme
Sorry, I don't think I was clear enough before. If I introduce a wide
pic into column 1 I don't want to push the whole of column 2 to the
right, I want to push the content of the column down. So column 2 will
stay where it is, but the div boxes inside column 2 should move out of
the way such that they are not overlapped by the wide box in column 1.
Having thought about it some more I'm not sure this is possible using
plain CSS, so I'm working on using JavaScript to check for overlapping
divs and move them after they have been placed. Any thoughts?
Thanks,
Adam
On 2008-05-04, Adam <ad************ @gmail.comwrote :
Hi all,
I've got a tricky CSS problem that I could use some help with. What
I'm trying to do is to set up a column-based layout, with each column
holding a number of <divblocks. These div blocks can contain user
content, so it's not possible to know their height.
So far this is easy enough to achieve using absolutely positioned or
floated divs for the columns. The problem is that I want the div boxes
in the columns to be able to span 2 or more columns, without
overlapping boxes in other columns. Essentially I want to be able to
expand a div in column 1 and have it "push" the divs in column 2 out
of the way. Unfortunately, if I've used absolutely positioned divs to
model the columns, the content of those columns is removed from the
page flow, so the content will overlap. Can anyone think of a way to
do this?
The only way I can think of is to float: left all the div boxes and not
have any other divs for the columns, because for this to work, all of
the div boxes need to be in the same block formatting context.
Something like this:
div.left, div.right
{
float: left;
width: 15em;
height: 10em;
background-color: pink;
margin: 0.2em;
}
...
<div class="left">
</div>
<div class="right">
</div>
<div class="left" style="width: 30.4em">
</div>
<div class="left">
</div>
<div class="right">
</div>
<div class="left">
</div>
<div class="right">
</div>
Or you could use a table and colspan.
In article
<af************ *************** *******@l42g200 0hsc.googlegrou ps.com>,
Adam <ad************ @gmail.comwrote :
On 4 May, 23:24, dorayme wrote:
Adam <adampennycu... @gmail.comwrote :
....What exactly is the problem?
Sorry, I don't think I was clear enough before. If I introduce a wide
pic into column 1 I don't want to push the whole of column 2 to the
right, I want to push the content of the column down. So column 2 will
stay where it is, but the div boxes inside column 2 should move out of
the way such that they are not overlapped by the wide box in column 1.
Having thought about it some more I'm not sure this is possible using
plain CSS, so I'm working on using JavaScript to check for overlapping
divs and move them after they have been placed. Any thoughts?
I see what you want now. A solution should be able to demo 3 cols and if
any wide material is introduced into col 1 or col 2 or col 3, this
material alone, not the whole column, should be able to intrude into col
2 or 3 or 2 (respectively). When so intruding, the content of the
invaded column should 'be aware' of the intrusion and reorganise its own
content above and below the invaded territory. And this must be a
dynamic situation.
My only thought is too difficult and I would look to some other design.
Like normal stuff: let one of the cols find its own width and that be
the col allowed for user additions.
--
dorayme This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Webby |
last post by:
I've decided after several failed attempts this is too difficult to do
on my own. I know it's been done before and a tutorial or code must
by lying around somewhere.
I have a Weekly Calendar
It's in a table with 7 columns and 22 rows
Across the top I have Monday thru Sunday
|
by: Sir Loin of Beef |
last post by:
I would like to create a table with a bar of text that spans the whole
page.
Here is what I have so far:
<table border=0 width="100%" >
<tr>
<td><img src="SANimages/magnify.gif"></td>
<td valign="top"><span
style="font-size:12px;font-weight:bold;color:#f1f1f1;
|
by: L Major |
last post by:
Hi
Unfortunately, I am limited to using tables for part of my current
project. I have a form that spans across a number of TR and TD in the
shape of checkboxes.
Doctype is XHTML 1.0 Transitional, Encoding is utf-8
Is there anything wrong?
Should I try something else? What in that case?
|
by: Billy Jacobs |
last post by:
I am using a datagrid to display some data. I need to
create 2 header rows for this grid with columns of
varying spans. In html it would be the following.
<Table>
<tr>
<td colspan=8>Official Impact Summary</td>
</tr>
<tr>
<td colspan=2></td>
|
by: _mario.lat |
last post by:
kruskal:minimum spanning tree. how to do?
I'd like to find the minimum spanning tree with kruskal algorithm.
There is a code (in C++) written?
which contenitor do you suggest (Vector, set, ...)?
How can I do?
Thank you in advance, Mario.
| |
by: jenny22 |
last post by:
i have a problem i am very new to c++ and want to construct a minimum spanning tree for 8 stocks i have calculated in excel the relevant formulas and know the weights of each of gthe vertices but don't know how to construct it i have read numerous books and have managed to get a pseudo code for how it should be which is
Algorithm spanningTree (graph)
Determine the minimum spanning tree a network.
Pre graph contains a network
Post...
|
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= |
last post by:
When I set a label to span 2 columns of a 2-column TableLayoutPanel, set both
of these plus the containing form to AutoSize, then at runtime fill in the
label, the autosizing does not take the column spanning into account. That
is, it autosizes so that the label text is entirely in column 1 even though
the label itself does physically span both columns. This seems to only occur
when I dynamically add a row. For rows that I added at design...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |