473,394 Members | 1,841 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,394 software developers and data experts.

Change display order (vertical)

This may be a simple request, but I can't find documentation on it.
My page looks like the following:

Header information

Data Set A

Data Set B

Footer information

We'd like to be able to allow users to swap the display order of the
Data Sets, while keeping the document flow. We have, in general, the
page segmented:

<div class="Header">
Header Information
</div>
<div class="AllData">
<div class="DataA">
Data Set A
</div>
<div class="DataB">
Data Set B
</div>
</div>
<div class="Footer">
Footer Information
</div>

Is there a simple way to say "show DataB before DataA"?

If this is obvious, it will lend credence to my follow up question:
what is the definitive book for CSS, taking in to account IE 7.0 and
FireFox 2.0 (I know this may start a religious war...)

Thanks a lot,
DvS

Mar 16 '07 #1
2 6467
On 2007-03-16, dv******@ddrtech.com <dv******@ddrtech.comwrote:
This may be a simple request, but I can't find documentation on it.
My page looks like the following:

Header information

Data Set A

Data Set B

Footer information

We'd like to be able to allow users to swap the display order of the
Data Sets, while keeping the document flow.
We have, in general, the
page segmented:

<div class="Header">
Header Information
</div>
<div class="AllData">
<div class="DataA">
Data Set A
</div>
<div class="DataB">
Data Set B
</div>
</div>
<div class="Footer">
Footer Information
</div>

Is there a simple way to say "show DataB before DataA"?
No. If the heights of DataA and DataB are known beforehand then you can
swap them with position: relative. Otherwise not possible in CSS. Your
best bet would be to use scripting to modify the DOM tree-- just detach
DataA and DataB from their parent, reattach them the other way round,
and let the document reflow.
Mar 16 '07 #2
On Mar 16, 1:26 pm, Ben C <spams...@spam.eggswrote:
On 2007-03-16, dvoms...@ddrtech.com <dvoms...@ddrtech.comwrote:
This may be a simple request, but I can't find documentation on it.
My page looks like the following:
Header information
Data Set A
Data Set B
Footer information
We'd like to be able to allow users to swap the display order of the
Data Sets, while keeping the document flow.
We have, in general, the
page segmented:
<div class="Header">
Header Information
</div>
<div class="AllData">
<div class="DataA">
Data Set A
</div>
<div class="DataB">
Data Set B
</div>
</div>
<div class="Footer">
Footer Information
</div>
Is there a simple way to say "show DataB before DataA"?

No. If the heights of DataA and DataB are known beforehand then you can
swap them with position: relative. Otherwise not possible in CSS. Your
best bet would be to use scripting to modify the DOM tree-- just detach
DataA and DataB from their parent, reattach them the other way round,
and let the document reflow.
I was afraid that was the answer. We'll go back to a server-side
solution and generate the Data sections in a different order.

Thanks a lot,
DvS

Mar 16 '07 #3

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

Similar topics

9
by: Nick | last post by:
I have the following code, and it works well on Mozilla 1.6. (However, the image src property cannot be set on Mozilla 1.2.1). Unfortunately, all the code: document.images.itemImage.src =...
12
by: jfburr | last post by:
very simple thing (I hope) I've got a css style sheet that starts like this: ______________ A:link { color: cc9933; }
10
by: Richard | last post by:
The style sheet shown below is from the suckerfish vertical menu. http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html I've added in a few minor changes to color code the...
10
by: Harry Haller | last post by:
How can I change the value in a css class? For instance, with I.E., I want to change the value in the class span.arr from middle to 0.2em. The value of middle is OK for most other browsers. I...
13
by: Benjamin Smith | last post by:
I am controlling the display status of a table row using the following code. <TR id="CCRow" style="DISPLAY:none"> Instead of hard coding "none" above, I would like to change that value using a...
3
by: spielmann | last post by:
Hello I want to change the scrollbar size of windows, How can I do that with vb.net I have find this in VB6 but how can we convert simply this code. thx
2
by: Greg Strong | last post by:
Hello All, Is it possible to change table field lookup properties in code? I've been able to change other field properties in code, however so far no luck with field lookup properties. What...
1
by: steve | last post by:
Hi All Is there anyway to change the width of datagridview controls vertical scrollbar I have an Application where the datagridview fills most of the screen and it is hard to grab the...
2
by: ubohra | last post by:
Hii all, Need your help!! I am got stuck into a problem that we have a application where there are some pages to display some courses which the user will take. I have to change the order of that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...

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.