Web Hosting Talk







View Full Version : Changed Placement


OscarGuy
03-06-2009, 10:09 AM
I was wondering if, with css there was a way to take a menu div with X number of nested divs to set the location within the menu div so that I can just change the name on the page and it keep the order of the divs.
For instance:
If in my html doc I have the nested divs in this order:
Update1
Update2
Update3
And that's the order they would appear in the menu div.
I always want Update1 on top, followed by Update2 and Update3 in my css.
But, I want to be able to go in and edit my html page to put them say in this order in the page:
Update1
Update3
Update2
Yet they still post in the Update1 top, Update2 next and Update3 bottom order without having to move the entire code block around.
Let it also be known that the individual nested divs may be of differing heights.
If it isn't possible, that's cool. I just want to know if it could be done.

axiological design
03-06-2009, 12:57 PM
Oscar, again, I think I can help you, but do you have this posted anywhere that I can take a look at your code? It's hard to visualize this and tell you what to do w/o looking at code.

OscarGuy
03-06-2009, 07:41 PM
Hmmm, I can't send files by PM, nor can I attach them to a message...

Replicada
03-07-2009, 07:17 AM
Unless you know the specific size of the divs themselves, the only method of doing this would be to use javascript to move the divs thmselves. If you do know their size as they are set, you can use positionings to arrange the divs ontop of each other.
Dan