It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Element Positioning

Element Positioning

Postby caia on Wed May 25, 2005 10:35 pm

Ok have to design a site using absolute and relative element positioning for images. Question is it possible to have multiple images on same page with different postioning, and how do I do it?
the first image I tried all it did was overlap my text and I couldn't get it to the proper placement, this $ucks as I have 3 more images on the same page supposed to be in a off-center staggaring down the page with appropriate text.

HELP!
caia
 
Posts: 4
Joined: Mon Nov 29, 2004 8:47 pm

Postby Malcolm on Thu May 26, 2005 5:03 am

This help?
Code: Select all
<style>
div { border:1px solid #000; }
</style>
<div style="position:absolute;top:10px;left:300px;">
blah
</div>
<div style="position:absolute;top:300px;left:10px;">
<div style="position:relative;top:-100px;left:-10px;background:#f00;">
Blah
</div>
Blah 2
</div>
Image
User avatar
Malcolm
100+ Club
 
Posts: 198
Joined: Thu Oct 07, 2004 9:53 pm
Location: Ontario, Canada

Thank you Malcom

Postby caia on Fri May 27, 2005 6:36 am

It did and finally I get to view the page as it should be!
Thanks for your help
caia
 
Posts: 4
Joined: Mon Nov 29, 2004 8:47 pm


Who is online

Users browsing this forum: No registered users and 5 guests