div question

Associate
Joined
18 Aug 2004
Posts
1,886
Location
midlands
hi,

im doing a template for my websites cutenews system (cutenews) but im not the best at html stuff :)
im doing alright, i just get stuck every now and then.

right now i am trying to get two divs side by side but have no idea how :(
i have
Code:
<div style="border: 1px solid #e5e5e5; text-align:left; z-index:99; height:100px;">
{short-story}
</div>

<div style="text-align:right; z-index:99; height:100px;">
{avatar} 
</div>

at the moment they are under each other, i want them next to each other, so the avatar is on the right and the short-story is on the left

could anyone help me out?
thanks
nickels
 
go to oswd, look and download the "andreas01" template

in fact

here's the link

andreas01 template

he has made a three column template so you can see how it is built

basically,you clear one, and use a left margin on the second to position at the side.

but, take a deep breath, and have a look the code slowly
 
Back
Top Bottom