Click to See Complete Forum and Search --> : Get a DIV layer to move it's location on a website that is centered aligned


etard
12-12-2008, 10:57 AM
Have a website that has an image that I want to lay a DIV layer on so I can put actual text over the image so search engines can read it versus making that text part of the image.

the site is setup to align center in the browser window depending on the users setup, so I need the layer to float left to right and stay in place over the image as the window grows or shrinks left to right.

how does one achieve that. using a DIV layer to lay text on a page that never moves is cake, but not sure how to pull this off?

NogDog
12-12-2008, 09:37 PM
My first thought is to place the DIV element in the content flow where you want the image, then make the image the background for that DIV. You would therefore want to style the DIV to a fixed height/width that matched the background image, then use padding values as needed for the vertical alignment of the text within the DIV.