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

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 2098
go*********@gmail.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*********@gmail.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*********@gmail.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: thaaaaaaaaaaaaankkksss 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
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...
3
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...
0
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...
0
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...
2
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...
0
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...
0
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...
0
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...
7
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...
7
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.