SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Nesting Boxes
-
Apr 21, 2002, 16:31 #1
- Join Date
- Nov 2000
- Location
- Chico, Ca
- Posts
- 1,125
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Nesting Boxes
I am trying to nest some boxes .. simliar to nesting tables .. does anyone know how deep you can nest boxes ? Right now I am at 1 deep .. and I can't seem get anything past that.
Thanks
CHuck"Happiness doesn't find you, you find happiness" -- Unknown
www.chuckknows.com
-
Apr 21, 2002, 22:26 #2
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You should be able to go as deep as you'd like. There's probably some other problem, here. Anyway, why are you trying to nest so many boxes? With CSS, you don't have to treat <div>s like <table>s, so you might be able to get away with less complex code, too.
Give us some more info and perhaps even code, and we'll hook you up. ;-)
~~Ian
-
Apr 22, 2002, 04:04 #3
- Join Date
- Nov 2000
- Location
- Chico, Ca
- Posts
- 1,125
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
well.. the problem that I am having is that I can't center the nested boxes..
here is one of the pages that I am working on
cconway.com
here is the style sheet
stylesheet
When you view the page you will see that all the pictures are to the left .. and proably has something to do with the fact that I am using float left .. but .. if I use float: center it dones't work that way I would like it to. I have the parent box text-align: center, but that doens't seem to be the correct solution. I am not sure what to do from here.
On a side note.. if you view any of the pictures .. a popup comes up .. but it has a left margin and a top margin.... and I got some code from another thread . but I am not sure how to implement it..
Thanks
ChuckLast edited by Chuckie; Apr 22, 2002 at 04:08.
"Happiness doesn't find you, you find happiness" -- Unknown
www.chuckknows.com
-
Apr 22, 2002, 04:22 #4
- Join Date
- Jul 2001
- Location
- Berkshire, UK
- Posts
- 7,442
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
hmm would you not need to put your div class pics inside the div class sub? and center it that way?
Looking at your code though neither of the sub or pics divs have any align:center attributes? Mayeb try adding them there?
SarahRegular user
-
Apr 22, 2002, 04:40 #5
- Join Date
- Nov 2000
- Location
- Chico, Ca
- Posts
- 1,125
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I have all the parent boxes set to text-align: center .. is there another align function that I am missing ?
Chuck"Happiness doesn't find you, you find happiness" -- Unknown
www.chuckknows.com
-
Apr 22, 2002, 05:32 #6
- Join Date
- Mar 2002
- Location
- Madrid - Spain
- Posts
- 118
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Take a look at this thread, it might be helpfull
http://sitepointforums.com/showthrea...threadid=56813
Bookmarks