Help - Search - Members - Calendar
Full Version: DIV values not working
Forums > Resource Center > Support Center > Livejournal Support > Livejournal Resolved Topics
flaymzofice
So I'm creating my own style (using S1 if this is relevant); it's pretty basic but I can't get my sidebar navigation to work. I've put it in a div but for some reason, the declarations are all being ignored; it's not positioning anywhere near where I want it to and I don't know why.

Here's the code in my lastn_page box: (excluding CSS)
CODE
%%head%%
<title>%%title%%</title>
</head>
<body bgcolor="#000000" text="#ffffff" link="%%color:page_link%%" vlink="%%color:page_vlink%%" alink="%%color:page_alink%%">

<div class="header" style="position: absolute; top: 50px; left: 25px;">
<img src="http://img.photobucket.com/albums/v27/flaymzofice/LJheader2.jpg">
</div>
<p>

<div class="content" style="position: absolute; top: 550px; left: 445px;">%%events%%</div>

<div class="navigation" style="width: 100px; height: 250px; top: 550px; left: 50px;">
<center>
%%userpic%%
Stalking
%%range%%<br>
<table>
%%skiplinks%%
</table>
</center>
</div>


And this is what it looks like; you can just about see the userpic peeking out the top left, behind the header, despite the navigation div telling it to be shifted 550px down.

What is going on?
http://frozen-out.livejournal.com/data/cus...?styleid=678169
Azarel
If I were you, I'd specify the div class settings in the css.. I'm not sure what's wrong with your coding because it looks fine to me.. you may want to look at this tutorial, although I don't know if it'll help.. ermm.gif
flaymzofice
I figured it out; the table or div containing the %%events%% line has to be at the end of all the tables/divs used.

Oh, okay. I'm glad you figured it out. :)
} Azarel
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.