SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist Alexandra's Avatar
    Join Date
    Aug 2002
    Location
    Perth, Australia
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Problem with relative positioning

    I am working on a design for a site, but I am having trouble with some relative positioning.

    The site is built in a table (that is all the images and layout), then I have some text placed in a div that needs to float above the design.

    The problem arises when I center the main table, the text appears in the correct place, but the whole site is offset as the browser seems to be leaving a space where the text should appear, even though it is floating above the design. I hope that is clear....

    Anyway, you can see what is happening .here. The design should be horizontally and vertically centred on the screen, with the text appearing in the white area in the bottom third of the design.

    How can I make the page align correctly (i.e. without the vertical offset)?

    Thanks for your help,

    Alex
    Alex Graham
    Cadmium Design & Development
    www.cadmium.com.au
    alexandra@cadmium.com.au

  2. #2
    SitePoint Member
    Join Date
    Dec 2002
    Location
    Wichita, KS
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My idea

    Use the area that is supposed to be the background for the text and make it the background of the table cell. Get rid of your floating div, make watermark-03 and watermark-04 a single image. If you use that as the background for the cell, it should work wonderfully.
    :: halo labs - internet junkies
    :: bzzztboy.com - learning and discussion center :: sign-up here
    :: knowledge is power and information is a commodity - less than zero

  3. #3
    SitePoint Evangelist Alexandra's Avatar
    Join Date
    Aug 2002
    Location
    Perth, Australia
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table Cell Background

    Thanks for that. Will this solution work in all browsers though?

    Alex.
    Alex Graham
    Cadmium Design & Development
    www.cadmium.com.au
    alexandra@cadmium.com.au

  4. #4
    SitePoint Evangelist Alexandra's Avatar
    Join Date
    Aug 2002
    Location
    Perth, Australia
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem solved

    No problems. I just made the changes you suggested and it works perfectly, in all the borwsers I have to test on. That includes IE 6, Opera 6, Mozilla, NS4.08 and NS4.77!

    Thanks for your help!

    Alex.
    Alex Graham
    Cadmium Design & Development
    www.cadmium.com.au
    alexandra@cadmium.com.au


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •