Help position a relatively from left but absolutely from top

Discussion in 'CSS' started by markross, Jun 28, 2006.

  1. #1
    I am in the process of creating a site where I want the logo at the top to overlap the menu as shown here http://www.unique3.net/temp/example1.jpg

    To do this I've used absolute positioning. However I have the problem that the logo moves relative to the edge of the browser window, so that if the browser window is too wide it looks like this http://www.unique3.net/temp/example2.jpg

    So ideally i need to be able to position the logo absolutely verically and relatively horizonally. Is there any way of doing this or is there a workaround?

    My site is at http://www.unique3.net if you need to have a look at it.

    Thanks!

    Mark
     
    markross, Jun 28, 2006 IP
  2. scoxy

    scoxy Peon

    Messages:
    332
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I was wondering - is it possible to wrap the whole page in a div, center the div horizontally (margin: 0 auto; ) then position the logo relative to the div?
     
    scoxy, Jun 28, 2006 IP