position an object underneath
In css I can get 2 objects to display on right hand side at top of page easy enough.
I don't want to use absolute positioning for an object's position.
I have to position an object relative to another object eg this object should go underneath this object, can i do this ?
I use this , and is this the best way you can do it?
Last edited by jagguy; 09-29-2006 at 07:57 AM.
Ok I did do that but what i wanted to knoiw whether is using relative for positioning and float the bettter way to go , rather than use absolute. This is to posiiton things on a page, not to mention nested containers.
Or is there another way?
Here's a pretty good positioning tutorial. He even does both aspects of relative positioning.
To psoition everything on screen eg naviagtion on top and left of screen, content in the other parts with images everywhere etc.
q)what about placing say 2-3 things in the 1 div section. I can have a horizontal section on top of screen with text. I want to place an image and text on far right (on same height). I can use relative positioning to place it but this can get messy.
Last edited by jagguy; 09-30-2006 at 01:03 AM.
Relative or absolute positioning is possible, or even placing the image as a background of the text element.
thanks for the replies.
q)I have had alook at many css designs eg 2/3 cols and bar at top stuff.
After wanting to throw a book at my PC due to current logic in the matter, I partioned each part of the screen using absolute % and found that the thing actually is easy to understand and is as flexible as other design i saw. Sure if you change 1 part you need to adjust the others but that's what happened with other wc3 expert models i saw.
Maintenance is important and the idea of fiddling about for ages with current setups was a little slow going.
Am I wrong for making it work like this?
It's really kind of hard to say since we don't specifically know what "this" is. The current paradigm in web development is to use semantically correct HTML and do all presentation with CSS. If that's what you've got then you're doing what is currently considered "right."
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)