Greetings,
I have recently started teaching myself CSS and in particular DIVs in an attempt to move away from the inflexibility of frames.
I am trying to setup a page that is somewhat complicated and in trying to get the positioning right, it just doesn't want to work for me.
Here is the DIV statements:
<div name="menu" style="left: 0%; top:0%; right:16%; position:absolute;">
</div>
<div name="main" style="left: 16%; top:0%; right:100%; position: absolute;">
<div name="status" style="left:0%; top:0%; right: 49%; bottom: 49%; position: absolute;">
</div>
<div name="pos_list" style="left:51%; top:0%; right: 100%; bottom: 49%; position; absolute;">
</div>
<div name="news" style="left:0%; top:50%; right: 49%; position: absolute;">
</div>
<div name="events" style="left: 51%; top: 50%; right: 100%; position: absolute;">
</div>
</div>
Now, the layout of MENU and MAIN works properly, however, the two lower sub-divs of NEWS and EVENTS don't sit in the position they're supposed to, instead overlaying the top divs of STATUS and POS_LIST
What am I doing wrong? Am I trying something that is not possible with DIVs? I've tried everything. I don't want to use a table to format the layout.
I'm sorry if this has been asked a thousand times before, but I don't really know what to search on (only self-teaching myself as it is), so I went for this passage.
Cheers,
OzWolf
I have recently started teaching myself CSS and in particular DIVs in an attempt to move away from the inflexibility of frames.
I am trying to setup a page that is somewhat complicated and in trying to get the positioning right, it just doesn't want to work for me.
Here is the DIV statements:
<div name="menu" style="left: 0%; top:0%; right:16%; position:absolute;">
</div>
<div name="main" style="left: 16%; top:0%; right:100%; position: absolute;">
<div name="status" style="left:0%; top:0%; right: 49%; bottom: 49%; position: absolute;">
</div>
<div name="pos_list" style="left:51%; top:0%; right: 100%; bottom: 49%; position; absolute;">
</div>
<div name="news" style="left:0%; top:50%; right: 49%; position: absolute;">
</div>
<div name="events" style="left: 51%; top: 50%; right: 100%; position: absolute;">
</div>
</div>
Now, the layout of MENU and MAIN works properly, however, the two lower sub-divs of NEWS and EVENTS don't sit in the position they're supposed to, instead overlaying the top divs of STATUS and POS_LIST
What am I doing wrong? Am I trying something that is not possible with DIVs? I've tried everything. I don't want to use a table to format the layout.
I'm sorry if this has been asked a thousand times before, but I don't really know what to search on (only self-teaching myself as it is), so I went for this passage.
Cheers,
OzWolf