SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Addict mixmastermidori's Avatar
    Join Date
    Sep 2001
    Posts
    337
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Positioning text over a table

    I know this is a really basic, dumb question, but I'm stuck. My mommy brain just can't seem to figure this one out.

    I created an image that I want as the background of my page. It's a rectangle about 760x450 that includes a background and rollovers for the navigation. I chopped it up in Fireworks, and now I want to place the text over it. When I made my DIV, it just put the text below the whole Fireworks table.

    I want the background image to always be centered, so I can't use fixed positioning for the text. What do I do?

    Thanks so much for any help!
    -midori
    Nature's Sunshine herbs and supplements

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you show us your code/link and an example of what you're trying to achieve?

  3. #3
    SitePoint Addict mixmastermidori's Avatar
    Join Date
    Sep 2001
    Posts
    337
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's the result of my wrong code: Text below background.

    I want the text placed in the blank space of the background.

    Thanks so much!
    -midori
    Nature's Sunshine herbs and supplements

  4. #4
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought so - don't put your text in a separate element which you then try to 'position' over the top of another table. Your text should go in a table cell of the main table and the images should be background-images of the table cells not images in the HTML.

  5. #5
    SitePoint Addict mixmastermidori's Avatar
    Join Date
    Sep 2001
    Posts
    337
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aaaahhh...I knew the answer was stupidly simple. I thought I should do some fancy CSS positioning when the solution was easy. Thanks for straightening me out. I really appreciate it!
    Nature's Sunshine herbs and supplements


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
  •