Is it possible to position something relative something else?

This is a discussion on "Is it possible to position something relative something else?" within the Web Page Design section. This forum, and the thread "Is it possible to position something relative something else? are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 15th, 2007, 18:23
New Member
Join Date: Feb 2007
Location: nowhere
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Is it possible to position something relative something else?

I want to postition an image a certain number of pixel away from the top-left corner of the image behind it; so that if somebody changes their screen resolution it still apears in the same spot (the image behind it is centered on the page).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 15th, 2007, 18:37
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is it possible to position something relative something else?

Positioning and floats are the two CSS properties you'll need. If you show us an example of what you're looking for, that would be better, however.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 16th, 2007, 17:36
New Member
Join Date: Feb 2007
Location: nowhere
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is it possible to position something relative something else?

www.lets-duel.com/school_site/index2.html

where the red x is, is going to be a javascript slide show, but whenever you change screen resolution it moves, but i want to know how to postition it in relation to the image behind, so that no matter what screen resolution, it still appears in the same place
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 18th, 2007, 01:06
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is it possible to position something relative something else?

Margin and position will both work. Just add CSS to the images or put the images in a <div>.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 20th, 2007, 18:30
New Member
Join Date: Feb 2007
Location: nowhere
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is it possible to position something relative something else?

What i mean is i want the banner centered, so that it's centered in all screen resolutions, but when the banner is centered, when the screen resolution changes it moves, but since the javascript slideshow is is positioned with pixels, it stays the same amount of pixels from the left and top. I want it to be positioned so that if the banner moves, the slideshow will move with it, but i have no clue how to do that. Also, if you know any, could you post a link to a tutorial on what i need to do this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 20th, 2007, 22:37
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is it possible to position something relative something else?

Then put it in a fixed width div that's centered. Then it will always be x pixels from the left of the div it's in.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Feb 22nd, 2007, 17:57
New Member
Join Date: Feb 2007
Location: nowhere
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is it possible to position something relative something else?

How do i do that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Feb 22nd, 2007, 18:04
New Member
Join Date: Feb 2007
Location: nowhere
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Is it possible to position something relative something else?

i tried that and the image moves to the right of the banner, not on top of the banner.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
positioning

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
relative linking in php sudhakararaog PHP Forum 1 Mar 12th, 2008 23:43
Can <span></span> tags have position relative? Oak Web Page Design 13 Mar 9th, 2008 17:04
relative position problem antonyx Web Page Design 12 Dec 30th, 2005 21:19
can layers be relative? warmer Web Page Design 0 Nov 8th, 2005 18:42
Relative div Height (NOT POSITION) Amin Web Page Design 1 Jul 5th, 2005 20:07


All times are GMT. The time now is 21:56.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42