473,748 Members | 6,418 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I:M> a 3x3 cube with css

I'm trying to do that, like a 3x3 table (with specific width and
height) BUT whit divs and without absolute position....
this is my imposible mission xD

example:

[Red] [Green] [Blue]
[Green] [Blue] [Red]
[Blue] [Red] [Green]

(width: 64px; height: 64px)
all this inside another box and in the center of screen

¿is it posible?

thanks

Jun 22 '06 #1
4 2119
go*********@gma il.com wrote:
I'm trying to do that, like a 3x3 table (with specific width and
height) BUT whit divs and without absolute position....
this is my imposible mission xD

example:

[Red] [Green] [Blue]
[Green] [Blue] [Red]
[Blue] [Red] [Green]

(width: 64px; height: 64px)
all this inside another box and in the center of screen

¿is it posible?


Does it need to work in IE?
If no, then it can be done quite easily.
If yes, then it can be done with some difficulty.

But are you sure that a table wouldn't be more appropriate? What
content is going to go inside these squares?

Steve

Jun 22 '06 #2
go*********@gma il.com wrote:
I'm trying to do that, like a 3x3 table (with specific width and
height) BUT whit divs and without absolute position....
this is my imposible mission xD

example:

[Red] [Green] [Blue]
[Green] [Blue] [Red]
[Blue] [Red] [Green]

(width: 64px; height: 64px)
all this inside another box and in the center of screen

¿is it posible?


Does it need to work in IE?
If no, then it can be done quite easily.
If yes, then it can be done with some difficulty.

But are you sure that a table wouldn't be more appropriate? What
content is going to go inside these squares?

Steve

Jun 22 '06 #3

go*********@gma il.com schreef:
I'm trying to do that, like a 3x3 table (with specific width and
height) BUT whit divs and without absolute position....
this is my imposible mission xD

example:

[Red] [Green] [Blue]
[Green] [Blue] [Red]
[Blue] [Red] [Green]

(width: 64px; height: 64px)
all this inside another box and in the center of screen

¿is it posible?

thanks


Yes it is possible, but as Steve said, it's not straight-forward. Here
you go:

Centering the whole thing horizontally in your page can be easily done
by setting the left and right margin to auto.

Centering the whole thing vertically in your page is somewhat more
difficult, but can be done like explained here:
http://www.jakpsatweb.cz/css/css-ver...-solution.html

Make sure the inner div is 192 pixels wide and heigh. Put 9 div blocks
in it, all 64 pixels wide and heigh and set to float left. Because
there is no place in the inner div for the 4th block next to the 3rd
block, it will go automatically to the next row. The same for the 7th
block.

Result looks good in IE and Firefox:
http://www.myjavaserver.com/~veerle/test_cube.html

Jun 22 '06 #4
Sorry, i had lost this post :P
thank you for the help :-)
Steve: now I only want to work in my browser (firefox :D)
Veerle: thaaaaaaaaaaaaa nkkksss for the example :-)

Jul 5 '06 #5

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

Similar topics

0
2564
by: mrwoopey | last post by:
Hi, My OLAP data cube is giving me the following error when I am manipulating OLAP data cube views: "the data being processed is over the allowed limit" I know that this message is caused by the size limit of each form field that is retrieved in the Request object is 102,399 bytes. The error occurs when I exceed this limit.
3
27918
by: Biswajit Barik | last post by:
Hi All, I want to create a cube using MSSQL2000 i dont know any thing how to create and what is parameter required so if any body help me i will be thankfull to him/her.For information : i have 4 tables custdetailtable which contain all about a customer as per example customer ID,name,add,CUSTOMERID IS PRIMARYKEY, Proddetail table which contain all about a product mean productcode,productname,productvalue,dman (dateof manufacture),dexp...
0
3117
by: mrwoopey | last post by:
Hi, I am using the OLAP data cube in a web browser (using the code from the SQL 2000 toolkit). The OLAP services is on database server and the web interface is on the web server. If we do simple queries on the cube, it works fine. When we do complex queries the cube in the web browser loads very slow or errors. Also, I noticed that when it is building the output for the cube (the display) that most of the processing is taking place on...
0
1816
by: Fan Ruo Xin | last post by:
I installed Stinger in my PC (w2k). I need to do a quick compare between DB2 OLAP server and DB2 Cube Views. And I only found DB2 Cube Views version8.1 trial code from IBM website. I didn't want to spend a lot of time on this. So I installed the Cube Views 8.1, without uninstall ESE V8.2 code first last Friday. It looks like everything was OK. But I failed to start DB2 Information Center and DB2 CC today. I've seen process - javaw used...
2
1903
by: ravindra4s | last post by:
hi...I am very new to DB2 Cube views, I worked with MS Analyis services earlier and this is new assignment for me to work with DB2 Cube views, Can I get any help regarding this..........Is DB2 Cube views(ROLAP MOLAP or HOLAP storage) and does MDX work with DB2 cube views?
0
980
by: jai83 | last post by:
I have a doubt regarding alphablox-cube views. I have created a cube in the olap centre(using db2 cube view 8.1.10).I imported the cube in alphablox.But while drilling down i am not able to retrieve all the members of that particular level,just one member(alphabetically first in the set) is being displayed.And this is happening with all the dimensions. Could this be a problem in cube creation??if yes what could it be that i am missing? ...
0
1529
by: DC01 | last post by:
I have added a new measure successfully into the normal cube. I then add it to the virtual cube and reprocess all cubes. I can browse the normal cube successfully. Then when I try and browse the virtual cube it says 'Retrieving Data' but then thats it, it just hangs like that. I am using AS2000. The other problem I have is that the data is doubling up when its in the cube. The SQL which sets up the fact tables are all fine and are...
0
1229
by: Tim | last post by:
Hi Folks, I'm not certain if this is the correct group to post this question in, if there is a more appropriate one please advise. We have a cube that takes a little time to build, length of time varies by point in day and source SQL Server loading. While building the cube is 'off-line' and this is bothering the powers that be. As the underlying SQL Server data warehouse grows the time 'off-line' is bound to lengthen.
7
9865
by: Christian Hackl | last post by:
Hi everyone, I've got a question about what makes the "img" element's width/height attributes valid HTML or XHTML. First of all, this is a rather theoretical question, but digging through the W3C HTML 4.01 standard and this group's archive didn't give me a satisfactory answer, so here we go: Is <img src="img.png" alt="" width="100px" height="100px"really valid?
7
3186
by: J-Burns | last post by:
Hello. Need some help here. I have a 4*4 cube. So the equation of the cube becoming: x + 4*y + 16*z Now i want to rotate this cube 90 degrees anticlockwise( a right rotation). How can i do that? The rotation must take place with the axis of rotation being the straight line through the center of the cube and perpendicular to the "xz-plane." The axis are aligned in this fashion:
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
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,...
0
9534
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, 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...
0
9366
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 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...
0
8239
agi2029
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...
0
6073
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();...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.