SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Positioning text over a table
-
Jun 19, 2006, 15:07 #1
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!
-midoriNature's Sunshine herbs and supplements
-
Jun 19, 2006, 15:29 #2
- 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?
-
Jun 19, 2006, 16:02 #3
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!
-midoriNature's Sunshine herbs and supplements
-
Jun 19, 2006, 16:13 #4
- 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.
-
Jun 19, 2006, 17:14 #5
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